Showing
1 changed file
with
6 additions
and
3 deletions
| @@ -252,6 +252,7 @@ Page({ | @@ -252,6 +252,7 @@ Page({ | ||
| 252 | let markers=this.data.markers; | 252 | let markers=this.data.markers; |
| 253 | let bl=1.2; | 253 | let bl=1.2; |
| 254 | markers.forEach(m=>{ | 254 | markers.forEach(m=>{ |
| 255 | + m.iconPath=m.iconPath.replace('/cates-active/','/cates/') | ||
| 255 | if(m.width==20*bl){ | 256 | if(m.width==20*bl){ |
| 256 | m.width=20; | 257 | m.width=20; |
| 257 | m.height=25; | 258 | m.height=25; |
| @@ -264,6 +265,7 @@ Page({ | @@ -264,6 +265,7 @@ Page({ | ||
| 264 | if(m.width==20){ | 265 | if(m.width==20){ |
| 265 | m.width=20*bl; | 266 | m.width=20*bl; |
| 266 | m.height=25*bl; | 267 | m.height=25*bl; |
| 268 | + m.iconPath=m.iconPath.replace('/cates/','/cates-active/') | ||
| 267 | }else{ | 269 | }else{ |
| 268 | m.width=7*bl; | 270 | m.width=7*bl; |
| 269 | m.height=7*bl; | 271 | m.height=7*bl; |
| @@ -334,9 +336,10 @@ Page({ | @@ -334,9 +336,10 @@ Page({ | ||
| 334 | }; | 336 | }; |
| 335 | if(seller.level[0].id<3){ | 337 | if(seller.level[0].id<3){ |
| 336 | //http://qn.colorcun.com/custom/lite-online/cates/%E6%B1%9F%E6%B5%99%E8%8F%9C.png | 338 | //http://qn.colorcun.com/custom/lite-online/cates/%E6%B1%9F%E6%B5%99%E8%8F%9C.png |
| 337 | - marker.iconPath="http://qn.colorcun.com/custom/lite-online/cates/" | ||
| 338 | - +(seller.cate.length>0?seller.cate[0].name:'其他菜品') | ||
| 339 | - +".png"; | 339 | + marker.iconPath="http://qn.colorcun.com/custom/lite-online/cates/其他菜品.png"; |
| 340 | + if(seller.cate.length>0){ | ||
| 341 | + marker.iconPath=seller.cate[0].icon | ||
| 342 | + } | ||
| 340 | marker.width=20; | 343 | marker.width=20; |
| 341 | marker.height=25; | 344 | marker.height=25; |
| 342 | marker.callout={ | 345 | marker.callout={ |
-
Please register or login to post a comment