Commit 3c81e47625b47dbb445c2d07074a1c6a630df74d

Authored by pengye
1 parent 94571ad8

邀请函发免费券加判断

... ... @@ -74,6 +74,7 @@ Page({
n: 0,
modal: '',
couponModal: '',
give_user:'',
/**
* 生命周期函数--监听页面加载
*/
... ... @@ -337,6 +338,7 @@ Page({
phone: reserev.phone,
}
})
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);
... ... @@ -1118,8 +1120,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);
... ...
... ... @@ -77,6 +77,7 @@ Page({
n: 0,
modal: '',
couponModal: '',
give_user:'',
/**
* 生命周期函数--监听页面加载
*/
... ... @@ -356,6 +357,7 @@ Page({
phone: reserev.phone,
}
})
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);
... ... @@ -1195,8 +1197,21 @@ Page({
entry.sort((a, b) => a.id - b.id);
}
}
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);
... ...
... ... @@ -80,6 +80,7 @@ Page({
modal: '',
publicModal: '',
couponModal: '',
give_user:'',
/**
* 生命周期函数--监听页面加载
*/
... ... @@ -364,6 +365,7 @@ Page({
phone: reserev.phone,
}
})
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);
... ... @@ -1205,8 +1207,21 @@ Page({
entry.sort((a, b) => a.id - b.id);
}
}
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);
... ...
... ... @@ -79,6 +79,7 @@ Page({
n: 0,
modal:'',
couponModal: '',
give_user:'',
/**
* 生命周期函数--监听页面加载
*/
... ... @@ -324,9 +325,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.getroomimage(reserev.sid)
... ... @@ -1064,8 +1066,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);
... ...
... ... @@ -79,6 +79,7 @@ Page({
n: 0,
modal:'',
couponModal: '',
give_user:'',
/**
* 生命周期函数--监听页面加载
*/
... ... @@ -324,9 +325,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.getroomimage(reserev.sid)
... ... @@ -1019,8 +1021,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);
... ...
... ... @@ -79,6 +79,7 @@ Page({
n: 0,
modal:'',
couponModal: '',
give_user:'',
/**
* 生命周期函数--监听页面加载
*/
... ... @@ -324,9 +325,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.getroomimage(reserev.sid)
... ... @@ -1019,8 +1021,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);
... ...
... ... @@ -78,6 +78,7 @@ Page({
n: 0,
modal:'',
couponModal: '',
give_user:'',
/**
* 生命周期函数--监听页面加载
*/
... ... @@ -323,9 +324,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.getroomimage(reserev.sid)
... ... @@ -1018,8 +1020,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);
... ...
... ... @@ -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);
... ...
... ... @@ -79,6 +79,7 @@ Page({
n: 0,
modal:'',
couponModal: '',
give_user:'',
/**
* 生命周期函数--监听页面加载
*/
... ... @@ -324,9 +325,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.getroomimage(reserev.sid)
... ... @@ -1019,8 +1021,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);
... ...
... ... @@ -79,6 +79,7 @@ Page({
n: 0,
modal:'',
couponModal: '',
give_user:'',
/**
* 生命周期函数--监听页面加载
*/
... ... @@ -323,9 +324,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.getroomimage(reserev.sid)
... ... @@ -1018,8 +1020,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);
... ...
... ... @@ -87,6 +87,7 @@ Page({
n: 0,
modal:'',
couponModal: '',
give_user:'',
/**
* 生命周期函数--监听页面加载
*/
... ... @@ -341,9 +342,10 @@ Page({
phone:reserev.phone,
}
})
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.getroomimage(reserev.sid)
... ... @@ -1059,8 +1061,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);
... ...