youhuiq1
parent
1ac9c5046e
commit
a726d7c75b
|
@ -344,6 +344,7 @@
|
|||
// console.log('用户信息:',res);
|
||||
if(res.code==0 && res.data.length!=0) {
|
||||
this.userInfo = res.data;
|
||||
uni.setStorageSync('userId',res.data.id);
|
||||
this.userPhone = this.$toolAll.tools.hideMPhone(this.userInfo.mobile)
|
||||
this.tongList[0].num = res.data.score;//个人积分
|
||||
this.tongList[1].num = res.data.coin;//个人孔雀币
|
||||
|
@ -429,7 +430,7 @@
|
|||
success: (rt) => { // 接口调用成功的回调函数
|
||||
let narr = rt.result.split(',');
|
||||
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
|
||||
if(res.code==0){
|
||||
this.contentVal = "核销成功";
|
||||
|
|
|
@ -155,7 +155,7 @@
|
|||
this.$requst.post('user/exhibition-experience-coupon',{coupon_id:this.dataList[index].id}).then(res=>{
|
||||
if(res.code==0){
|
||||
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;
|
||||
} else this.$toolAll.tools.showToast(res.msg);
|
||||
},error=>{})
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
</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="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>
|
||||
</view>
|
||||
|
|
Loading…
Reference in New Issue