From 5423d1e4a1728dd890431043e1882aadde762238 Mon Sep 17 00:00:00 2001 From: yvan.ni Date: Thu, 29 Apr 2021 16:32:46 +0800 Subject: [PATCH] 会员中心的按钮 --- pages/user/index/index.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pages/user/index/index.js b/pages/user/index/index.js index 946594e..c788031 100644 --- a/pages/user/index/index.js +++ b/pages/user/index/index.js @@ -340,6 +340,11 @@ Page({ if (t_swi) t_swi = JSON.parse(t_swi) if(t_swi){ th.setData({sys_switch:t_swi}); + + var user_tool=[]; + if(t_swi.usertool) user_tool=JSON.parse(t_swi.usertool); + th.setData({c_list:user_tool}) + } @@ -368,15 +373,16 @@ Page({ } }) //th.requestRecommend(); - } - + } + + /*-- var t_swi= getApp().globalData.config2.switch_list if (t_swi){ t_swi = JSON.parse(t_swi); var user_tool=[]; if(t_swi.usertool) user_tool=JSON.parse(t_swi.usertool); th.setData({c_list:user_tool}) - } + } --*/ var goods_list = this.selectComponent("#goods_recommend"); //组件的id -- libgit2 0.21.4