Commit 09527301a5129aa8e99425e1c6560842a0fa46e9

Authored by yvan.ni
1 parent 399ad792

自定义模板商品分组在加载更多时候的bug优化

Showing 1 changed file with 3 additions and 1 deletions
pages/template/index.js
@@ -346,6 +346,7 @@ Page({ @@ -346,6 +346,7 @@ Page({
346 }, 346 },
347 //---加载更多是靠这个函数---- 347 //---加载更多是靠这个函数----
348 onReachBottom: function () { 348 onReachBottom: function () {
  349 + var th=this;
349 if (getApp().globalData.func_list) { 350 if (getApp().globalData.func_list) {
350 for (let i in getApp().globalData.func_list) { 351 for (let i in getApp().globalData.func_list) {
351 let item = getApp().globalData.func_list[i]; 352 let item = getApp().globalData.func_list[i];
@@ -357,7 +358,8 @@ Page({ @@ -357,7 +358,8 @@ Page({
357 let goodsGroupArr = this.data.goodsGroupArr 358 let goodsGroupArr = this.data.goodsGroupArr
358 if (this.data.isTemplate && goodsGroupArr.length > 0) { 359 if (this.data.isTemplate && goodsGroupArr.length > 0) {
359 goodsGroupArr.map(item => { 360 goodsGroupArr.map(item => {
360 - this[item].automore() 361 + if(th[item])
  362 + th[item].automore()
361 }) 363 })
362 } 364 }
363 }, 365 },