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');
                                     }
                                 }
                             });