From 87185d7d0fcdc857be19a6c9fe7fb4020cbe4449 Mon Sep 17 00:00:00 2001 From: ghusermoon <2673031505@qq.com> Date: Wed, 12 Aug 2020 11:45:12 +0800 Subject: [PATCH] mine history 8.12 --- pageE/order/Index.vue | 2 +- pageE/tool/MineHistory.vue | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/pageE/order/Index.vue b/pageE/order/Index.vue index d552ec1..2a60e80 100644 --- a/pageE/order/Index.vue +++ b/pageE/order/Index.vue @@ -46,7 +46,7 @@ export default { orderList: [], loadStatus: ['loadmore','loadmore','loadmore','loadmore','loadmore','loadmore','loadmore','loadmore'], page: 0, - current: Number, + current: 0, swiperCurrent: 0, swiperHeight: '', timer: true, diff --git a/pageE/tool/MineHistory.vue b/pageE/tool/MineHistory.vue index 65089b0..cfdf1e6 100644 --- a/pageE/tool/MineHistory.vue +++ b/pageE/tool/MineHistory.vue @@ -52,7 +52,7 @@ export default { }, async getBrowseList () { const res = await this.$u.api.getBrowseList({ page: this.page }); - this.timer = false; + this.timer = true; if(res.errCode == 0) { this.historyList.push(...res.data.storeInfo); } @@ -60,14 +60,15 @@ export default { }, reachBottom() { if(!this.timer) return false; + this.timer = false; this.loadStatus = "loading"; this.page++; - this.getBrowseList({page: this.page}).then(length => { + this.getBrowseList().then(length => { if(length == 0) { this.page--; - this.status = 'nomore'; + this.loadStatus = 'nomore'; } else { - this.status = 'loading'; + this.loadStatus = 'loading'; } }).catch(() => { this.loadStatus = "nomore";