uniapp input匹配修改
parent
79a37da568
commit
e7145eb51c
|
@ -114,6 +114,7 @@
|
|||
},
|
||||
{
|
||||
validator: (rule, value, callback) => {
|
||||
|
||||
return this.form.userPhone == this.form.confirmPhone
|
||||
},
|
||||
message: '手机号不一致',
|
||||
|
@ -136,23 +137,28 @@
|
|||
}
|
||||
},
|
||||
watch:{
|
||||
'form.userPhone' (){
|
||||
this.verify()
|
||||
},
|
||||
'form.confirmPhone' (){
|
||||
this.$refs.uForm.validate().then(async res => {
|
||||
uni.showLoading({
|
||||
title: '加载中',
|
||||
mask: true
|
||||
});
|
||||
try{
|
||||
const res = await memberByHomeGradeInfo(this.form.confirmPhone)
|
||||
this.memberData = res.data
|
||||
} finally{
|
||||
uni.hideLoading();
|
||||
}
|
||||
})
|
||||
|
||||
this.verify()
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
verify(){
|
||||
this.$refs.uForm.validate().then(async res => {
|
||||
uni.showLoading({
|
||||
title: '加载中',
|
||||
mask: true
|
||||
});
|
||||
try{
|
||||
const res = await memberByHomeGradeInfo(this.form.confirmPhone)
|
||||
this.memberData = res.data
|
||||
} finally{
|
||||
uni.hideLoading();
|
||||
}
|
||||
})
|
||||
},
|
||||
handleMember(value, index) {
|
||||
if (!!parseInt(value.isExist)) return
|
||||
if (this.activeIndex.includes(index)) {
|
||||
|
|
Loading…
Reference in New Issue