diff --git a/pages/template/index.js b/pages/template/index.js index 28253c6..0a1d914 100644 --- a/pages/template/index.js +++ b/pages/template/index.js @@ -346,6 +346,7 @@ Page({ }, //---加载更多是靠这个函数---- onReachBottom: function () { + var th=this; if (getApp().globalData.func_list) { for (let i in getApp().globalData.func_list) { let item = getApp().globalData.func_list[i]; @@ -357,7 +358,8 @@ Page({ let goodsGroupArr = this.data.goodsGroupArr if (this.data.isTemplate && goodsGroupArr.length > 0) { goodsGroupArr.map(item => { - this[item].automore() + if(th[item]) + th[item].automore() }) } },