-
无牌车{{ toFlag =='0' ? '入场' : '出场' }}结算
+
无牌车{{ toflag =='0' ? '入场' : '出场' }}结算
{{ tipsText }}
-
+
@@ -18,7 +18,12 @@ import { mapActions } from 'vuex'
export default {
name: 'InOut',
- props: ['toFlag'],
+ props: {
+ toflag: {
+ type: Number,
+ default: 0
+ }
+ },
data() {
return {
tipsText: '请输入手机号',
@@ -44,7 +49,7 @@ export default {
}
},
commitsure() { // 确定事件
- console.log(this.toFlag) // 如果为1 就需要去支付
+ console.log(this.toflag) // 如果为1 就需要去支付
if (this.inputType) {
const phonetext = this.$refs.phoneVal.value.trim()
const phoneReg = /(^1[3|4|5|7|8]\d{9}$)|(^09\d{8}$)/
@@ -57,7 +62,7 @@ export default {
this.handleHide()
this.tipsText = '绑定成功'
this.tipsClass = 'successClass'
- if (this.toFlag === 1) {
+ if (this.toflag === 1) {
this.handlePayFlag()
}
}, 2000)
@@ -74,7 +79,7 @@ export default {
} else {
const cartext = this.$refs.carVal.value.trim()
const carReg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/
- const carnewreg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/;
+ const carnewreg = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/
if (cartext) {
if (cartext.length === 7) { // 正常车牌
if (carReg.test(cartext)) {
diff --git a/src/components/loading.vue b/src/components/loading.vue
index 93207b6..a8203ac 100644
--- a/src/components/loading.vue
+++ b/src/components/loading.vue
@@ -64,6 +64,4 @@ export default {
border-color: lightblue;
}
}
-
-
--
libgit2 0.21.4