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