|
...
|
...
|
@@ -46,6 +46,9 @@ Page({ |
|
|
|
showMoreTip: true,
|
|
|
|
themeColor: '',
|
|
|
|
whiteBj: false,
|
|
|
|
hasValueOrder:false,//商家是否开通提前点餐功能
|
|
|
|
hasValueCertificate:false,//商家是否开通优惠券功能
|
|
|
|
hasValueRecharge:false,//商家是否开通充值功能
|
|
|
|
},
|
|
|
|
screenHeight: '',
|
|
|
|
/**
|
|
...
|
...
|
@@ -217,11 +220,30 @@ Page({ |
|
|
|
setTimeout(() => {
|
|
|
|
this.getSellerTemplateConfFun(reserev.sid);
|
|
|
|
this.getstaffinfo(res.data.uid)
|
|
|
|
this.getSellerVersionFun(reserev.sid);
|
|
|
|
}, 0);
|
|
|
|
}).catch(res => {
|
|
|
|
console.log(res, '详情请求失败');
|
|
|
|
})
|
|
|
|
},
|
|
|
|
// 获取商家版本,不是超能版或者没有开通对应模块,不显示
|
|
|
|
getSellerVersionFun(sellerid){
|
|
|
|
App.SellerVersion.GetSellerVersion({
|
|
|
|
sellerid
|
|
|
|
}).then((res) => {
|
|
|
|
console.log('版本列表',res.data);
|
|
|
|
if(res.data && res.data.length>0){
|
|
|
|
const hasValueOrder = res.data.some(item => item.vid == '1' || item.vid == '2' || item.vid == '3' || item.vid == '6');
|
|
|
|
const hasValueCertificate = res.data.some(item => item.vid == '1' || item.vid == '2' || item.vid == '3' || item.vid == '8');
|
|
|
|
const hasValueRecharge = res.data.some(item => item.vid == '1' || item.vid == '2' || item.vid == '3' || item.vid == '9');
|
|
|
|
this.setData({
|
|
|
|
hasValueOrder,
|
|
|
|
hasValueCertificate,
|
|
|
|
hasValueRecharge,
|
|
|
|
})
|
|
|
|
}
|
|
|
|
})
|
|
|
|
},
|
|
|
|
getstaffinfo(uid) {
|
|
|
|
console.log('sellerid', this.data.detail.seller.id);
|
|
|
|
App.Activity.GetCustomerActivityBaseinfo({
|
...
|
...
|
|