From 6817d15b7ea41749ddc437f513f896cc5e0e31bf Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Wed, 10 Jan 2024 17:48:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AE=9A=E4=BD=8D=E7=B2=BE?= =?UTF-8?q?=E5=BA=A6=E9=97=AE=E9=A2=98,=20=E5=85=A8=E9=83=A8=E9=87=87?= =?UTF-8?q?=E7=94=A8=E7=B3=BB=E7=BB=9F=E5=AE=9A=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 4 +- pages/activity/lifeService/index.vue | 4 +- pages/annex/vip_grade/index.vue | 2 + pages/columnGoods/goods_search_con/index.vue | 4 +- pages/gather/gather.vue | 2 + pages/home/index.vue | 4 +- pages/index/index.vue | 2 + pages/nongKe/cloud_entrepot/indexb.vue | 4 +- pages/nongKe/cloud_entrepot/indexh.vue | 4 +- pages/nongKe/food/index.vue | 3 +- pages/nongKe/specialty/index.vue | 4 +- pages/nongKe/supply_chain/supplier.vue | 4 +- pages/nongKe/supply_chain/supplierA.vue | 4 +- pages/nongKe/supply_chain/supplierB.vue | 4 +- pages/nongKe/supply_chain/suppliers.vue | 4 +- pages/nongKe/tourism/index.vue | 4 +- pages/product/basicSet.vue | 2 + pages/select_address/select_address.vue | 2 + pages/select_address/select_address_n.nvue | 2 + pages/store/shopStreet/index.vue | 6 +- pages/supply_chains/supply_chains.vue | 2 + pages/users/goods_details_store/index.vue | 2 + pages/users/user_address/index.vue | 4 +- utils/WSCoordinate.js | 147 +++++++++++++++++++ utils/uniMPfunction.js | 2 +- utils/wgs.js | 14 ++ 26 files changed, 222 insertions(+), 18 deletions(-) create mode 100644 utils/WSCoordinate.js create mode 100644 utils/wgs.js diff --git a/manifest.json b/manifest.json index 859b4e4..2de9381 100644 --- a/manifest.json +++ b/manifest.json @@ -2,8 +2,8 @@ "name" : "惠农生活", "appid" : "__UNI__3A527D1", "description" : "", - "versionName" : "1.7.1", - "versionCode" : 171, + "versionName" : "1.7.2", + "versionCode" : 172, "transformPx" : false, /* 5+App特有相关 */ "app-plus" : { diff --git a/pages/activity/lifeService/index.vue b/pages/activity/lifeService/index.vue index 4b9fe9a..19a259f 100644 --- a/pages/activity/lifeService/index.vue +++ b/pages/activity/lifeService/index.vue @@ -107,7 +107,8 @@ } from "vuex"; import { goShopDetail - } from '@/libs/order.js' + } from '@/libs/order.js'; + import { wgsToGcj } from "@/utils/wgs.js"; const app = getApp(); export default { data() { @@ -273,6 +274,7 @@ uni.getLocation({ type: 'gcj02', success: (res) => { + res = wgsToGcj(res); let latitude, longitude; latitude = res.latitude.toString(); longitude = res.longitude.toString(); diff --git a/pages/annex/vip_grade/index.vue b/pages/annex/vip_grade/index.vue index e3ad374..3f497f0 100644 --- a/pages/annex/vip_grade/index.vue +++ b/pages/annex/vip_grade/index.vue @@ -54,6 +54,7 @@