Explorar el Código

供货商 修改添加门店选择城市的一些问题

wangn hace 5 años
padre
commit
5c5e3bcd42
Se han modificado 2 ficheros con 7 adiciones y 9 borrados
  1. 2 0
      ghsApp/src/admin/shop/add.vue
  2. 5 9
      ghsApp/src/components/app-area-sel.vue

+ 2 - 0
ghsApp/src/admin/shop/add.vue

@@ -159,6 +159,8 @@
 				this.form.province = e.provinceName
 				this.form.city = e.cityName
         this.form.address = ''
+        this.region.lat = 0
+				this.region.long = 0
 				// this.pickerText = JSON.stringify(e)
 			},
 			confirmFn() {

+ 5 - 9
ghsApp/src/components/app-area-sel.vue

@@ -80,10 +80,6 @@
 		watch: {
 			show(val) {
 				this.showPopup = val
-        if(val){
-          this.keyword = ''
-          this.nearListData = []
-        }
 				// #ifdef H5
 				this.$nextTick(function() {
 					setTimeout(() => {
@@ -91,11 +87,11 @@
 					}, 1000)
 				})
 				// #endif
-
-				// if (val) {
-				// 	this.getAreaList()
-				// }
-			}
+			},
+       city() {
+        this.nearListData = []
+        this.$refs.aaaaa.search = ''
+      }
 		},
 		methods: {
 			getAreaList() {