Showing
1 changed file
with
3 additions
and
4 deletions
| @@ -66,9 +66,8 @@ Page({ | @@ -66,9 +66,8 @@ Page({ | ||
| 66 | onUnload: function () { | 66 | onUnload: function () { |
| 67 | 67 | ||
| 68 | }, | 68 | }, |
| 69 | - city:null, | ||
| 70 | getHistory(){ | 69 | getHistory(){ |
| 71 | - this.city=util.cache('CACHE_LOCALTION_KEY') | 70 | + //this.city=util.cache('CACHE_LOCALTION_KEY') |
| 72 | App.Customer.GetHistorySearch().then(res=>{ | 71 | App.Customer.GetHistorySearch().then(res=>{ |
| 73 | let mks=[] | 72 | let mks=[] |
| 74 | res.data.forEach(h=>{ | 73 | res.data.forEach(h=>{ |
| @@ -319,8 +318,8 @@ Page({ | @@ -319,8 +318,8 @@ Page({ | ||
| 319 | }, | 318 | }, |
| 320 | success:(res)=>{ | 319 | success:(res)=>{ |
| 321 | if(res.status!=0) return success({flag:true,'msg':'1001'}) | 320 | if(res.status!=0) return success({flag:true,'msg':'1001'}) |
| 322 | - console.log('qqmapsdk.reverseGeocoder',res.result.address_component.city,this.city.city.name) | ||
| 323 | - if(res.result.address_component.city==this.city.city.name){ | 321 | + console.log('qqmapsdk.reverseGeocoder',res.result.address_component.city,this.city.name) |
| 322 | + if(res.result.address_component.city==this.city.name){ | ||
| 324 | return success({flag:true,msg:''}) | 323 | return success({flag:true,msg:''}) |
| 325 | } | 324 | } |
| 326 | success({flag:false,msg:''}) | 325 | success({flag:false,msg:''}) |
-
Please register or login to post a comment