From e6aab0eaddcf607ef49720eaaf494c07df63ee06 Mon Sep 17 00:00:00 2001 From: fengachen <373943794@qq.com> Date: Thu, 23 Sep 2021 11:21:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E5=90=8D=E9=AA=8C=E8=AF=81=E7=A0=81?= =?UTF-8?q?=E5=A1=AB=E5=86=99=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../meetManage/AddOrDetailMeet.vue | 2 +- .../meetManage/modules/SeminarVipForm.vue | 2 +- src/views/signUp/SignUpPage.vue | 40 +++++++++++++++++-- 3 files changed, 39 insertions(+), 5 deletions(-) diff --git a/src/views/incomePayments/meetManage/AddOrDetailMeet.vue b/src/views/incomePayments/meetManage/AddOrDetailMeet.vue index 681be4d..d7556bd 100644 --- a/src/views/incomePayments/meetManage/AddOrDetailMeet.vue +++ b/src/views/incomePayments/meetManage/AddOrDetailMeet.vue @@ -222,7 +222,7 @@ - + diff --git a/src/views/incomePayments/meetManage/modules/SeminarVipForm.vue b/src/views/incomePayments/meetManage/modules/SeminarVipForm.vue index d6ec706..91340c1 100644 --- a/src/views/incomePayments/meetManage/modules/SeminarVipForm.vue +++ b/src/views/incomePayments/meetManage/modules/SeminarVipForm.vue @@ -15,7 +15,7 @@ - + diff --git a/src/views/signUp/SignUpPage.vue b/src/views/signUp/SignUpPage.vue index 2d8fff0..ffdb8d5 100644 --- a/src/views/signUp/SignUpPage.vue +++ b/src/views/signUp/SignUpPage.vue @@ -176,6 +176,8 @@ @@ -540,6 +542,8 @@ export default { this.inviteCodeBool = true } else if (e.target.value === 0) { this.inviteCodeBool = false + // 选的否 身份置空 + this.identifyType = null } }, /* @@ -552,10 +556,8 @@ export default { * 下一步 * */ nextSetp() { - console.log(this.currentMeetingInfo) // 获取邀请码 let code = this.form.getFieldValue('code') - console.log(code) console.log(this.currentMeetingInfo.cooperativeInvitationCode === code) switch (code) { // 合作伙伴 @@ -576,7 +578,39 @@ export default { break default :this.guestType = null } - console.log(this.guestType) + }, + /* + * 校验邀请码是否正确 给出提示 + * */ + validateCode(){ + let code = this.form.getFieldValue('code') + let flag = false + switch (code) { + // 合作伙伴 + case this.currentMeetingInfo.cooperativeInvitationCode: + flag = true + break + // 演讲嘉宾 + case this.currentMeetingInfo.speakerInvitationCode: + flag = true + break + // 特邀嘉宾 + case this.currentMeetingInfo.guestInvitationCode: + flag = true + break + // vip + case this.currentMeetingInfo.vipInvitationCode: + flag = true + break + default : flag = false + } + // 判断guestType 是否等于 null + if(!flag){ + // 错误 + this.$message.warn('邀请码填写错误') + }else { + this.$message.success('邀请码填写正确') + } }, addContactsOk() { this.$refs.selectContacts.getContactsList()