Commit 13559c8f1fae6bd6e7403671c3836eef77666443
1 parent
7ebd4511
我的会员-增加套盒商品入口
Showing
2 changed files
with
22 additions
and
1 deletions
pages/user/index/index.js
@@ -98,6 +98,10 @@ Page({ | @@ -98,6 +98,10 @@ Page({ | ||
98 | * 生命周期函数--监听页面显示 | 98 | * 生命周期函数--监听页面显示 |
99 | */ | 99 | */ |
100 | onShow: function() { | 100 | onShow: function() { |
101 | + | ||
102 | + | ||
103 | + | ||
104 | + | ||
101 | //看一下小程序是不是过期了 | 105 | //看一下小程序是不是过期了 |
102 | getApp().getConfig2(function(config2){ | 106 | getApp().getConfig2(function(config2){ |
103 | if(config2 && config2.is_overdue==1){ | 107 | if(config2 && config2.is_overdue==1){ |
@@ -127,6 +131,17 @@ Page({ | @@ -127,6 +131,17 @@ Page({ | ||
127 | 131 | ||
128 | 132 | ||
129 | var th=this; | 133 | var th=this; |
134 | + | ||
135 | + // 判断是否开启美业 | ||
136 | + getApp().promiseGet('/api/weshop/store/getTabSys/' + os.stoid, {}).then(res => { | ||
137 | + if(res.data.code == 0) { | ||
138 | + th.setData({ | ||
139 | + enableMeiye: res.data.data.EnableMeiye, | ||
140 | + }); | ||
141 | + }; | ||
142 | + }); | ||
143 | + | ||
144 | + | ||
130 | getApp().request.promiseGet("/api/weshop/plus/vip/mem/bership/list?" + "storeId=" + os.stoid, {}).then(res => { | 145 | getApp().request.promiseGet("/api/weshop/plus/vip/mem/bership/list?" + "storeId=" + os.stoid, {}).then(res => { |
131 | if(res.data.code==0){ | 146 | if(res.data.code==0){ |
132 | var plusCard = res.data.data; | 147 | var plusCard = res.data.data; |
pages/user/index/index.wxml
@@ -241,7 +241,13 @@ | @@ -241,7 +241,13 @@ | ||
241 | <image class="xc-center-img" src="{{iurl+item.icoimg}}"></image> | 241 | <image class="xc-center-img" src="{{iurl+item.icoimg}}"></image> |
242 | <view class="fs26">我的权益</view> | 242 | <view class="fs26">我的权益</view> |
243 | </view> | 243 | </view> |
244 | - </block> | 244 | + </block> |
245 | + <block wx:elif="{{item.name=='套盒商品'}}"> | ||
246 | + <view class="item t-c" data-url="{{item.weappurl}}" bindtap="goto" wx:if="{{enableMeiye}}"> | ||
247 | + <image class="xc-center-img" src="{{iurl+item.icoimg}}"></image> | ||
248 | + <view class="fs26">套盒商品</view> | ||
249 | + </view> | ||
250 | + </block> | ||
245 | <block wx:else> | 251 | <block wx:else> |
246 | <view class="item t-c" data-url="{{item.weappurl}}" bindtap="goto_nav"> | 252 | <view class="item t-c" data-url="{{item.weappurl}}" bindtap="goto_nav"> |
247 | <image class="xc-center-img" src="{{iurl+item.icoimg}}"></image> | 253 | <image class="xc-center-img" src="{{iurl+item.icoimg}}"></image> |