From 19666fa424597fadf5b25f0cc4345d7c2f4292ae Mon Sep 17 00:00:00 2001 From: liudan <18634735655@163.com> Date: Wed, 10 May 2023 19:04:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 11 +++++++---- pages/order/confirm.vue | 4 ++-- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/manifest.json b/manifest.json index f53e684..0338061 100644 --- a/manifest.json +++ b/manifest.json @@ -177,11 +177,14 @@ "plugins" : {}, "usingComponents" : true, "permission" : { - "scope.userLocation" : { - "desc" : "计算附近商家位置" - } + // "scope.userLocation" : { + // "desc" : "计算附近商家位置" + // } + "scope.userFuzzyLocation" : { + "desc" : "位置信息用于填写收货地址" + } }, - "requiredPrivateInfos" : [ "getLocation", "chooseLocation", "chooseAddress" ] + "requiredPrivateInfos" : [ "getFuzzyLocation", "chooseLocation", "chooseAddress" ] }, "mp-alipay" : { "usingComponents" : true, diff --git a/pages/order/confirm.vue b/pages/order/confirm.vue index 6ac982d..0089b36 100644 --- a/pages/order/confirm.vue +++ b/pages/order/confirm.vue @@ -1027,7 +1027,7 @@ export default { let authState = await new Auth("userLocation").check(); // #ifdef MP || APP-VUE authState && - uni.getLocation({ + uni.getFuzzyLocation({ type: "gcj02", success: (res) => { this.lng = res.longitude; @@ -1040,7 +1040,7 @@ export default { }); // #endif // #ifdef H5 - uni.getLocation({ + uni.getFuzzyLocation({ type: "gcj02", success: (res) => { this.lng = res.longitude;