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)
             return Number(price)
         },
         },
         isAddressInvalid() {
         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:{
     watch:{

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

@@ -403,7 +403,8 @@ export default {
             return Number(price)
             return Number(price)
         },
         },
         isAddressInvalid() {
         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:{
     watch:{