This commit is contained in:
Gdpao 2020-08-04 21:46:52 +08:00
parent 43845b4810
commit 692495f108
10 changed files with 49 additions and 21 deletions

View File

@ -7,7 +7,7 @@
<view class="text_view">{{item.content}}</view> <view class="text_view">{{item.content}}</view>
<view class="notice_list"> <view class="notice_list">
<text>查看详情</text> <text>查看详情</text>
<view> > </view> <u-icon name="arrow-right" color="#666"></u-icon>
</view> </view>
</view> </view>
</view> </view>
@ -15,7 +15,6 @@
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
.notice { .notice {
background: #ECECEC;
.notice_view{ .notice_view{
width: 690rpx; width: 690rpx;
height: 489rpx; height: 489rpx;

View File

@ -68,7 +68,8 @@
this.$refs.uCode.start(); this.$refs.uCode.start();
}, 2000); }, 2000);
} else { } else {
this.$u.toast('倒计时结束后再发送'); // this.$u.toast('');
console.log("倒计时结束后再发送");
} }
} }

View File

@ -31,7 +31,7 @@
<view class="logistics" v-if="order.view_type == 3" @click="confirmReceive">确认收货</view> <view class="logistics" v-if="order.view_type == 3" @click="confirmReceive">确认收货</view>
<view class="comment" v-if="order.view_type == 4" @click="toOtherPage('Comment')">立即评价</view> <view class="comment" v-if="order.view_type == 4" @click="toOtherPage('Comment')">立即评价</view>
<view class="cancel" v-if="order.view_type == 1" @click="cancelOrder">取消支付</view> <view class="cancel" v-if="order.view_type == 1" @click="cancelOrder">取消支付</view>
<view class="payment" v-if="order.view_type == 1" @click="payNow(order.pay_sn, order.order_amount)">立即支付</view> <view class="payment" v-if="order.view_type == 1" @click="payNow(order.pay_sn, order.order_amount,order.order_id)">立即支付</view>
<view class="service" v-if="order.view_type == 8">联系官方客服</view> <view class="service" v-if="order.view_type == 8">联系官方客服</view>
<view class="submit" v-if="order.view_type == 8">提交官方审核</view> <view class="submit" v-if="order.view_type == 8">提交官方审核</view>
</view> </view>
@ -109,10 +109,11 @@ export default {
oid: this.order.order_id, oid: this.order.order_id,
}); });
}, },
payNow(pay_sn, order_amount) { payNow(pay_sn, order_amount, id) {
this.$u.route('/pageC/cart/cashier', { this.$u.route('/pageC/cart/cashier', {
pay_sn: pay_sn, pay_sn: pay_sn,
price: order_amount, price: order_amount,
order_id: id
}); });
}, },
}, },

View File

@ -4,7 +4,7 @@
<view> <view>
<u-tabs-swiper ref="uTabs" :list="classifyList" name="gc_name" :is-scroll="true" active-color="#FF780F" :current="current" font-size="24" :show-bar="false" @change="tabsChange" height="60" ></u-tabs-swiper> <u-tabs-swiper ref="uTabs" :list="classifyList" name="gc_name" :is-scroll="true" active-color="#FF780F" :current="current" font-size="24" :show-bar="false" @change="tabsChange" height="60" ></u-tabs-swiper>
</view> </view>
<swiper :current="swiperCurrent" @transition="transition" @animationfinish="animationfinish" :style="{height: swiperHeight}"> <swiper class="swiper-box" :current="swiperCurrent" @transition="transition" @animationfinish="animationfinish" :style="{height: swiperHeight}">
<swiper-item class="swiper-item" v-for="(_, index) in classifyList" :key="index"> <swiper-item class="swiper-item" v-for="(_, index) in classifyList" :key="index">
<view class="goods-item"> <view class="goods-item">
<item v-for="item in goodsList" :key="item.goods_id" :info="item"></item> <item v-for="item in goodsList" :key="item.goods_id" :info="item"></item>
@ -128,11 +128,20 @@ export default {
text-align: center; text-align: center;
color: #333; color: #333;
} }
.swiper-box {
height: 100%;
margin-bottom: 10rpx;
.swiper-item {
height: 100%;
.goods-item { .goods-item {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: space-between; justify-content: space-between;
margin-top: 20rpx; width: 100%;
height: 100%;
overflow-y: scroll;
}
}
} }
} }
</style> </style>

View File

