Ver Fonte

wesmiler

wesmiler há 6 anos atrás
pai
commit
c22b248c2b
1 ficheiros alterados com 6 adições e 0 exclusões
  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');