注释地理位置获取

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){//
wx.getLocation({//
type: 'wgs84', //wx.openLocationbug: iOS 6.3.30 type wgs84
success: function (res) {
wx.openLocation({//使
latitude: 30.67554,//-
longitude: 104.010642,//-
name: val,
address: val
})
}
})
// wx.getLocation({//
// type: 'wgs84', //wx.openLocationbug: iOS 6.3.30 type wgs84
// success: function (res) {
// wx.openLocation({//使
// latitude: 30.67554,//-
// longitude: 104.010642,//-
// name: val,
// address: val
// })
// }
// })
},
checkAddress(){//
this.$requst.post('user/address').then(res=>{

View File

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

View File

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

View File

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

View File

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