Commit f0f9bd241540a18686b8be31fdb3ff89bdb4889f

Authored by vking
1 parent b372084f

距离展示调整

... ... @@ -77,8 +77,10 @@ Component({
offset:this.offset,
size:this.size,
distance:50,
centre_pos:mapParam.centre_pos,
};
if(mapParam.centre_pos){
this.param.centre_pos=mapParam.centre_pos
}
if(mapParam.tags){
this.param.tags=mapParam.tags
}
... ...
... ... @@ -462,7 +462,9 @@ Page({
if(tags.length>0){
param.tags=tags;
}
param.centre_pos=`${param.lat},${param.lng}`
if(param.lat){
param.centre_pos=`${param.lat},${param.lng}`
}
if(this.data.hasSuggestion){
param.centre_pos=`${this.data.suggestion.latitude},${this.data.suggestion.longitude}`
}
... ... @@ -730,16 +732,22 @@ Page({
if(this.data.hasSuggestion){
map=this.data.suggestion
}else{
map=this.data.map
mks.push({
id: 'location',
iconPath: "http://qn.colorcun.com/reserve/images/location.png"+cates_version,
latitude: map.latitude,
longitude: map.longitude,
width: 20,
height: 25,
})
}
mks.push({
id: 'location',
iconPath: "http://qn.colorcun.com/reserve/images/location.png"+cates_version,
latitude: map.latitude,
longitude: map.longitude,
width: 20,
height: 25,
iconPath: "http://qn.colorcun.com/reserve/images/lme.png"+cates_version,
latitude: this.user.latitude,
longitude: this.user.longitude,
width: 18,
height: 30,
})
return mks;
},
... ...
... ... @@ -108,8 +108,10 @@ Page({
offset:this.offset,
size:this.size,
distance:500000,
centre_pos:`${mapParam.lat},${mapParam.lng}`,
};
if(mapParam.lat){
this.param.centre_pos=`${mapParam.lat},${mapParam.lng}`
}
}else{
//计算视窗中心
let map=JSON.parse(mapParam.map);
... ... @@ -123,9 +125,12 @@ Page({
offset:this.offset,
size:this.size,
distance:50,
centre_pos:mapParam.centre_pos,
};
if(mapParam.centre_pos){
this.param.centre_pos=mapParam.centre_pos
}
}
if(this.data.multiIndex[0]>0){
this.param.cuisine=await DA.getCatesID(this.data.multiIndex[0]-1);
}
... ...