Showing
1 changed file
with
17 additions
and
1 deletions
| ... | @@ -264,6 +264,14 @@ export const inputBlurValidate = { | ... | @@ -264,6 +264,14 @@ export const inputBlurValidate = { |
| 264 | this.$refs[coin[customVal]].innerHTML = ""; | 264 | this.$refs[coin[customVal]].innerHTML = ""; |
| 265 | this.validateForm = true; | 265 | this.validateForm = true; |
| 266 | } | 266 | } |
| 267 | + // 如果人民币其中任何一个有值,去判断美元是否有值,如果有值把美元值清空 | ||
| 268 | + if (this.minCNYCustomVal || this.maxCNYCustomVal) { | ||
| 269 | + if (this.minSUDCustomVal || this.maxSUDCustomVal) { | ||
| 270 | + this.$refs.minSUDCustomVal.innerHTML = ""; | ||
| 271 | + this.validateForm = true; | ||
| 272 | + this.minSUDCustomVal = this.maxSUDCustomVal = ""; | ||
| 273 | + } | ||
| 274 | + } | ||
| 267 | } | 275 | } |
| 268 | // 其中一个有值的情况下美元 | 276 | // 其中一个有值的情况下美元 |
| 269 | if ( | 277 | if ( |
| ... | @@ -282,8 +290,16 @@ export const inputBlurValidate = { | ... | @@ -282,8 +290,16 @@ export const inputBlurValidate = { |
| 282 | this.validateForm = true; | 290 | this.validateForm = true; |
| 283 | } | 291 | } |
| 284 | } else { | 292 | } else { |
| 285 | - this.validateForm = true; | ||
| 286 | this.$refs[coin[customVal]].innerHTML = ""; | 293 | this.$refs[coin[customVal]].innerHTML = ""; |
| 294 | + this.validateForm = true; | ||
| 295 | + } | ||
| 296 | + // 如果美元其中任何一个有值,去判断人民币是否有值,如果有值把人民币值清空 | ||
| 297 | + if (this.minSUDCustomVal || this.maxSUDCustomVal) { | ||
| 298 | + if (this.minCNYCustomVal || this.maxCNYCustomVal) { | ||
| 299 | + this.$refs.minCNYCustomVal.innerHTML = ""; | ||
| 300 | + this.validateForm = true; | ||
| 301 | + this.minCNYCustomVal = this.maxCNYCustomVal = ""; | ||
| 302 | + } | ||
| 287 | } | 303 | } |
| 288 | } | 304 | } |
| 289 | } else { | 305 | } else { | ... | ... |
-
Please register or login to post a comment