|
...
|
...
|
@@ -78,6 +78,7 @@ Page({ |
|
|
|
n: 0,
|
|
|
|
modal:'',
|
|
|
|
couponModal: '',
|
|
|
|
give_user:'',
|
|
|
|
/**
|
|
|
|
* 生命周期函数--监听页面加载
|
|
|
|
*/
|
|
...
|
...
|
@@ -279,9 +280,10 @@ Page({ |
|
|
|
dateStrDivide:dateStrDivide == '00分' ? '' : dateStrDivide,
|
|
|
|
}
|
|
|
|
})
|
|
|
|
console.log('reserev reserev', reserev);
|
|
|
|
console.log('seller seller', this.data.seller);
|
|
|
|
console.log('detail detail', this.data.detail);
|
|
|
|
this.give_user = reserev.give_user ? reserev.give_user : '2';
|
|
|
|
console.log('reserev信息', reserev);
|
|
|
|
console.log('seller信息', this.data.seller);
|
|
|
|
console.log('detail信息', this.data.detail);
|
|
|
|
setTimeout(() => {
|
|
|
|
this.getstaffinfo(res.data.uid, reserev.sid);
|
|
|
|
this.getSellerVersionFun(reserev.sid);
|
|
...
|
...
|
@@ -976,8 +978,21 @@ Page({ |
|
|
|
let freeCoupons = list.filter(item => {
|
|
|
|
return item.is_type == '3'
|
|
|
|
})
|
|
|
|
let give = this.give_user;
|
|
|
|
let couponShow = false;
|
|
|
|
switch (give) {
|
|
|
|
case '1':
|
|
|
|
couponShow = this.data.options.hasSellerShare == '1' ? true : false;
|
|
|
|
break;
|
|
|
|
case '2':
|
|
|
|
couponShow = true;
|
|
|
|
break;
|
|
|
|
case '3':
|
|
|
|
couponShow = this.data.options.hasSellerShare != '1' ? true : false;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
// 免费券判断是否领取,弹框领取
|
|
|
|
if (freeCoupons.length > 0) {
|
|
|
|
if (freeCoupons.length > 0 && couponShow) {
|
|
|
|
this.getCoupon(freeCoupons,obj,setcoupon)
|
|
|
|
}
|
|
|
|
console.log('邀请函--------------------优惠券', list);
|
...
|
...
|
|