wesmiler 6 rokov pred
rodič
commit
15fbe39e35
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  1. 2 1
      public/static/weixin/js/index.js

+ 2 - 1
public/static/weixin/js/index.js

@@ -31,6 +31,7 @@ var app = new Vue({
     },
     mounted: function(){
       this.loadLocation();
+        $.toast('您的位置:南宁市','text');
     },
     methods: {
         // 搜索
@@ -121,7 +122,7 @@ var app = new Vue({
                                     var detail = result.detail;
                                     var address = detail.addressComponents;
                                     if(address.city){
-                                        $.toast(address.city,'text');
+                                        $.toast('您的位置:'+address.city,'text');
                                     }
                                 }
                             });