diff --git a/pages/tabbar/my/staffDuan.vue b/pages/tabbar/my/staffDuan.vue index 615c597..1ff4425 100644 --- a/pages/tabbar/my/staffDuan.vue +++ b/pages/tabbar/my/staffDuan.vue @@ -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 = "核销成功"; diff --git a/pagesA/coupon/coupon.vue b/pagesA/coupon/coupon.vue index 516798d..cc00486 100644 --- a/pagesA/coupon/coupon.vue +++ b/pagesA/coupon/coupon.vue @@ -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=>{}) diff --git a/pagesA/myOrder/myOrder.vue b/pagesA/myOrder/myOrder.vue index c55180c..09debe2 100644 --- a/pagesA/myOrder/myOrder.vue +++ b/pagesA/myOrder/myOrder.vue @@ -30,7 +30,7 @@ 积分:{{itemc.price}}x{{itemc.num}} - 线下核销 + 线下核销 线上核销