4 回复
onPullDownRefresh: function () {
var that = this
util.GET(app.globalData.config.serverHost + ‘/promotion/PLittleApp.listGames’, {}, function (data) {
if (data && data.code == 1) {
that.setData({ materiel: data.data });
that.setData({ bgUrl: that.data.materiel[index].bgUrl });
} else {
util.myShowToast(data.msg, ‘error’)
}
wx.stopPullDownRefresh()
});
},