master
chen 2021-11-11 10:50:50 +08:00
parent 0847e5b41b
commit 5b006c1eac
26 changed files with 74 additions and 40 deletions

View File

@ -213,8 +213,8 @@ swiper-item view:last-child .duan-xian{border-bottom: none;}
.item-del-btn{width: 117rpx;height: 205rpx;background: #F85050;line-height: 205rpx;text-align: center;color: #FFFFFF;font-size: 24rpx;flex-shrink: 0;position: absolute;right: 0;bottom: 40rpx;top: 2rpx;}
/* 我的订单页面 */
.order-item-box image{width: 166rpx;height: 166rpx;border-radius: 15rpx;margin-right: 12rpx;}
.order-btn{width: 140rpx;height: 50rpx;line-height: 50rpx;text-align: center;border-radius: 10rpx;background: #F85050;color: #FFFFFF;margin-left: 45rpx;}
.order-cancle{width: 140rpx;height: 50rpx;line-height: 50rpx;text-align: center;border-radius: 10rpx;background: #E9E9E9;color: #808080;}
.order-btn{width: 210rpx;height: 75rpx;line-height: 75rpx;text-align: center;border-radius: 10rpx;background: #F85050;color: #FFFFFF;margin-left: 45rpx;}
.order-cancle{width: 210rpx;height: 75rpx;line-height: 75rpx;text-align: center;border-radius: 10rpx;background: #E9E9E9;color: #808080;}
.heyan-close{width: 96rpx;height: 96rpx;left: 50%;transform: translateX(-50%);bottom: -150rpx;}
.confirm-btn{font-size: 36rpx;color: #FFFFFF;font-weight: bold;margin: 0 auto;background: #3875F6;border-radius: 20rpx;height: 90rpx;line-height: 90rpx;text-align: center;margin: 80rpx 100rpx 20rpx 100rpx;}
/* 地址管理页面 */

View File

@ -16,10 +16,10 @@
<view class="fon36 bold">{{userInfo.nickname || ''}}</view>
<view class="gao-name">黄金</view>
</view>
<view class="disac mar-s10" v-if="userInfo.mobile!==''">
<view class="disac mar-s10" v-if="userPhone!==''">
<image src="/static/public/phone-02.png" class="gao-phone" mode=""></image>
<!-- 手机号 -->
<view class="fon24 mar-z10">{{userInfo.mobile}}</view>
<view class="fon24 mar-z10">{{userPhone}}</view>
</view>
</view>
</view>
@ -129,7 +129,7 @@
<!-- 弹框授权 -->
<empower :vision="vision" @cancleEv="cancleEv"></empower>
<view v-if="isQian" class="sigin-box">
<view>签到成功</view>
<view>{{contentVal}}</view>
</view>
</view>
</template>
@ -198,7 +198,9 @@
guangImg:'',
isAuth:'',
guanggao:'',
userToken:''
userToken:'',
contentVal:'',//
userPhone:''
}
},
onUnload: function() {
@ -342,7 +344,7 @@
// console.log('',res);
if(res.code==0 && res.data.length!=0) {
this.userInfo = res.data;
this.userInfo.mobile = this.$toolAll.tools.hideMPhone(this.userInfo.mobile);
this.userPhone = this.$toolAll.tools.hideMPhone(this.userInfo.mobile)
this.tongList[0].num = res.data.score;//
this.tongList[1].num = res.data.coin;//
this.tongList[2].num = res.data.continuity_sign;//
@ -408,6 +410,7 @@
// console.log('',res);
if(res.code==0){
this.isQian = true
this.contentVal = "签到成功";
setTimeout(()=>{
this.isQian = false
},2000)
@ -428,13 +431,21 @@
if(narr[1]=='true'){//
this.$requst.post('staff/coupon/write-off-experience-coupon',{coupon_id:narr[0],secret:narr[2],account_id:this.userInfo.id}).then(res=>{
if(res.code==0){
this.$toolAll.tools.showToast('核销成功');
this.isQian = true
this.contentVal = "核销成功";
setTimeout(()=>{
this.isQian = false
},2000)
} else this.$toolAll.tools.showToast(res.msg);
},error=>{})
} else {//
this.$requst.post('order/check',{order_coding:narr[0],id:narr[1],check_user:this.userInfo.id}).then(res=>{
if(res.code==0){
this.$toolAll.tools.showToast('核销成功');
this.isQian = true
this.contentVal = "核销成功";
setTimeout(()=>{
this.isQian = false
},2000)
} else this.$toolAll.tools.showToast(res.msg);
},error=>{})
}

View File

@ -27,6 +27,7 @@
</view>
<!-- 分享截图任务 -->
<view v-if="item.ntype=='share_screenshots'" class="disja">
<!-- <view @tap="btnEv(index)" class="activity-dai mar-s30">立即完成</view> -->
<view v-if="item.account_status==3 || item.account_status==4" @tap="btnEv(index)" class="activity-dai mar-s30"></view>
<view v-if="item.account_status==0" class="activity-mo mar-s30">...</view>
<view v-if="item.account_status==2" @tap="btnEv(index)" class="activity-dai mar-s30"></view>
@ -254,7 +255,12 @@
sourceType:['album'],
success: (res) => {
console.log(res);
this.upImg = res.tempFilePaths[0]
this.upImg = res.tempFilePaths[0];
this.$requst.post('file/upload/image',{image:this.upImg}).then(res=>{
if(res.code==0){
}
})
}
})
},

View File

@ -88,6 +88,9 @@
}).exec()
this.checkAllList(0);
},
onUnload() {
this.closeQuanEv();
},
methods: {
checkAllList(index){//
let params = {
@ -159,10 +162,12 @@
this.timer = setInterval(()=>{
this.$requst.post('staff/coupon/write-off-experience-couponQuery',{coupon_id:this.dataList[index].id,secret:this.secret}).then(res=>{
if(res.code==0){
this.$toolAll.tools.showToast('使用成功');
this.isTY = false;
clearInterval(this.timer);
this.checkAllList(0);
if(res.data.result==0){
this.$toolAll.tools.showToast('使用成功');
this.isTY = false;
clearInterval(this.timer);
this.checkAllList(0);
}
}
})
},3000)

View File

@ -455,7 +455,7 @@
// url:`/pagesA/immediatePayment/immediatePayment?allPrice=${this.allPrice}&allNum=${this.allNum}&startTime=${new Date(res.header.Date).getTime()}`
// })
} else {
this.$toolAll.tools.showToast(res.data.msg);
this.$toolAll.tools.showToast(res.data.msg,'none',3000);
this.times = 0;
}
}

View File

@ -18,7 +18,7 @@
<view v-if="item.virtual_check==0" class="bold" :class="(item.orderStatus==1 || item.orderStatus==2 || item.orderStatus==3) ? 'colf8':'col9'">{{['','','','','',''][item.orderStatus]}}</view>
<view v-if="item.virtual_check==1" class="bold col9"></view>
</view>
<view v-for="(itemc,indexc) in item.childrenList" :key="indexc" class="fon26 col3 disjbac pad-sx50 disjbac bbot">
<view v-for="(itemc,indexc) in item.childrenList" :key="indexc" class="fon26 col3 disjbac pad-sx50 disjbac bbot posir" :style="{paddingBottom:itemc.is_virtual!=0?'70rpx':'50rpx'}">
<image @tap="goDetail(item.id)" :src="itemc.imgSrc" class="flexs" mode="aspectFill"></image>
<view @tap="goDetail(item.id)" class="width100 disjb fc" style="height: 166rpx;">
<view>
@ -27,10 +27,11 @@
</view>
<view class="disjbac mar-s10">
<view class="colf8 fon32 bold"><span v-if="item.isShop==0"></span><span v-else></span>{{itemc.price}}<span class="fon28 col6 mar-z20 font4">x{{itemc.num}}</span></view>
<view @tap.stop="make(index,indexc)" v-if="item.orderStatus == 3 && item.virtual_check==0 && itemc.check_type=='frontend'" class="order-btn">线</view>
<view v-if="item.orderStatus == 3 && item.virtual_check==0 && itemc.check_type!='frontend'" class="order-btn" style="background-color: #CCCCCC;">线</view>
<view @tap.stop="make(index,indexc)" v-if="itemc.is_virtual!=0 && itemc.check_type=='frontend' && itemc.not_check_num!=0" class="order-btn">线</view>
<view v-if="itemc.is_virtual!=0 && itemc.check_type!='frontend'" class="order-btn" style="background-color: #CCCCCC;">线</view>
</view>
</view>
<view v-if="itemc.is_virtual!=0" class="disjbac mar-s10 posia colf8" style="bottom: 20rpx;"> x{{itemc.not_check_num}}</view>
</view>
<!-- <view class="fon28 col3 pad-s20 disjbac">
<view class="flexs"><span v-if="item.isShop==0"><span v-if="item.is_only!=1">{{item.total}}</span><span v-if="item.is_only==1">{{item.total}}</span> +<span v-if="item.coin!=0">{{item.coin}}</span></span><span v-else>{{item.total}}</span></view>
@ -245,7 +246,8 @@
price:childrenPrice,
num:items.num,
not_check_num:items.not_check_num,
check_type:items.check_type
check_type:items.check_type,
is_virtual:items.is_virtual
}
nchildren.push(objs);
})
@ -338,7 +340,8 @@
confirmReceipt(id){//
this.$requst.post('order/accepted',{order_id:id}).then(res=>{
if(res.code==0){
this.$toolAll.tools.showToast('收货成功');
this.checkList(this.activeIndex);
} else this.$toolAll.tools.showToast(res.msg);
})
},

