Commit c9def95456fac00fb51c0260e1ea753ad6e3c439

Authored by wangfan
1 parent 641ab89c

reserve index

Showing 1 changed file with 11 additions and 4 deletions
... ... @@ -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(){
... ...