uniapp input匹配修改

pull/2/head
Jruome 2023-05-29 19:59:33 +08:00
parent 79a37da568
commit e7145eb51c
1 changed files with 19 additions and 13 deletions

View File

@ -114,6 +114,7 @@
},
{
validator: (rule, value, callback) => {
return this.form.userPhone == this.form.confirmPhone
},
message: '手机号不一致',
@ -136,7 +137,15 @@
}
},
watch:{
'form.userPhone' (){
this.verify()
},
'form.confirmPhone' (){
this.verify()
}
},
methods: {
verify(){
this.$refs.uForm.validate().then(async res => {
uni.showLoading({
title: '加载中',
@ -149,10 +158,7 @@
uni.hideLoading();
}
})
}
},
methods: {
handleMember(value, index) {
if (!!parseInt(value.isExist)) return
if (this.activeIndex.includes(index)) {