Commit 25a20f70b5505b2f0b7ef5739942192d7efba6b3

Authored by wangfan
1 parent 835261bb

首次授权

Showing 1 changed file with 2 additions and 1 deletions
... ... @@ -30,7 +30,7 @@ Component({
this._getPos().then(res => {
console.log('wx.getLocation.then', res);
failCount=0;
this.triggerEvent("pos",res);
//this.triggerEvent("pos",res);
}).catch((e) => {
console.log('wx.getLocation.catch', failCount,e);
if(this.data.hasAllowFail){
... ... @@ -96,6 +96,7 @@ Component({
success: (res) => {
hasSuccess=true;
rex=res;
this.triggerEvent("pos",res);
success(res)
},
fail: (res) => {
... ...