wesmiler hace 6 años
padre
commit
6c53acd6f4

+ 6 - 2
public/static/weixin/js/shop-apply.js

@@ -154,12 +154,16 @@ var app = new Vue({
                 $.toast('手机号格式错误','text');
                 return false;
             }
-            _this.shopInfo.address = $("#city-picker").val();
-            if(_this.shopInfo.address == '' || _this.shopInfo.address == null){
+            _this.shopInfo.area = $("#city-picker").val();
+            if(_this.shopInfo.area == '' || _this.shopInfo.area == null){
                 $.toast('请选择所在地区','text');
                 return false;
             }
 
+            if(_this.shopInfo.address == '' || _this.shopInfo.address == null){
+                $.toast('请选择所在地址','text');
+                return false;
+            }
 
             var formData = new FormData();
             _this.shopInfo.city_codes = $("#city-picker").attr('data-codes');

+ 1 - 1
public/themes/default/weixin/shop/apply.html

@@ -77,7 +77,7 @@
                 <div class="weui-cell">
                     <div class="weui-cell__hd"><label class="weui-label">定位地址*:</label></div>
                     <div class="weui-cell__bd">
-                        <input v-if="!shopInfo.status || shopInfo.status == 3" class="weui-input" id="address" :value="shopInfo.address" name="address" type="text" placeholder="点击选择定位地址" :data-lng="shopInfo.lng" :data-lat="shopInfo.lat" @click="showMap()" readonly>
+                        <input v-if="!shopInfo.status || shopInfo.status == 3" class="weui-input" id="address" v-model="shopInfo.address" name="address" type="text" placeholder="点击选择定位地址" :data-lng="shopInfo.lng" :data-lat="shopInfo.lat" @click="showMap()" readonly>
                         <input v-else class="weui-input" id="address" :value="shopInfo.address" name="address" type="text" placeholder="点击选择定位地址" :data-lng="shopInfo.lng" :data-lat="shopInfo.lat" readonly>
                     </div>
                 </div>