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;