|
...
|
...
|
@@ -67,6 +67,7 @@ Page({ |
|
|
|
isPaymenBtn:'',//支付定金按钮
|
|
|
|
isShareItem:'',//转发客人按钮
|
|
|
|
couponArr: [],//待领取的优惠券列表
|
|
|
|
couponList:[],//优惠券列表
|
|
|
|
},
|
|
|
|
tablestr: '',
|
|
|
|
urlsValue: [],
|
|
...
|
...
|
@@ -114,8 +115,9 @@ Page({ |
|
|
|
closeModal() {
|
|
|
|
this.modal.closeModal()
|
|
|
|
},
|
|
|
|
// 关闭优惠券弹框
|
|
|
|
// 关闭优惠券弹框(更新已被领取数量)
|
|
|
|
closeCouponModal() {
|
|
|
|
this.getActivityByIdFun(this.data.couponList,'1')
|
|
|
|
this.couponModal.closeModal()
|
|
|
|
},
|
|
|
|
// 页面滚动事件
|
|
...
|
...
|
@@ -699,6 +701,7 @@ Page({ |
|
|
|
themeSixteen,
|
|
|
|
lite_style:data.lite_style,
|
|
|
|
timeList,
|
|
|
|
couponList,
|
|
|
|
isMoreBtn:marketing && marketing.is_online_book=='1' && this.data.options.onlineReserve == '1',
|
|
|
|
isShareItem: this.data.options.isOrder != '1' && marketing && marketing.is_transpond=='1',
|
|
|
|
}
|
|
...
|
...
|
@@ -907,7 +910,7 @@ Page({ |
|
|
|
})
|
|
|
|
},
|
|
|
|
// 根据券ID获取券详情
|
|
|
|
getActivityByIdFun(obj) {
|
|
|
|
getActivityByIdFun(obj,setcoupon) {
|
|
|
|
App.Activity.GetActivityById({
|
|
|
|
id: obj.map(item => item.id).join(','),
|
|
|
|
}).then(res => {
|
|
...
|
...
|
@@ -951,7 +954,7 @@ Page({ |
|
|
|
return item.is_type == '3'
|
|
|
|
})
|
|
|
|
// 免费券判断是否领取,弹框领取
|
|
|
|
if (freeCoupons.length > 0) {
|
|
|
|
if (freeCoupons.length > 0 && setcoupon!='1') {
|
|
|
|
let length = freeCoupons.length - 1
|
|
|
|
freeCoupons.forEach(i => {
|
|
|
|
this.getCoupon(i, freeCoupons[length].id, obj)
|
...
|
...
|
|