|
...
|
...
|
@@ -98,10 +98,17 @@ Page({ |
|
|
|
//this.getMapPos();
|
|
|
|
}).catch((e)=>{
|
|
|
|
console.log('wx.getLocation.catch',e);
|
|
|
|
this.selectComponent('#showModal').options({
|
|
|
|
header:'定位失败',
|
|
|
|
body:'需要地理位置授权'
|
|
|
|
}).show();
|
|
|
|
if('getLocation:fail auth deny'==e.errMsg){
|
|
|
|
this.selectComponent('#showModal').options({
|
|
|
|
header:'定位失败',
|
|
|
|
body:'需要地理位置授权'
|
|
|
|
}).show();
|
|
|
|
}else{
|
|
|
|
setTimeout(()=>{
|
|
|
|
this.getPos()
|
|
|
|
},500)
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
},
|
|
|
|
_getPos(){
|
...
|
...
|
|