Commit 0b368fbda8facc137c3ce204ca1cacb6189512aa

Authored by wangfan
1 parent 0bc2d31b

C端调整

Showing 1 changed file with 5 additions and 12 deletions
... ... @@ -180,15 +180,19 @@ Page({
let res=e.detail;
this.hasGetLocation=true;
if(!res.latitude) return;
this.sellersIds=[]
this.sellers=[]
let map = this.data.map;
map.latitude = res.latitude;
map.longitude = res.longitude;
map.scale=mapScale;
this.user.latitude = res.latitude;
this.user.longitude = res.longitude;
map.height = this.systemInfo.windowHeight-this.transverseViewHeight
this.setData({
map: map,
markers:[],
hasSuggestion:false,
})
if(this.mapCtx){
this.mapCtx.getRegion({
... ... @@ -491,17 +495,6 @@ Page({
},
moveToLocation(){
this.hasClickMoveToLocation=true
let map=this.data.map;
map.latitude=this.user.latitude
map.longitude=this.user.longitude
map.scale=mapScale;
this.sellersIds=[]
this.sellers=[]
this.setData({
markers:[],
map:map,
hasSuggestion:false,
})
if(this.user.latitude==def_latitude && this.user.longitude==def_longitude){
this.selectComponent('#getpos').getPos(true);
return;
... ...