From df9a67f164a60c589efef073493ada0d5f7f50a1 Mon Sep 17 00:00:00 2001 From: 1154079537 <1154079537@qq.com> Date: Mon, 13 May 2024 18:32:53 +0800 Subject: [PATCH] 1 --- pages/index/index.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index 931791b..38c9a4a 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -773,7 +773,7 @@ refundMark: false, where: { page: 1, - limit: 3, + limit: 10, status: 9 }, where1: { @@ -859,9 +859,9 @@ onShow() { if (this.loadEndFlag) { - this.getUserInfo(); this.codelist(); } + this.getUserInfo(); }, beforeDestroy() { @@ -1630,6 +1630,7 @@ //获取订单列表 getGoods: async function(isPage) { + console.log(3123123123); let that = this; if (that.loadend) return; if (that.loading) return; @@ -1642,17 +1643,16 @@ that.loading = true; that.loadTitle = ''; await getOrderList(that.where, this.userInfoData.service.mer_id).then(res => { + console.log(res); let list = res.data.list; let productList = that.$util.SplitArray(list, that.productList); let loadend = list.length < that.where.limit; that.loadend = loadend; that.loading = false; that.loadTitle = loadend ? '已全部加载' : '加载更多'; - setTimeout(() => { - that.$set(that, 'productList', productList); - }, 500) - - // console.log(that.productList) + // setTimeout(() => { + that.$set(that, 'productList', productList); + // }, 500) that.$set(that.where, 'page', that.where.page + 1); if (that.where.page == 1 && res.data.list.length <= 0) that.emptyShow = true }).catch(err => {