5.6租赁正则修改
This commit is contained in:
parent
5210a1b496
commit
c76df2aded
|
|
@ -95,14 +95,14 @@
|
|||
upperInfo: [],
|
||||
userId: '',
|
||||
manageType: '',
|
||||
taskId: ''
|
||||
taskId: '',
|
||||
intReg: /^\+?[0-9]\d*$/
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
okChange (e, index) {
|
||||
console.log(e, index);
|
||||
let intReg = /^\+?[0-9]\d*$/
|
||||
if (!intReg.test(e)) {
|
||||
if (!this.intReg.test(e)) {
|
||||
this.upperInfo[index].okNum = 1
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
|
|
@ -112,8 +112,7 @@
|
|||
},
|
||||
reChange (e, index) {
|
||||
console.log(e, index);
|
||||
let intReg = /^\+?[0-9]\d*$/
|
||||
if (!intReg.test(e)) {
|
||||
if (!this.intReg.test(e)) {
|
||||
this.upperInfo[index].reNum = 1
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
|
|
@ -123,8 +122,7 @@
|
|||
},
|
||||
crashChange (e, index) {
|
||||
console.log(e, index);
|
||||
let intReg = /^\+?[0-9]\d*$/
|
||||
if (!intReg.test(e)) {
|
||||
if (!this.intReg.test(e)) {
|
||||
this.upperInfo[index].crashNum = 1
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue