Commit 5804b5f7fb1dc71ccee52d1131d12dec0ba79f7b
1 parent
2627d2d8
我的分销
Showing
1 changed file
with
1 additions
and
1 deletions
pages/user/index/index.js
... | ... | @@ -67,7 +67,7 @@ Page({ |
67 | 67 | getApp().promiseGet("/api/weshop/storeDistribut/get/"+os.stoid,{}).then(rs=>{ |
68 | 68 | var dis=rs.data.data; |
69 | 69 | for(var i in d_list){ |
70 | - if(d_list[i].name=='我的分销' && dis && dis.switch==0){ | |
70 | + if(d_list[i].name=='我的分销' && (!dis || dis.switch==0)){ | |
71 | 71 | d_list.splice(i,1); |
72 | 72 | } |
73 | 73 | } | ... | ... |