请求数据时:
get_sy(){ var that = this; var shop_id = that.shop_id; var page = that.page; config.get('api/store/balance_log',{shop_id:shop_id,page:page},function(res){ var listeds = res.data.list.data; if(page==1){ that.list = listeds; }else{ that.list = that.list.concat(listeds); } if(that.list.length!=0){ that.sy_show = 1; }else{ that.sy_show = 2; } }); uni.stopPullDownRefresh(); },
微信小程序下拉刷新onPullDownRefresh wx.startPullDownRefresh(Object object)
原生小程序看链接吧:https://blog.csdn.net/wxyf2018/article/details/99677981