Commit aa9333db5576513ea81d063435696e5797bfb45a
1 parent
daf2d441
1. 会员中心的过滤器
Showing
1 changed file
with
27 additions
and
0 deletions
pages/user/index/filter.wxs
0 → 100644
1 | +var is_close = function (name,c_list) { | ||
2 | + if(!c_list) return 0; | ||
3 | + var map={}; | ||
4 | + map['我的分销']="1"; | ||
5 | + map['我的拼单']="2"; | ||
6 | + map['秒杀活动']="3"; | ||
7 | + map['PLUS会员']="4"; | ||
8 | + map['专享礼包']="5"; | ||
9 | + map['我的权益']="6"; | ||
10 | + map['联系客服']="7"; | ||
11 | + map['收藏夹']="8"; | ||
12 | + map['我的地址']="9"; | ||
13 | + map['收入卡包']="10"; | ||
14 | + map['我的服务']="11"; | ||
15 | + map['我的评价']="12"; | ||
16 | + map['我的礼包']="13"; | ||
17 | + var index=map[name]; | ||
18 | + //不包含,不关闭 | ||
19 | + if(c_list.indexOf(index)==-1) return 0; | ||
20 | + //包含,就是关闭的 | ||
21 | + return 1 | ||
22 | + | ||
23 | +} | ||
24 | + | ||
25 | +module.exports = { | ||
26 | + is_close: is_close | ||
27 | +} |