Commit 5423d1e4a1728dd890431043e1882aadde762238

Authored by yvan.ni
1 parent 3ab45cec

会员中心的按钮

Showing 1 changed file with 9 additions and 3 deletions
pages/user/index/index.js
@@ -340,6 +340,11 @@ Page({ @@ -340,6 +340,11 @@ Page({
340 if (t_swi) t_swi = JSON.parse(t_swi) 340 if (t_swi) t_swi = JSON.parse(t_swi)
341 if(t_swi){ 341 if(t_swi){
342 th.setData({sys_switch:t_swi}); 342 th.setData({sys_switch:t_swi});
  343 +
  344 + var user_tool=[];
  345 + if(t_swi.usertool) user_tool=JSON.parse(t_swi.usertool);
  346 + th.setData({c_list:user_tool})
  347 +
343 } 348 }
344 349
345 350
@@ -368,15 +373,16 @@ Page({ @@ -368,15 +373,16 @@ Page({
368 } 373 }
369 }) 374 })
370 //th.requestRecommend(); 375 //th.requestRecommend();
371 - }  
372 - 376 + }
  377 +
  378 + /*--
373 var t_swi= getApp().globalData.config2.switch_list 379 var t_swi= getApp().globalData.config2.switch_list
374 if (t_swi){ 380 if (t_swi){
375 t_swi = JSON.parse(t_swi); 381 t_swi = JSON.parse(t_swi);
376 var user_tool=[]; 382 var user_tool=[];
377 if(t_swi.usertool) user_tool=JSON.parse(t_swi.usertool); 383 if(t_swi.usertool) user_tool=JSON.parse(t_swi.usertool);
378 th.setData({c_list:user_tool}) 384 th.setData({c_list:user_tool})
379 - } 385 + } --*/
380 386
381 387
382 var goods_list = this.selectComponent("#goods_recommend"); //组件的id 388 var goods_list = this.selectComponent("#goods_recommend"); //组件的id