|
...
|
...
|
@@ -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) => {
|
...
|
...
|
|