需要设置 header: { “Content-Type”: “application/x-www-form-urlencoded”},
wx.request({
url: app.globalData.url + “/tasks/getPtilteAndTasks”,
method:“POST”,
header: { “Content-Type”: “application/x-www-form-urlencoded”},
data: { order: order, time: time,page:1,count:10},
success:function(res){
if (res.data.length == 0) {
that.setData({
isMore: false
});
}
that.setData({
taskInfoes:res.data
});
}
})
},