From 5804b5f7fb1dc71ccee52d1131d12dec0ba79f7b Mon Sep 17 00:00:00 2001 From: yvan.ni Date: Wed, 3 Nov 2021 11:42:25 +0800 Subject: [PATCH] 我的分销 --- pages/user/index/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- libgit2 0.21.4