Commit 25a20f70b5505b2f0b7ef5739942192d7efba6b3

Authored by wangfan
1 parent 835261bb

首次授权

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