diff --git a/app.js b/app.js index c19a5ae..b262d8d 100644 --- a/app.js +++ b/app.js @@ -1,6 +1,6 @@ //app.js App({ - evn: 0, // 0: 开发版本;1:测试版本;2:生产版本 + evn: 2, // 0: 开发版本;1:测试版本;2:生产版本 tmplIds: [''], version: 152, xAppId: '503258978847953926', diff --git a/pages/message/index/index.js b/pages/message/index/index.js index fd35c68..c454b9e 100644 --- a/pages/message/index/index.js +++ b/pages/message/index/index.js @@ -63,25 +63,19 @@ Component({ this.onRefreshList() }, onRefreshList: function () { - this.setData({ - orderList: [], - ['form.pageNum']: 1, - loading: true, - finished: false - }) - this.fetchList() + // this.setData({ orderList: [], ['form.pageNum']: 1, loading: true, finished: false }) + // this.fetchList() }, fetchList: function () { if (this.data.requesting || this.data.finished) { return } - if (this.data.loading) { + if (this.data.orderList.length > 0) { this.data.requesting = true } else { this.setData({ requesting: true }) } getProductList(this.data.form).then(result => { - //成功回调 if (result.data.records.length) { var respList = result.data.records let nowList = `orderList[${this.data.orderList.length}]`