master
chen 2021-11-11 15:53:51 +08:00
parent 1ac9c5046e
commit a726d7c75b
3 changed files with 4 additions and 3 deletions

View File

@ -344,6 +344,7 @@
// console.log('',res); // console.log('',res);
if(res.code==0 && res.data.length!=0) { if(res.code==0 && res.data.length!=0) {
this.userInfo = res.data; this.userInfo = res.data;
uni.setStorageSync('userId',res.data.id);
this.userPhone = 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[0].num = res.data.score;//
this.tongList[1].num = res.data.coin;// this.tongList[1].num = res.data.coin;//
@ -429,7 +430,7 @@
success: (rt) => { // success: (rt) => { //
let narr = rt.result.split(','); let narr = rt.result.split(',');
if(narr[1]=='true'){// 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=>{ this.$requst.post('staff/coupon/write-off-experience-coupon',{coupon_id:narr[0],secret:narr[2],account_id:narr[3]}).then(res=>{
this.isQian = true this.isQian = true
if(res.code==0){ if(res.code==0){
this.contentVal = "核销成功"; this.contentVal = "核销成功";

View File

@ -155,7 +155,7 @@
this.$requst.post('user/exhibition-experience-coupon',{coupon_id:this.dataList[index].id}).then(res=>{ this.$requst.post('user/exhibition-experience-coupon',{coupon_id:this.dataList[index].id}).then(res=>{
if(res.code==0){ if(res.code==0){
this.isTY = true; this.isTY = true;
this.text = `${this.dataList[index].id},true,${res.data.secret}`; this.text = `${this.dataList[index].id},true,${res.data.secret},${uni.getStorageSync('userId')}`;
this.secret = res.data.secret; this.secret = res.data.secret;
} else this.$toolAll.tools.showToast(res.msg); } else this.$toolAll.tools.showToast(res.msg);
},error=>{}) },error=>{})

View File

@ -30,7 +30,7 @@
</view> </view>
<view class="disjbac mar-s10"> <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 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="itemc.is_virtual!=0 && itemc.check_type=='frontend' && itemc.not_check_num!=0" class="order-btn">线</view> <view @tap.stop="make(index,indexc)" v-if="itemc.is_virtual!=0 && itemc.check_type=='frontend' && itemc.not_check_num!=0 && item.orderStatus!=1" class="order-btn">线</view>
<view v-if="itemc.is_virtual!=0 && itemc.check_type!='frontend'" class="order-btn" style="background-color: #CCCCCC;">线</view> <view v-if="itemc.is_virtual!=0 && itemc.check_type!='frontend'" class="order-btn" style="background-color: #CCCCCC;">线</view>
</view> </view>
</view> </view>