From 6c2bf15dd06bc2776c3b6d1429b6c86ace7aa11b Mon Sep 17 00:00:00 2001 From: jia <1451658316@qq.com> Date: Tue, 5 Sep 2023 10:07:29 +0800 Subject: [PATCH] =?UTF-8?q?=E7=95=8C=E9=9D=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.vue | 78 +- pages/supply_chains/supply_chains.vue | 1593 ++++++++++++------------- 2 files changed, 789 insertions(+), 882 deletions(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index a76ee01..9b76b2d 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -37,78 +37,6 @@ - - - - - - @@ -226,7 +154,6 @@ this.getCateList() this.cateGoods = [] this.getGoods() - this.Area() uni.stopPullDownRefresh() }, @@ -257,7 +184,6 @@ onReachBottom() { if (this.status == 'nomore') return; this.status = 'loading'; - this.where.page = ++this.where.page; this.getGoods() }, @@ -400,7 +326,7 @@ this.street = e.value[1].name - this.$nextTick(() => { + this.$nextTick(() => { this.$bus.$emit('value-updated',e.value[1].name + ',' +e.value[1].code); }) @@ -479,6 +405,7 @@ graphicLstApi(this.where).then(res => { this.cateGoods.push(...res.data.list) + if (res.data.list.length < this.where.limit) this.status = 'nomore' if (this.where.page == 1 && res.data.list.length <= 0) this.emptyShow = true @@ -513,6 +440,7 @@ this.cateGoods = [] this.where.category_id = item.category_id this.emptyShow = false + this.status = 'loadmore' this.where.page = 1 this.getGoods(item) this.street_id = item.id diff --git a/pages/supply_chains/supply_chains.vue b/pages/supply_chains/supply_chains.vue index d2a8333..e0612a6 100644 --- a/pages/supply_chains/supply_chains.vue +++ b/pages/supply_chains/supply_chains.vue @@ -1,90 +1,81 @@ + image { + width: 100%; + height: 100%; + } + } + + .goodslist { + margin: 0 auto; + width: 725rpx; + } + \ No newline at end of file