Commit ee9138f0764812ede84e0fd2968a75146c2b1a1e
1 parent
ab0817df
1. 测试的内容优化
Showing
1 changed file
with
12 additions
and
12 deletions
pages/user/index/filter.wxs
@@ -4,22 +4,22 @@ var is_close = function (name,c_list) { | @@ -4,22 +4,22 @@ var is_close = function (name,c_list) { | ||
4 | map['我的分销']="1"; | 4 | map['我的分销']="1"; |
5 | map['我的拼单']="2"; | 5 | map['我的拼单']="2"; |
6 | map['秒杀活动']="3"; | 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"; | 7 | + map['PLUS会员']="4"; |
8 | + map['联系客服']="6"; | ||
9 | + map['收藏夹']="7"; | ||
10 | + map['我的地址']="8"; | ||
11 | + map['收入卡包']="9"; | ||
12 | + map['专享礼包']="10"; | ||
13 | + map['我的权益']="11"; | ||
14 | + map['我的服务']="12"; | ||
15 | + map['我的评价']="13"; | ||
16 | + map['我的礼包']="14"; | ||
17 | + map['助力活动']="15"; | ||
17 | var index=map[name]; | 18 | var index=map[name]; |
18 | //不包含,不关闭 | 19 | //不包含,不关闭 |
19 | if(c_list.indexOf(index)==-1) return 0; | 20 | if(c_list.indexOf(index)==-1) return 0; |
20 | //包含,就是关闭的 | 21 | //包含,就是关闭的 |
21 | - return 1 | ||
22 | - | 22 | + return 1 |
23 | } | 23 | } |
24 | 24 | ||
25 | module.exports = { | 25 | module.exports = { |