wesmiler %!s(int64=6) %!d(string=hai) anos
pai
achega
a75a4f2369

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

@@ -5,7 +5,7 @@ var app = new Vue({
         curNav: 'index',
         curNav: 'index',
         // 定位信息
         // 定位信息
         location: {
         location: {
-            city: '南宁市',
+            city: '位置',
             address: '',
             address: '',
             info: {},
             info: {},
             lng: '',
             lng: '',
@@ -121,7 +121,7 @@ var app = new Vue({
                                     var detail = result.detail;
                                     var detail = result.detail;
                                     var address = detail.addressComponents;
                                     var address = detail.addressComponents;
                                     if(address.city){
                                     if(address.city){
-
+                                        _this.location = address;
                                         $.toast.prototype.defaults.duration = 1000;
                                         $.toast.prototype.defaults.duration = 1000;
                                         $.toast('您的位置:'+address.city,'text');
                                         $.toast('您的位置:'+address.city,'text');
                                     }
                                     }

+ 1 - 1
public/themes/default/weixin/index.html

@@ -5,7 +5,7 @@
 <div id="app" v-cloak>
 <div id="app" v-cloak>
     <header class="zyw-header">
     <header class="zyw-header">
         <div class="zyw-container white-color">
         <div class="zyw-container white-color">
-            <!--<div class="location"><span v-text="location.city"></span></div>-->
+            <div class="location"><span v-text="location.city"></span></div>
             <div class="head-search" id="search">
             <div class="head-search" id="search">
                 <i class="fa fa-search" aria-hidden="true"></i>
                 <i class="fa fa-search" aria-hidden="true"></i>
                 <input type="text" name="kw" placeholder="输入您当前要搜索的产品" class="white-color keyword">
                 <input type="text" name="kw" placeholder="输入您当前要搜索的产品" class="white-color keyword">