|
...
|
...
|
@@ -66,9 +66,8 @@ Page({ |
|
|
|
onUnload: function () {
|
|
|
|
|
|
|
|
},
|
|
|
|
city:null,
|
|
|
|
getHistory(){
|
|
|
|
this.city=util.cache('CACHE_LOCALTION_KEY')
|
|
|
|
//this.city=util.cache('CACHE_LOCALTION_KEY')
|
|
|
|
App.Customer.GetHistorySearch().then(res=>{
|
|
|
|
let mks=[]
|
|
|
|
res.data.forEach(h=>{
|
|
...
|
...
|
@@ -319,8 +318,8 @@ Page({ |
|
|
|
},
|
|
|
|
success:(res)=>{
|
|
|
|
if(res.status!=0) return success({flag:true,'msg':'1001'})
|
|
|
|
console.log('qqmapsdk.reverseGeocoder',res.result.address_component.city,this.city.city.name)
|
|
|
|
if(res.result.address_component.city==this.city.city.name){
|
|
|
|
console.log('qqmapsdk.reverseGeocoder',res.result.address_component.city,this.city.name)
|
|
|
|
if(res.result.address_component.city==this.city.name){
|
|
|
|
return success({flag:true,msg:''})
|
|
|
|
}
|
|
|
|
success({flag:false,msg:''})
|
...
|
...
|
|