wesmiler 6 năm trước cách đây
mục cha
commit
c22b248c2b
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      public/static/weixin/js/index.js

+ 6 - 0
public/static/weixin/js/index.js

@@ -115,6 +115,12 @@ var app = new Vue({
                         type: 'BD09', // 默认为wgs84的gps坐标,如果要返回直接给openLocation用的火星坐标,可传入'gcj02'
                         // type: 'wgs84', // 默认为wgs84的gps坐标,如果要返回直接给openLocation用的火星坐标,可传入'gcj02'
                         success: function (res) {
+                            var geocoder = new qq.maps.Geocoder({
+                                complete: function (result) {
+                                    $(".index-navs").append(JSON.stringify(result))
+                                }
+                            })
+
                             $(".index-navs").append(JSON.stringify(res))
                             $.toast(JSON.stringify(res),'text');