From 228e5159856605e74ee946d319b235517b3e658d Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Wed, 8 Nov 2023 09:31:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/nongKe/cloud_entrepot/index.vue | 6 +++--- pages/nongKe/cloud_entrepot/indexa.vue | 4 ++-- pages/nongKe/supply_chain/supplier.vue | 6 +++++- pages/supply_chains/supply_chains.vue | 1 + 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/pages/nongKe/cloud_entrepot/index.vue b/pages/nongKe/cloud_entrepot/index.vue index db91cbd..bcf7221 100644 --- a/pages/nongKe/cloud_entrepot/index.vue +++ b/pages/nongKe/cloud_entrepot/index.vue @@ -466,8 +466,8 @@ category_id: this.cloudList[this.current]?.category_id || "", order: this.type, keyword: this.keyword, - page_num: this.page_num, - location: this.location + page: this.page_num, + location: this.location }).then(res => { if (res.data.list.length == 0) { this.status = "nomore" @@ -748,7 +748,7 @@ category_id: this.cloudList[this.current]?.category_id || "", order: this.type, keyword: this.keyword, - page_num: this.page_num, + page: this.page_num, location: this.location }).then(res => { this.goodsList = res.data.list; diff --git a/pages/nongKe/cloud_entrepot/indexa.vue b/pages/nongKe/cloud_entrepot/indexa.vue index a42337f..3c7e693 100644 --- a/pages/nongKe/cloud_entrepot/indexa.vue +++ b/pages/nongKe/cloud_entrepot/indexa.vue @@ -555,7 +555,7 @@ category_id: this.cloudList[this.current]?.category_id || "", order: this.type, keyword: this.keyword, - page_num: this.page_num, + page: this.page_num, location: this.location }).then(res => { if (res.data.list.length == 0) { @@ -837,7 +837,7 @@ category_id: this.cloudList[this.current]?.category_id || "", order: this.type, keyword: this.keyword, - page_num: this.page_num, + page: this.page_num, location: this.location }).then(res => { diff --git a/pages/nongKe/supply_chain/supplier.vue b/pages/nongKe/supply_chain/supplier.vue index e8b4720..d5e2fa5 100644 --- a/pages/nongKe/supply_chain/supplier.vue +++ b/pages/nongKe/supply_chain/supplier.vue @@ -479,6 +479,10 @@ this.street_id = options.street_id this.street = options.townName this.product_type = options.product_type ?? 0 + if(this.$store.state.storage.location.lat){ + this.latitude = this.$store.state.storage.location.lat; + this.longitude = this.$store.state.storage.location.long; + } if (options.street_id != undefined) { this.sotreParam.street_id = options.street_id } @@ -819,7 +823,7 @@ category_id: this.sotreParam.category_id, type_id: this.sotreParam.type_id, street_id: this.sotreParam.street_id, - credit_buy: this.credit_buy + credit_buy: this.credit_buy, } if (this.latitude) { rqData.location = this.latitude + ',' + this.longitude diff --git a/pages/supply_chains/supply_chains.vue b/pages/supply_chains/supply_chains.vue index f7dd7a4..e9ca1fd 100644 --- a/pages/supply_chains/supply_chains.vue +++ b/pages/supply_chains/supply_chains.vue @@ -606,6 +606,7 @@ this.isshow = true uni.setStorageSync('loction', true); } + // console.log(this.$store.state.storage.location); if(this.$store?.state?.storage?.location?.lat){ this.isshow = false this.latitude = this.$store.state.storage.location.lat;