|
...
|
...
|
@@ -41,6 +41,7 @@ Page({ |
|
|
|
discount:'',
|
|
|
|
certificate:'',
|
|
|
|
dataStr:Date.now()*1/1000,
|
|
|
|
swich_phone:'0',
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
* 生命周期函数--监听页面加载
|
|
...
|
...
|
@@ -63,6 +64,7 @@ Page({ |
|
|
|
"statReachBottom": true,
|
|
|
|
"lauchOpts": options, //渠道分析
|
|
|
|
});
|
|
|
|
this.getDetail();
|
|
|
|
},
|
|
|
|
// 点击了解更多会员优惠政策
|
|
|
|
gotoFavourableList(){
|
|
...
|
...
|
@@ -77,12 +79,6 @@ Page({ |
|
|
|
})
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
* 生命周期函数--监听页面初次渲染完成
|
|
|
|
*/
|
|
|
|
onReady() {
|
|
|
|
this.getDetail();
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
* 用户点击右上角分享
|
|
|
|
*/
|
|
|
|
onShareAppMessage: function () {
|
|
...
|
...
|
@@ -283,9 +279,10 @@ Page({ |
|
|
|
}).then(res => {
|
|
|
|
let data=res.data
|
|
|
|
console.log('data',data);
|
|
|
|
let home,chef,marketing,reserve,signboard,store,homeColor,coupon_data,priceInfo,certificate,scoreInfo,recharge_list,stringifyUse;
|
|
|
|
let home,chef,marketing,reserve,swich_phone,signboard,store,homeColor,coupon_data,priceInfo,certificate,scoreInfo,recharge_list,stringifyUse;
|
|
|
|
chef = util.determine(data.chef);
|
|
|
|
reserve = util.determine(data.reserve);
|
|
|
|
swich_phone = reserve && reserve.swich_phone?reserve.swich_phone:'';
|
|
|
|
marketing = util.determine(data.marketing);
|
|
|
|
signboard = util.determine(data.signboard);
|
|
|
|
store = util.determine(data.store);
|
|
...
|
...
|
@@ -302,7 +299,8 @@ Page({ |
|
|
|
store,
|
|
|
|
home,
|
|
|
|
stringifyUse,
|
|
|
|
coupon_data
|
|
|
|
coupon_data,
|
|
|
|
swich_phone
|
|
|
|
}
|
|
|
|
console.log('获取数据', {...obj});
|
|
|
|
if(marketing.is_recharge=='1' && marketing.recharge_data){
|
|
...
|
...
|
@@ -357,7 +355,8 @@ Page({ |
|
|
|
store,
|
|
|
|
homeColor, //home主题颜色
|
|
|
|
priceInfo,
|
|
|
|
scoreInfo
|
|
|
|
scoreInfo,
|
|
|
|
swich_phone,
|
|
|
|
})
|
|
|
|
if (home && home.red == '1' && home.green == '67' && home.blue == '163') {
|
|
|
|
this.setData({
|
...
|
...
|
|