main
liudan 2 years ago
parent 0c1ea4f612
commit 19666fa424
  1. 9
      manifest.json
  2. 4
      pages/order/confirm.vue

@ -177,11 +177,14 @@
"plugins" : {}, "plugins" : {},
"usingComponents" : true, "usingComponents" : true,
"permission" : { "permission" : {
"scope.userLocation" : { // "scope.userLocation" : {
"desc" : "计算附近商家位置" // "desc" : "计算附近商家位置"
// }
"scope.userFuzzyLocation" : {
"desc" : "位置信息用于填写收货地址"
} }
}, },
"requiredPrivateInfos" : [ "getLocation", "chooseLocation", "chooseAddress" ] "requiredPrivateInfos" : [ "getFuzzyLocation", "chooseLocation", "chooseAddress" ]
}, },
"mp-alipay" : { "mp-alipay" : {
"usingComponents" : true, "usingComponents" : true,

@ -1027,7 +1027,7 @@ export default {
let authState = await new Auth("userLocation").check(); let authState = await new Auth("userLocation").check();
// #ifdef MP || APP-VUE // #ifdef MP || APP-VUE
authState && authState &&
uni.getLocation({ uni.getFuzzyLocation({
type: "gcj02", type: "gcj02",
success: (res) => { success: (res) => {
this.lng = res.longitude; this.lng = res.longitude;
@ -1040,7 +1040,7 @@ export default {
}); });
// #endif // #endif
// #ifdef H5 // #ifdef H5
uni.getLocation({ uni.getFuzzyLocation({
type: "gcj02", type: "gcj02",
success: (res) => { success: (res) => {
this.lng = res.longitude; this.lng = res.longitude;

Loading…
Cancel
Save