main
liudan 2 years ago
parent ea92df05a5
commit 289b5b0d43
  1. 4
      manifest.json
  2. 92
      technician/pages/apply.vue

@ -118,13 +118,13 @@
"amap" : { "amap" : {
"__platform__" : [ "ios", "android" ], "__platform__" : [ "ios", "android" ],
"appkey_ios" : "6915e7c20ed1fb4abb6c5b45b5c54c50", "appkey_ios" : "6915e7c20ed1fb4abb6c5b45b5c54c50",
"appkey_android" : "6cbbd69cc7973aba0d1c834accb2ceb3" "appkey_android" : "ad263f79472a94912ec991ded259aba8"
} }
}, },
"maps" : { "maps" : {
"amap" : { "amap" : {
"appkey_ios" : "6915e7c20ed1fb4abb6c5b45b5c54c50", "appkey_ios" : "6915e7c20ed1fb4abb6c5b45b5c54c50",
"appkey_android" : "6cbbd69cc7973aba0d1c834accb2ceb3" "appkey_android" : "ad263f79472a94912ec991ded259aba8"
} }
}, },
"payment" : { "payment" : {

@ -445,52 +445,52 @@
} = this } = this
if (!location.lat) { if (!location.lat) {
// #ifdef H5 // #ifdef H5
// if (this.$jweixin.isWechat()) { if (this.$jweixin.isWechat()) {
// this.$util.showLoading() this.$util.showLoading()
// // await this.$jweixin.initJssdk(); // await this.$jweixin.initJssdk();
// await this.$jweixin.wxReady2(); await this.$jweixin.wxReady2();
// let { let {
// latitude: lat = 0, latitude: lat = 0,
// longitude: lng = 0 longitude: lng = 0
// } = await this.$jweixin.getWxLocation() } = await this.$jweixin.getWxLocation()
// location = { location = {
// lng, lng,
// lat, lat,
// address: '', address: '定位失败',
// province: '', province: '',
// city: '', city: '',
// district: '' district: ''
// } }
// if (lat && lng) { if (lat && lng) {
// let key = `${lat},${lng}` let key = `${lat},${lng}`
// let data = await this.$api.base.getMapInfo({ let data = await this.$api.base.getMapInfo({
// location: key location: key
// }) })
// let { let {
// status, status,
// result result
// } = JSON.parse(data) } = JSON.parse(data)
// if (status == 0) { if (status == 0) {
// let { let {
// address, address,
// address_component address_component
// } = result } = result
// let { let {
// province, province,
// city, city,
// district district
// } = address_component } = address_component
// location = { location = {
// lng, lng,
// lat, lat,
// address, address,
// province, province,
// city, city,
// district district
// } }
// } }
// } }
// } }
// #endif // #endif
// #ifndef H5 // #ifndef H5
location = await this.$util.getBmapLocation() location = await this.$util.getBmapLocation()

Loading…
Cancel
Save