shish 6 ماه پیش
والد
کامیت
8856bf9656
2فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 2 1
      ghsPad/src/pages/home/components/settlePop.vue
  2. 2 1
      hdPad/src/pages/home/components/settlePop.vue

+ 2 - 1
ghsPad/src/pages/home/components/settlePop.vue

@@ -359,7 +359,8 @@ export default {
             return Number(price)
         },
         isAddressInvalid() {
-            return this.$util.isEmpty(this.custom.long) || this.$util.isEmpty(this.custom.lat) || this.$util.isEmpty(this.custom.address)
+            //this.custom 有也会出现空的情况
+            return this.$util.isEmpty(this.custom) || this.$util.isEmpty(this.custom.long) || this.$util.isEmpty(this.custom.lat) || this.$util.isEmpty(this.custom.address)
         }
     },
     watch:{

+ 2 - 1
hdPad/src/pages/home/components/settlePop.vue

@@ -403,7 +403,8 @@ export default {
             return Number(price)
         },
         isAddressInvalid() {
-            return this.$util.isEmpty(this.custom.long) || this.$util.isEmpty(this.custom.lat) || this.$util.isEmpty(this.custom.address)
+            //this.custom 有也会出现空的情况
+            return this.$util.isEmpty(this.custom) || this.$util.isEmpty(this.custom.long) || this.$util.isEmpty(this.custom.lat) || this.$util.isEmpty(this.custom.address)
         }
     },
     watch:{