diff --git a/pages/nongKe/cloud_entrepot/index.vue b/pages/nongKe/cloud_entrepot/index.vue index 4312bad..2701607 100644 --- a/pages/nongKe/cloud_entrepot/index.vue +++ b/pages/nongKe/cloud_entrepot/index.vue @@ -3,10 +3,7 @@ - + - - + + - + " :style="{ color: cloudList.length > 0 ? '' : 'black' }"> {{ town }}里海云仓 - - - + + + - - + + "> - + - + " :style="{ color: cloudList.length > 0 ? '' : 'black' }"> {{ town }}里海云仓 - + 搜索 - + @@ -133,62 +78,27 @@ - + - + - - - + + - + }"> + @@ -196,53 +106,23 @@ - - + + {{ item.tit }} - - + + - + - + - + @@ -258,14 +138,11 @@ - + "> ¥{{ item.price }} @@ -273,31 +150,22 @@ ¥30.00 - - + trnList[index]?trnList[index].bottom:0 ? 1 : 0 + }s cubic-bezier(0.4, -0.9, 0.75, 1);`" @click.stop="addcart(item, index)"> + - + @@ -305,12 +173,8 @@ - + 暂无商品 @@ -318,23 +182,12 @@ - + - - + + {{ goodsNum }} @@ -352,37 +205,17 @@ - + - + 里海云仓 - - + + {{ item.category_name }}云仓服务 @@ -399,12 +232,8 @@ @click='goBack'> --> - + 当前区域暂无云仓 @@ -420,12 +249,7 @@ - + 当前区域暂无云仓 @@ -434,39 +258,21 @@ - + - + - + @@ -483,22 +289,14 @@ 尺码 - {{ item.sku }} + {{ item.sku }} 数量 - + 确定 @@ -509,436 +307,155 @@ \ No newline at end of file diff --git a/pages/nongKe/cloud_entrepot/indexa.vue b/pages/nongKe/cloud_entrepot/indexa.vue index c255095..7bea643 100644 --- a/pages/nongKe/cloud_entrepot/indexa.vue +++ b/pages/nongKe/cloud_entrepot/indexa.vue @@ -217,11 +217,11 @@ - @@ -232,7 +232,7 @@ - + @@ -531,8 +531,6 @@ this.Area() let that = this setTimeout(() => { - - uni.createSelectorQuery() .in(this) .select('.flags1') @@ -556,10 +554,10 @@ }, // 分页 onReachBottom() { - if (this.flag || !this.goodsList.length) return + if (this.flag || !this.goodsList.length) return; this.status = "loading" this.page_num += 1 - this.flag = true + // this.flag = true cloudWarehouse({ street_code: this.street_code, category_id: this.cloudList[this.current]?.category_id || "", @@ -568,15 +566,16 @@ page_num: this.page_num }).then(res => { + if (res.data.list.length == 0) { + this.status = "nomore" + this.flag = true + return + } if (res.data.list[0].product_id == this.goodsList[0].product_id) { this.status = "nomore" - this.flag = false + this.flag = true } else { - if (res.data.list.length == 0) { - this.status = "nomore" - return - } - this.goodsList = this.goodsList.concat(res.data.list) + this.goodsList = this.goodsList.concat(res.data.list); } }) @@ -589,7 +588,7 @@ .select('.flags') .boundingClientRect(rect => { this.headtop = rect.top - console.log(rect.top) + // console.log(rect.top) }) .exec(); uni.createSelectorQuery()