- 当前 Bug 的表现(可附上截图)
- 预期表现
- 复现路径
- 提供一个最简复现 Demo
这个是代码
loadSignReplyInfo: function() {
var _this=this
wx.request({
url:""
success: function(res) {
console.log(“reply”);
console.log(res);
//var jsonObj = JSON.parse(res.data);
var jsonObj = res.data;
if (jsonObj.statusCode == 200) {
var currData = {};
if (_this.data.pageNum == 1) {
currData = jsonObj.object;
} else if (_this.data.pageNum != 1) {
currData = _this.data.signReplyList
// currData = currData.concat(jsonObj.object);
Array.prototype.push.apply(currData, jsonObj.object)
}
console.log(“currData”)
console.log(currData)
_this.setData({
signReplyList: currData,
replypageNum: pageNum + 1,
replysearchLoading: false
})
}
if (jsonObj.statusCode == 205) {
_this.setData({
replysearchLoading: false
})
}
}
})
},