Commit 952097579e5c48c34e084f5f5e8a34bcb1e750d3

Authored by yvan.ni
1 parent c936d906

首页加载更多的bug修复

Showing 1 changed file with 1 additions and 3 deletions
pages/index/index/index.js
@@ -332,10 +332,8 @@ Page({ @@ -332,10 +332,8 @@ Page({
332 }, 332 },
333 //---加载更多是靠这个函数---- 333 //---加载更多是靠这个函数----
334 onReachBottom: function () { 334 onReachBottom: function () {
335 -  
336 var goods_list = this.selectComponent("#goods_list"); //组件的id 335 var goods_list = this.selectComponent("#goods_list"); //组件的id
337 - goods_list.get_list();  
338 - 336 + if(goods_list) goods_list.get_list();
339 }, 337 },
340 338
341 339