請求數據時:api
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(); },