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

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

View File

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