wx.startPullDownRefresh()在ios有问题
wx.startPullDownRefresh()事件在ios上出现问题,有下拉那动作和动画,但是下拉刷新的事情不执行,在安卓和模拟器上没问题
4 回复
onShow: function (e) {
let that = this;
if (wx.getStorageSync(‘homeRefresh’)) {
wx.startPullDownRefresh();
wx.setStorageSync(‘homeRefresh’, false);
}
},
onPullDownRefresh: function (e) {
//下拉刷新
let that = this;
that.setData({
page: 1,
trendsList: [],
morestatus: true,
moreHtml: “上拉加载更多”,
}, function (e) {
that.information();
that.recommend();
that.trendsGetData(1, “up”);
})
},