|
...
|
...
|
@@ -104,7 +104,8 @@ Page({ |
|
|
|
sid
|
|
|
|
}).then(res => {
|
|
|
|
let is_online_reserve = res.data.is_online_reserve;
|
|
|
|
this.getSellerTemplateConfFun(sid, isOrder, status,is_online_reserve);
|
|
|
|
let isDeposit = res.data.is_show_notice_deposit;
|
|
|
|
this.getSellerTemplateConfFun(sid, isOrder, status,is_online_reserve,isDeposit);
|
|
|
|
}).catch(res => {
|
|
|
|
console.log(res, '商家详情请求失败');
|
|
|
|
})
|
|
...
|
...
|
@@ -117,7 +118,7 @@ Page({ |
|
|
|
return isorder;
|
|
|
|
},
|
|
|
|
// 获取商家设置营销信息
|
|
|
|
getSellerTemplateConfFun(sid, isOrder, status, is_online_reserve) {
|
|
|
|
getSellerTemplateConfFun(sid, isOrder, status, is_online_reserve, isDeposit) {
|
|
|
|
App.Seller.GetSellerTemplateConf({
|
|
|
|
sid
|
|
|
|
}).then(res => {
|
|
...
|
...
|
@@ -130,8 +131,8 @@ Page({ |
|
|
|
} else {
|
|
|
|
url = '/pack-invitation/pages/detail_owner_invitation9';
|
|
|
|
}
|
|
|
|
// is_online_reserve 在线预订开关 hasSellerShare 商家app分享 hasInvitation 受邀人
|
|
|
|
url += '?id=' + this.data.options.id + '&tplid=' + this.data.options.tplid + '&onlineReserve=' + is_online_reserve + '&hasInvitation=' + this.data.options.hasInvitation + '&hasSellerShare=' + this.data.options.hasSellerShare;
|
|
|
|
// is_online_reserve 在线预订开关 hasSellerShare 商家app分享 hasInvitation 受邀人 isDeposit 订金功能 1 是 0 否
|
|
|
|
url += '?id=' + this.data.options.id + '&tplid=' + this.data.options.tplid + '&onlineReserve=' + is_online_reserve + '&hasInvitation=' + this.data.options.hasInvitation + '&hasSellerShare=' + this.data.options.hasSellerShare + '&isDeposit=' + isDeposit;
|
|
|
|
// (过了当前餐段结束时间 || 预订是用餐完成状态) 邀请函显示已结束
|
|
|
|
url += (isOrder == '1' || status == '3') ? '&isOrder=1' : '';
|
|
|
|
url+= this.data.options.paymentId?'&paymentId='+this.data.options.paymentId:'&paymentId=' ;
|
...
|
...
|
|