Parcourir la source

油卡充值查看时清空卡号

dujingxian il y a 4 ans
Parent
commit
45295553fa
2 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 1 0
      src/api/index.js
  2. 3 0
      src/pages/subPages/oilCard.vue

+ 1 - 0
src/api/index.js

@@ -107,6 +107,7 @@ let requestLoading = (url, method, params) => {
 
 // const Prefix = StanleyLocal;
 // const Prefix = 'http://192.168.1.195:8080/';
+
 const Prefix = 'http://192.168.1.195/mobile/index.php?';
 // const Prefix = 'https://www.xyzshops.cn/mobile/index.php?';
 

+ 3 - 0
src/pages/subPages/oilCard.vue

@@ -161,6 +161,7 @@ export default {
           if (this.codeStr.length < 19) {
             this.$message.error('请输入合法卡号')
             this.dialogVisible = false
+            this.splitStr = ""
             return
           }
           this.splitStr = this.splitStr == '' ? this.splitStr.concat(this.codeStr.substring(0,19)) : this.splitStr.concat(',' + this.codeStr.substring(0,19))
@@ -169,6 +170,7 @@ export default {
         } else if (this.firstStr == '9') {
           if (this.codeStr.length < 16) {
             this.$message.error('请输入合法卡号')
+            this.splitStr = ""
             this.dialogVisible = false
             return
           }
@@ -177,6 +179,7 @@ export default {
           console.log('codeStr', this.codeStr);
         } else {
           this.$message.error('请输入合法卡号')
+          this.splitStr = ""
           this.dialogVisible = false
         }
       }