wesmiler 6 lat temu
rodzic
commit
752fda93e5
1 zmienionych plików z 3 dodań i 2 usunięć
  1. 3 2
      public/static/weixin/js/shop-map.js

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

@@ -61,7 +61,7 @@ var app = new Vue({
 
             _this.loadLocation();
 
-            _this.loadMark(_this.point);
+
         },
         // 微信地图定位
         loadLocation: function () {
@@ -71,7 +71,7 @@ var app = new Vue({
 
                 // 微信JSSDK
                 wx.config({
-                    debug: false, // 是否调试模式
+                    debug: true, // 是否调试模式
                     appId: params.appId, // 必填,公众号的唯一标识
                     timestamp: params.timestamp, // 必填,生成签名的时间戳
                     nonceStr: params.nonceStr, // 必填,生成签名的随机串
@@ -114,6 +114,7 @@ var app = new Vue({
                                     _this.map.enableScrollWheelZoom();   //启用滚轮放大缩小,默认禁用
                                     _this.map.enableContinuousZoom();    //启用地图惯性拖拽,默认禁用
 
+                                    //_this.loadMark(_this.point);
                                     //alert('当前定位:'+JSON.stringify(r.point));
                                    // _this.loadMark(point);
                                 }