Commit 8e46cfd64faefe0e20a7d6bd9561f02685717ae1

Authored by yvan.ni
1 parent 0f4ba510

白屏的bug优化

Showing 1 changed file with 5 additions and 5 deletions
pages/index/index/index.js
... ... @@ -522,12 +522,12 @@ Page({
522 522 },500)
523 523  
524 524 });
525   -
526   - var goods_list = this.selectComponent("#goods_list"); //组件的id
527   - goods_list.init();
  525 +
528 526 setTimeout(function() {
529   - goods_list.get_list();
530   - }, 300)
  527 + var goods_list = th.selectComponent("#goods_list"); //组件的id
  528 + goods_list.init();
  529 + goods_list.get_list();
  530 + }, 1500)
531 531 },
532 532  
533 533 //--判断小程序是否过期--
... ...