diff --git a/pages/user/index/index.js b/pages/user/index/index.js index 73e6d66..7b79d40 100644 --- a/pages/user/index/index.js +++ b/pages/user/index/index.js @@ -67,7 +67,7 @@ Page({ getApp().promiseGet("/api/weshop/storeDistribut/get/"+os.stoid,{}).then(rs=>{ var dis=rs.data.data; for(var i in d_list){ - if(d_list[i].name=='我的分销' && dis && dis.switch==0){ + if(d_list[i].name=='我的分销' && (!dis || dis.switch==0)){ d_list.splice(i,1); } }