Commit de3f76889d0f5da4ea31d10ac8c140f721a7bcd6
1 parent
803e006a
1. 会员中心首页的 我的权益的显示问题
Showing
3 changed files
with
24 additions
and
16 deletions
app.json
@@ -106,8 +106,7 @@ | @@ -106,8 +106,7 @@ | ||
106 | 106 | ||
107 | "pages/goods_share/goods_share", | 107 | "pages/goods_share/goods_share", |
108 | "pages/activity_share/activity_share", | 108 | "pages/activity_share/activity_share", |
109 | - "pages/live_share/live_share", | ||
110 | - "pages/addCustomer/addCustomer", | 109 | + "pages/live_share/live_share", |
111 | "pages/quan/quan" | 110 | "pages/quan/quan" |
112 | ] | 111 | ] |
113 | 112 |
pages/user/index/filter.wxs
@@ -5,21 +5,30 @@ var is_close = function (name,c_list) { | @@ -5,21 +5,30 @@ var is_close = function (name,c_list) { | ||
5 | map['我的拼单']="2"; | 5 | map['我的拼单']="2"; |
6 | map['秒杀活动']="3"; | 6 | map['秒杀活动']="3"; |
7 | map['PLUS会员']="4"; | 7 | map['PLUS会员']="4"; |
8 | + map['我的权益']="5"; | ||
8 | map['联系客服']="6"; | 9 | map['联系客服']="6"; |
9 | map['收藏夹']="7"; | 10 | map['收藏夹']="7"; |
10 | map['我的地址']="8"; | 11 | map['我的地址']="8"; |
11 | map['收入卡包']="9"; | 12 | map['收入卡包']="9"; |
12 | map['专享礼包']="10"; | 13 | map['专享礼包']="10"; |
13 | - map['我的权益']="11"; | ||
14 | map['我的服务']="12"; | 14 | map['我的服务']="12"; |
15 | map['我的评价']="13"; | 15 | map['我的评价']="13"; |
16 | map['我的礼包']="14"; | 16 | map['我的礼包']="14"; |
17 | map['助力活动']="15"; | 17 | map['助力活动']="15"; |
18 | var index=map[name]; | 18 | var index=map[name]; |
19 | - //不包含,不关闭 | ||
20 | - if(c_list.indexOf(index)==-1) return 0; | ||
21 | - //包含,就是关闭的 | ||
22 | - return 1 | 19 | + |
20 | + //我的权益要判断5,和11 | ||
21 | + if(name=="我的权益"){ | ||
22 | + if(c_list.indexOf("11")!=-1) return 1; | ||
23 | + else if(c_list.indexOf("5")!=-1) return 1; | ||
24 | + return 0; | ||
25 | + }else{ | ||
26 | + //不包含,不关闭 | ||
27 | + if(c_list.indexOf(index)==-1) return 0; | ||
28 | + //包含,就是关闭的 | ||
29 | + return 1 | ||
30 | + } | ||
31 | + | ||
23 | } | 32 | } |
24 | 33 | ||
25 | module.exports = { | 34 | module.exports = { |
pages/user/index/index.wxml
@@ -216,7 +216,13 @@ | @@ -216,7 +216,13 @@ | ||
216 | <image class="xc-center-img " src="{{iurl}}/miniapp/images/friendhelp/icon-zl.png"></image> | 216 | <image class="xc-center-img " src="{{iurl}}/miniapp/images/friendhelp/icon-zl.png"></image> |
217 | <view class="four-level-word">助力活动</view> | 217 | <view class="four-level-word">助力活动</view> |
218 | </view> | 218 | </view> |
219 | - </block> | 219 | + </block> |
220 | + <block wx:elif="{{item.name=='我的权益'}}"> | ||
221 | + <view class="item t-c" bindtap="go_qy" wx:if="{{qy_list!=null && is_init && gradeId}}"> | ||
222 | + <image class="xc-center-img " src="{{iurl+item.icoimg}}"></image> | ||
223 | + <view class="fs26">我的权益</view> | ||
224 | + </view> | ||
225 | + </block> | ||
220 | <block wx:else> | 226 | <block wx:else> |
221 | <view class="item t-c" data-url="{{item.weappurl}}" bindtap="goto_nav"> | 227 | <view class="item t-c" data-url="{{item.weappurl}}" bindtap="goto_nav"> |
222 | <image class="xc-center-img " src="{{iurl+item.icoimg}}"></image> | 228 | <image class="xc-center-img " src="{{iurl+item.icoimg}}"></image> |
@@ -225,14 +231,8 @@ | @@ -225,14 +231,8 @@ | ||
225 | </block> | 231 | </block> |
226 | </block> | 232 | </block> |
227 | <!-- 没有链接地址的时候 --> | 233 | <!-- 没有链接地址的时候 --> |
228 | - <block wx:else> | ||
229 | - <block wx:if="{{item.name=='我的权益'}}"> | ||
230 | - <view class="item t-c" bindtap="go_qy" wx:if="{{qy_list!=null && is_init && gradeId}}"> | ||
231 | - <image class="xc-center-img " src="{{iurl+item.icoimg}}"></image> | ||
232 | - <view class="fs26">我的权益</view> | ||
233 | - </view> | ||
234 | - </block> | ||
235 | - <block wx:elif="{{item.name=='联系客服'}}"> | 234 | + <block wx:else> |
235 | + <block wx:if="{{item.name=='联系客服'}}"> | ||
236 | <button class="item t-c" wx:if="{{sys_switch.weapp_customertype}}" open-type="contact" session-from="wechat|{{userInfo.user_id}}|{{userInfo.nickname}}|{{userInfo.head_pic}}"> | 236 | <button class="item t-c" wx:if="{{sys_switch.weapp_customertype}}" open-type="contact" session-from="wechat|{{userInfo.user_id}}|{{userInfo.nickname}}|{{userInfo.head_pic}}"> |
237 | <image class="xc-center-img " src="{{iurl+item.icoimg}}"></image> | 237 | <image class="xc-center-img " src="{{iurl+item.icoimg}}"></image> |
238 | <view class="fs26">联系客服</view> | 238 | <view class="fs26">联系客服</view> |