修改添加报修定位获取信息

master
chen 2022-05-16 19:01:24 +08:00
parent 92d74dbe81
commit 44b021d84a
2 changed files with 47 additions and 36 deletions

View File

@ -17,7 +17,9 @@
"delay" : 0
},
/* */
"modules" : {},
"modules" : {
"Maps" : {}
},
/* */
"distribute" : {
/* android */
@ -43,7 +45,15 @@
/* ios */
"ios" : {},
/* SDK */
"sdkConfigs" : {}
"sdkConfigs" : {
"ad" : {},
"maps" : {
"amap" : {
"appkey_ios" : "",
"appkey_android" : ""
}
}
}
}
},
/* */
@ -69,28 +79,28 @@
"enable" : false
},
"vueVersion" : "2",
"h5" : {
"sdkConfigs" : {
"maps" : {
"qqmap" : {
"key" : "QNHBZ-55RKF-OMFJJ-NPU7O-EPSDH-ACBAA"
}
}
},
"devServer" : {
"https" : false,
"port" : 8080,
"disableHostCheck" : true,
"proxy" : {
"/web" : {
"target" : "https://7and5.cn",
"changeOrigin" : true,
"secure" : false,
"pathRewrite" : {
"^/web" : ""
}
}
}
}
}
"h5" : {
"sdkConfigs" : {
"maps" : {
"qqmap" : {
"key" : "QNHBZ-55RKF-OMFJJ-NPU7O-EPSDH-ACBAA"
}
}
},
"devServer" : {
"https" : false,
"port" : 8080,
"disableHostCheck" : true,
"proxy" : {
"/web" : {
"target" : "https://7and5.cn",
"changeOrigin" : true,
"secure" : false,
"pathRewrite" : {
"^/web" : ""
}
}
}
}
}
}

View File

@ -271,22 +271,23 @@
mapFun() {
let that = this
uni.chooseLocation({
success: (res) => {
}
})
// uni.chooseLocation({
// success:(res)=> {
// console.log(res,275);
// that.data.service_address = res.address
// }
// });
success:(result)=> {
that.data.service_address = result.address
}
});
// uni.getLocation({
// type: 'wgs84', //uni.openLocationgcj02
// success: function(res) {
// console.log(res);
// let latitude = res.latitude;
// let longitude = res.longitude;
// uni.chooseLocation({
// latitude:res.latitude,
// longitude:res.longitude,
// success:(result)=> {
// that.data.service_address = result.address
// }
// });
// }
// });
},