Commit a97ab16f1ffc3d8403102d61da8d01a4a14dd30b

Authored by pengye
1 parent 3965cc5b

网差的时候判断联系方式显示不显示

... ... @@ -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({
... ...
... ... @@ -39,7 +39,7 @@
<view class="label">【停车】</view>
<view class="contentData">{{reserve.park_info}}</view>
</view>
<view class="flex-11" wx:if="{{ reserve && (reserve.seller_phone || detail.seller.phone) && reserve.swich_phone!='0'}}">
<view class="flex-11" wx:if="{{ swich_phone!='0' && reserve && (reserve.seller_phone || detail.seller.phone)}}">
<view class="label">【联系】</view>
<view class="contentData">{{reserve.seller_phone?reserve.seller_phone:detail.seller.phone}}</view>
</view>
... ...