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