diff --git a/pages/integralmall/index.js b/pages/integralmall/index.js index eff9292..c463c37 100644 --- a/pages/integralmall/index.js +++ b/pages/integralmall/index.js @@ -193,7 +193,9 @@ Page({ let that = this; if (that.data.creditAmount !== 0){ that.setData({ + allow_load:true, userCredit: that.data.creditAmount, + page:1 }) that.getList(1) } @@ -213,9 +215,11 @@ Page({ if (hid == true) { hid = false; that.setData({ + allow_load:true, sort :imgurl.up.url, sortOrder: 'desc', - sortColumn: 'creditPrice' + sortColumn: 'creditPrice', + page: 1 }) that.getList(1) } @@ -224,7 +228,9 @@ Page({ that.setData({ sort: imgurl.down.url, sortOrder: 'asc', - sortColumn: 'creditPrice' + sortColumn: 'creditPrice', + allow_load: true, + page:1 }) that.getList(1) } @@ -342,10 +348,11 @@ Page({ sort: '', sortColumn: '', sortOrder: '', - userCredit: '' + userCredit: '', + page:1 }) + console.log() that.getList(1); that.getPoints(); - } }) \ No newline at end of file