注释地理位置获取

master
yin5th 2022-05-30 16:51:00 +08:00
parent b255ef510d
commit f9d837f3f2
44 changed files with 84 additions and 84 deletions

View File

@ -596,17 +596,17 @@
} }
}, },
goThere(val){// goThere(val){//
wx.getLocation({// // wx.getLocation({//
type: 'wgs84', //wx.openLocationbug: iOS 6.3.30 type wgs84 // type: 'wgs84', //wx.openLocationbug: iOS 6.3.30 type wgs84
success: function (res) { // success: function (res) {
wx.openLocation({//使 // wx.openLocation({//使
latitude: 30.67554,//- // latitude: 30.67554,//-
longitude: 104.010642,//- // longitude: 104.010642,//-
name: val, // name: val,
address: val // address: val
}) // })
} // }
}) // })
}, },
checkAddress(){// checkAddress(){//
this.$requst.post('user/address').then(res=>{ this.$requst.post('user/address').then(res=>{

View File

@ -595,17 +595,17 @@
} }
}, },
goThere(val){// goThere(val){//
wx.getLocation({// // wx.getLocation({//
type: 'wgs84', //wx.openLocationbug: iOS 6.3.30 type wgs84 // type: 'wgs84', //wx.openLocationbug: iOS 6.3.30 type wgs84
success: function (res) { // success: function (res) {
wx.openLocation({//使 // wx.openLocation({//使
latitude: 30.67554,//- // latitude: 30.67554,//-
longitude: 104.010642,//- // longitude: 104.010642,//-
name: val, // name: val,
address: val // address: val
}) // })
} // }
}) // })
}, },
checkAddress(){// checkAddress(){//
this.$requst.post('user/address').then(res=>{ this.$requst.post('user/address').then(res=>{

View File

@ -138,12 +138,12 @@
this.isMo = 0; this.isMo = 0;
this.clearAll(); this.clearAll();
// //
wx.getLocation({ // wx.getLocation({
success:(res)=> { // success:(res)=> {
// // //
this.getDistrict(res.latitude, res.longitude) // this.getDistrict(res.latitude, res.longitude)
}, // },
}) // })
}, },
getDistrict(latitude, longitude) {// getDistrict(latitude, longitude) {//

View File

@ -132,12 +132,12 @@
let chuo = new Date().getTime()// let chuo = new Date().getTime()//
let time = this.$toolAll.tools.timestampToTime(chuo)// XXXX-XX-XX let time = this.$toolAll.tools.timestampToTime(chuo)// XXXX-XX-XX
// //
wx.getLocation({ // wx.getLocation({
success:(res)=> { // success:(res)=> {
// // //
this.getDistrict(res.latitude, res.longitude) // this.getDistrict(res.latitude, res.longitude)
}, // },
}) // })
let firstObj = uni.getStorageSync('firstInfo') let firstObj = uni.getStorageSync('firstInfo')
if(firstObj==''){ if(firstObj==''){
let obj = uni.getStorageSync('uinfo') let obj = uni.getStorageSync('uinfo')

View File

@ -319,17 +319,17 @@
} }
}, },
goThere(val){// goThere(val){//
wx.getLocation({// // wx.getLocation({//
type: 'wgs84', //wx.openLocationbug: iOS 6.3.30 type wgs84 // type: 'wgs84', //wx.openLocationbug: iOS 6.3.30 type wgs84
success: function (res) { // success: function (res) {
wx.openLocation({//使 // wx.openLocation({//使
latitude: 30.67554,//- // latitude: 30.67554,//-
longitude: 104.010642,//- // longitude: 104.010642,//-
name: val, // name: val,
address: val // address: val
}) // })
} // }
}) // })
}, },
} }
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long