|
@@ -41,6 +41,7 @@ Page({ |
|
@@ -41,6 +41,7 @@ Page({ |
|
41
|
discount:'',
|
41
|
discount:'',
|
|
42
|
certificate:'',
|
42
|
certificate:'',
|
|
43
|
dataStr:Date.now()*1/1000,
|
43
|
dataStr:Date.now()*1/1000,
|
|
|
|
44
|
+ swich_phone:'0',
|
|
44
|
},
|
45
|
},
|
|
45
|
/**
|
46
|
/**
|
|
46
|
* 生命周期函数--监听页面加载
|
47
|
* 生命周期函数--监听页面加载
|
|
@@ -63,6 +64,7 @@ Page({ |
|
@@ -63,6 +64,7 @@ Page({ |
|
63
|
"statReachBottom": true,
|
64
|
"statReachBottom": true,
|
|
64
|
"lauchOpts": options, //渠道分析
|
65
|
"lauchOpts": options, //渠道分析
|
|
65
|
});
|
66
|
});
|
|
|
|
67
|
+ this.getDetail();
|
|
66
|
},
|
68
|
},
|
|
67
|
// 点击了解更多会员优惠政策
|
69
|
// 点击了解更多会员优惠政策
|
|
68
|
gotoFavourableList(){
|
70
|
gotoFavourableList(){
|
|
@@ -77,12 +79,6 @@ Page({ |
|
@@ -77,12 +79,6 @@ Page({ |
|
77
|
})
|
79
|
})
|
|
78
|
},
|
80
|
},
|
|
79
|
/**
|
81
|
/**
|
|
80
|
- * 生命周期函数--监听页面初次渲染完成
|
|
|
|
81
|
- */
|
|
|
|
82
|
- onReady() {
|
|
|
|
83
|
- this.getDetail();
|
|
|
|
84
|
- },
|
|
|
|
85
|
- /**
|
|
|
|
86
|
* 用户点击右上角分享
|
82
|
* 用户点击右上角分享
|
|
87
|
*/
|
83
|
*/
|
|
88
|
onShareAppMessage: function () {
|
84
|
onShareAppMessage: function () {
|
|
@@ -283,9 +279,10 @@ Page({ |
|
@@ -283,9 +279,10 @@ Page({ |
|
283
|
}).then(res => {
|
279
|
}).then(res => {
|
|
284
|
let data=res.data
|
280
|
let data=res.data
|
|
285
|
console.log('data',data);
|
281
|
console.log('data',data);
|
|
286
|
- let home,chef,marketing,reserve,signboard,store,homeColor,coupon_data,priceInfo,certificate,scoreInfo,recharge_list,stringifyUse;
|
282
|
+ let home,chef,marketing,reserve,swich_phone,signboard,store,homeColor,coupon_data,priceInfo,certificate,scoreInfo,recharge_list,stringifyUse;
|
|
287
|
chef = util.determine(data.chef);
|
283
|
chef = util.determine(data.chef);
|
|
288
|
reserve = util.determine(data.reserve);
|
284
|
reserve = util.determine(data.reserve);
|
|
|
|
285
|
+ swich_phone = reserve && reserve.swich_phone?reserve.swich_phone:'';
|
|
289
|
marketing = util.determine(data.marketing);
|
286
|
marketing = util.determine(data.marketing);
|
|
290
|
signboard = util.determine(data.signboard);
|
287
|
signboard = util.determine(data.signboard);
|
|
291
|
store = util.determine(data.store);
|
288
|
store = util.determine(data.store);
|
|
@@ -302,7 +299,8 @@ Page({ |
|
@@ -302,7 +299,8 @@ Page({ |
|
302
|
store,
|
299
|
store,
|
|
303
|
home,
|
300
|
home,
|
|
304
|
stringifyUse,
|
301
|
stringifyUse,
|
|
305
|
- coupon_data
|
302
|
+ coupon_data,
|
|
|
|
303
|
+ swich_phone
|
|
306
|
}
|
304
|
}
|
|
307
|
console.log('获取数据', {...obj});
|
305
|
console.log('获取数据', {...obj});
|
|
308
|
if(marketing.is_recharge=='1' && marketing.recharge_data){
|
306
|
if(marketing.is_recharge=='1' && marketing.recharge_data){
|
|
@@ -357,7 +355,8 @@ Page({ |
|
@@ -357,7 +355,8 @@ Page({ |
|
357
|
store,
|
355
|
store,
|
|
358
|
homeColor, //home主题颜色
|
356
|
homeColor, //home主题颜色
|
|
359
|
priceInfo,
|
357
|
priceInfo,
|
|
360
|
- scoreInfo
|
358
|
+ scoreInfo,
|
|
|
|
359
|
+ swich_phone,
|
|
361
|
})
|
360
|
})
|
|
362
|
if (home && home.red == '1' && home.green == '67' && home.blue == '163') {
|
361
|
if (home && home.red == '1' && home.green == '67' && home.blue == '163') {
|
|
363
|
this.setData({
|
362
|
this.setData({
|