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”);
})
},