View File

@ -134,6 +134,7 @@
let firstObj = uni.getStorageSync('firstInfo')
if(firstObj==''){
let obj = uni.getStorageSync('uinfo')
console.log(obj);
if(obj!='') this.uinfo = obj
this.dataList[0].imgSrc = obj.headimgurl//
this.dataList[1].content = obj.nickname//

View File

@ -10,7 +10,7 @@
<view class="bold">{{['商城订单','积分商城订单'][orderInfo.is_score]}}</view>
<view v-if="orderInfo.status=='waiting'" class="colf8 bold"></view>
<view v-if="orderInfo.status=='paid' && orderInfo.has_virtual!=1" class="colf8 bold"></view>
<view v-if="orderInfo.status=='shipped'" class="colf8 bold"></view>
<view v-if="orderInfo.status=='shipped' && orderInfo.has_virtual!=1" class="colf8 bold"></view>
<view v-if="orderInfo.status=='completed'" class="col9 bold"></view>
<view v-if="orderInfo.virtual_check==0 && orderInfo.has_virtual==1" class="colf8 bold"></view>
<view v-if="orderInfo.virtual_check==1 && orderInfo.has_virtual==1" class="col9 bold"></view>
@ -88,7 +88,7 @@
<view @tap="cancleEv"></view>
</view>
<!-- 确认收货 -->
<view class="orderInfo-btn" v-if="orderInfo.status=='shipped'"></view>
<view @tap="confirmReceipt(orderInfo.id)" class="orderInfo-btn" v-if="orderInfo.status=='shipped'"></view>
</view>
<!-- 待核验弹框 -->
<view v-if="isHeyan" @tap="isHeyan=false" class="disjcac tc posAll" style="z-index: 3;">
@ -150,6 +150,14 @@
this.checkInfo(options.id);
},
methods: {
confirmReceipt(id){//
this.$requst.post('order/accepted',{order_id:id}).then(res=>{
if(res.code==0){
this.$toolAll.tools.showToast('收货成功');
this.checkInfo(this.orderInfo.id);
} else this.$toolAll.tools.showToast(res.msg);
})
},
make(index){
this.isHeyan = true;
this.text = `${this.orderInfo.coding},${this.orderInfo.skus[index].id}`;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long