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

@ -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,

@ -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;

Loading…
Cancel
Save