Cannot read property 'length' of undefined;at App getConfig function;at api request success callback function
TypeError: Cannot read property 'length' of undefined
代碼
getList: function() {
var i = this;
a.loading(), this.setData({
loading: !0
}), a.get("wemecms/merch/get_list", {
page: this.data.page,
cateid: this.data.cateid,
keyword: this.data.keyword,
lat: this.data.mypos.lat,
lng: this.data.mypos.lng,
range: this.data.range
}, function(t) {
var e = {
loading: !1,
total: t.total,
pagesize: t.pagesize,
cates: t.cates,
disopt: t.disopt
};
0 < t.list.length && (e.page = i.data.page + 1, e.list = i.data.list.concat(t.list),
t.list.length < t.pagesize && (e.loaded = !0), i.setSpeed(t.list)), i.setData(e),
a.hideLoading();
});
},
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/29034.html
標籤:微信開發
上一篇:表單陣列問題
下一篇:iOS中某app次數限制問題
