Commit 5423d1e4a1728dd890431043e1882aadde762238
1 parent
3ab45cec
会员中心的按钮
Showing
1 changed file
with
9 additions
and
3 deletions
pages/user/index/index.js
| ... | ... | @@ -340,6 +340,11 @@ Page({ |
| 340 | 340 | if (t_swi) t_swi = JSON.parse(t_swi) |
| 341 | 341 | if(t_swi){ |
| 342 | 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 | 373 | } |
| 369 | 374 | }) |
| 370 | 375 | //th.requestRecommend(); |
| 371 | - } | |
| 372 | - | |
| 376 | + } | |
| 377 | + | |
| 378 | + /*-- | |
| 373 | 379 | var t_swi= getApp().globalData.config2.switch_list |
| 374 | 380 | if (t_swi){ |
| 375 | 381 | t_swi = JSON.parse(t_swi); |
| 376 | 382 | var user_tool=[]; |
| 377 | 383 | if(t_swi.usertool) user_tool=JSON.parse(t_swi.usertool); |
| 378 | 384 | th.setData({c_list:user_tool}) |
| 379 | - } | |
| 385 | + } --*/ | |
| 380 | 386 | |
| 381 | 387 | |
| 382 | 388 | var goods_list = this.selectComponent("#goods_recommend"); //组件的id | ... | ... |