wesmiler 6 년 전
부모
커밋
15fbe39e35
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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');
                                     }
                                 }
                             });