From e7145eb51ce58905bc683e7cf2a6ab4e926e408e Mon Sep 17 00:00:00 2001 From: Jruome <2559028966@qq.com> Date: Mon, 29 May 2023 19:59:33 +0800 Subject: [PATCH] =?UTF-8?q?uniapp=20input=E5=8C=B9=E9=85=8D=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-app/pages/member_others/index.vue | 32 +++++++++++++--------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/yudao-ui-app/pages/member_others/index.vue b/yudao-ui-app/pages/member_others/index.vue index 90a84e55b..d2a0dff89 100644 --- a/yudao-ui-app/pages/member_others/index.vue +++ b/yudao-ui-app/pages/member_others/index.vue @@ -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)) {