Commit c7beec3d162bbe7c5b3d1df4daba13def6004f15

Authored by wangfan
1 parent 0989eff5

c端预定

Showing 1 changed file with 6 additions and 3 deletions
... ... @@ -252,6 +252,7 @@ Page({
let markers=this.data.markers;
let bl=1.2;
markers.forEach(m=>{
m.iconPath=m.iconPath.replace('/cates-active/','/cates/')
if(m.width==20*bl){
m.width=20;
m.height=25;
... ... @@ -264,6 +265,7 @@ Page({
if(m.width==20){
m.width=20*bl;
m.height=25*bl;
m.iconPath=m.iconPath.replace('/cates/','/cates-active/')
}else{
m.width=7*bl;
m.height=7*bl;
... ... @@ -334,9 +336,10 @@ Page({
};
if(seller.level[0].id<3){
//http://qn.colorcun.com/custom/lite-online/cates/%E6%B1%9F%E6%B5%99%E8%8F%9C.png
marker.iconPath="http://qn.colorcun.com/custom/lite-online/cates/"
+(seller.cate.length>0?seller.cate[0].name:'其他菜品')
+".png";
marker.iconPath="http://qn.colorcun.com/custom/lite-online/cates/其他菜品.png";
if(seller.cate.length>0){
marker.iconPath=seller.cate[0].icon
}
marker.width=20;
marker.height=25;
marker.callout={
... ...