安卓端setData异常卡顿
SetData 安卓端异常卡顿 40条以上 10秒以上 小程序搜索 户联 底部菜单 货场 var o = this, e = o.data.index_class, a = wx.getStorageSync("city"), n = wx.getStorageSync("index"), s = o.data.page, c = o.data.seller; app.util.request({ url: "entry/wxapp/list2", cachetime: "0", data: { page: o.data.page, cityname: a, sq: 1, lat: wx.getStorageSync('Location').latitude, lng: wx.getStorageSync('Location').longitude }, success: function (t) { if (0 == t.data.length) o.setData({ refresh_top: !0 }); else { o.setData({ refresh_top: !1, page: s + 1 }); } if (0 < t.data.length) { for (var e in t.data) { var a = app.ormatDate(t.data[e].tz.sh_time); t.data[e].tz.img = t.data[e].tz.img.split(","), t.data[e].tz.details = t.data[e].tz.details.replace("↵", " "), 4 < t.data[e].tz.img.length && (t.data[e].tz.img_length = Number(t.data[e].tz.img.length) - 4), 4 <= t.data[e].tz.img.length ? t.data[e].tz.img1 = t.data[e].tz.img.slice(0, 4) : t.data[e].tz.img1 = t.data[e].tz.img, t.data[e].tz.time = a.slice(0, 16); } console.log(c.length); console.log('载入开始'); o.setData({ seller: c.concat(t.data), refresh_top: !1 },function (ff) { console.log('载入完成'); }); console.log(c.length); } } });