@ -44,6 +44,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.item{ .item{
width: 330rpx; width: 330rpx;
height: 500rpx;
margin-bottom: 26rpx; margin-bottom: 26rpx;
background-color: #f8f8f8; background-color: #f8f8f8;
border-radius: 10rpx 10rpx 0rpx 0rpx; border-radius: 10rpx 10rpx 0rpx 0rpx;

View File

@ -78,7 +78,7 @@ export default {
num = this.couponList.length num = this.couponList.length
? this.couponList.length > 4 ? 4 : this.couponList.length ? this.couponList.length > 4 ? 4 : this.couponList.length
: 1 : 1
this.swiperHeight = (97 + 10) * num + 'px'; this.swiperHeight = (200 + 20) * num + 'rpx';
}, },
toCouponPage() { toCouponPage() {
this.$u.route({ this.$u.route({
@ -116,6 +116,7 @@ export default {
box-sizing: border-box; box-sizing: border-box;
background-color: #ffffff; background-color: #ffffff;
.coupon-item { .coupon-item {
height: 200rpx;
margin-bottom: 20rpx; margin-bottom: 20rpx;
} }
} }

View File

@ -71,6 +71,7 @@
value: '', value: '',
login: '注册', login: '注册',
show: false, show: false,
is_check: null,
member_mobile: '', // member_mobile: '', //
smslog_type : '1',// smslog_type : '1',//
sms_code : '', // sms_code : '', //
@ -107,21 +108,28 @@
let type_phone = this.$u.test.mobile( this.member_mobile) let type_phone = this.$u.test.mobile( this.member_mobile)
if( this.member_mobile == ''){ if( this.member_mobile == ''){
this.$refs.uToast.show({ this.$refs.uToast.show({
title: '手机号不能为空', title: '手机号不能为空',
type: 'error' type: 'error'
}) })
return false; return false;
} }
if (type_phone == false) { if (type_phone == false) {
this.$refs.uToast.show({ this.$refs.uToast.show({
title: '手机号格式不正确', title: '手机号格式不正确',
type: 'error' type: 'error'
}); });
return false; return false;
} }
if( this.sms_code == ''){ if( this.sms_code == ''){
this.$refs.uToast.show({ this.$refs.uToast.show({
title: '验证码不能为空', title: '验证码不能为空!',
type: 'error'
})
return false;
}
if (this.is_check) {
this.$refs.uToast.show({
title: '请同意协议!',
type: 'error' type: 'error'
}) })
return false; return false;
@ -169,11 +177,13 @@
}, },
// checkbox // checkbox
checkboxChange(e) { checkboxChange(e) {
//console.log(e); // console.log(e,1);
this.is_check = e.value;
console.log(this.is_check);
}, },
// checkboxcheckbox-group // checkboxcheckbox-group
checkboxGroupChange(e) { checkboxGroupChange(e) {
// console.log(e); // console.log(e,2);
}, },
mask_u() { mask_u() {
this.show = !this.show this.show = !this.show

View File

@ -10,7 +10,7 @@
</swiper-item> </swiper-item>
</swiper> </swiper>
<view class="bottom"> <view class="bottom">
<view class="item"> <view class="item" :style="{ width: photo_len * 20 + 100 + 'rpx' }">
<text>图片</text> <text>图片</text>
<view v-for="(item,index) in list.photo" :key="index" :style="{'background-color':index == swiper_id ? '#fff' : '#ede8e8'}"></view> <view v-for="(item,index) in list.photo" :key="index" :style="{'background-color':index == swiper_id ? '#fff' : '#ede8e8'}"></view>
</view> </view>
@ -46,7 +46,7 @@
<view> <view>
</view> </view>
<view class="more-reply" v-if="item.reply_count">展开更多回复<u-icon name="arrow-down"></u-icon></view> <!-- <view class="more-reply" v-if="item.reply_count">展开更多回复<u-icon name="arrow-down"></u-icon></view> -->
</view> </view>
</block> </block>
<view class="no-data" v-else>111</view> <view class="no-data" v-else>111</view>
@ -120,7 +120,6 @@
.item{ .item{
display: flex; display: flex;
align-items: center; align-items: center;
width: 50%;
padding: 8rpx 16rpx; padding: 8rpx 16rpx;
font-size: 24rpx; font-size: 24rpx;
color: #fff; color: #fff;
@ -349,6 +348,7 @@
.content { .content {
height: 60rpx; height: 60rpx;
margin: 10rpx 0; margin: 10rpx 0;
line-height: 30rpx;
font-size: 24rpx; font-size: 24rpx;
} }
.price { .price {
@ -379,6 +379,7 @@ export default {
send_value: "", // send_value: "", //
cartList: [], cartList: [],
cart_len: 0, cart_len: 0,
photo_len: 0,
edit_text: "有爱评论,说点好听的 ~", edit_text: "有爱评论,说点好听的 ~",
edit_text_other: "有爱评论,说点好听的 ~", edit_text_other: "有爱评论,说点好听的 ~",
commentList: [], // commentList: [], //
@ -408,6 +409,7 @@ export default {
this.$u.api.articleInfo({article_id}).then((res)=>{ this.$u.api.articleInfo({article_id}).then((res)=>{
this.list = res.data.info; this.list = res.data.info;
this.cart_len = res.data.info.goods.length; this.cart_len = res.data.info.goods.length;
this.photo_len = res.data.info.photo.length;
}) })
}, },
// swiper // swiper

View File

@ -32,6 +32,9 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
page {
background-color: #ECECEC;
}
.sousuo { .sousuo {
height: 113rpx; height: 113rpx;
border: 1px #f00 solid; border: 1px #f00 solid;

View File

@ -251,6 +251,7 @@ export default {
this.$u.route('/pageC/cart/cashier', { this.$u.route('/pageC/cart/cashier', {
pay_sn: this.orderInfo.pay_sn, pay_sn: this.orderInfo.pay_sn,
price: this.orderInfo.order_amount, price: this.orderInfo.order_amount,
order_id: this.orderInfo.order_id,
}); });
}, },
toOtherPage(url) { toOtherPage(url) {