wesmiler 6 سال پیش
والد
کامیت
dd4887d48b
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      public/static/weixin/js/shop-map.js

+ 2 - 2
public/static/weixin/js/shop-map.js

@@ -283,9 +283,9 @@ console.log(_this.mapParams)
             ComplexCustomOverlay.prototype.draw = function () {
                 var map = this._map;
                 var pixel = map.pointToOverlayPixel(this._point);
-                this._div.style.left = pixel.x + "px";
+                this._div.style.left = pixel.x -15 + "px";
                 // this._div.style.left = pixel.x - 40 + "px";
-                this._div.style.top = pixel.y+ "px";
+                this._div.style.top = pixel.y -40+ "px";
                 // this._div.style.top = pixel.y-100 + "px";
             }