报名验证码填写校验
This commit is contained in:
@@ -222,7 +222,7 @@
|
|||||||
<a-col :xxl="8" :xl="12" :sm="24" v-if="QRcodeBool">
|
<a-col :xxl="8" :xl="12" :sm="24" v-if="QRcodeBool">
|
||||||
<a-form-item label="收款二维码" :labelCol="{ xs: {span: 24},sm: {span: 8}}"
|
<a-form-item label="收款二维码" :labelCol="{ xs: {span: 24},sm: {span: 8}}"
|
||||||
:wrapperCol="{ xs: {span: 24},xl:{span:14},sm: {span: 16}}">
|
:wrapperCol="{ xs: {span: 24},xl:{span:14},sm: {span: 16}}">
|
||||||
<j-image-upload :return-id="true" v-decorator="[ 'QRcode']"></j-image-upload>
|
<j-image-upload :return-id="true" v-decorator="[ 'paymentQrCode']"></j-image-upload>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
<a-col :xxl="8" :xl="12" :sm="24">
|
<a-col :xxl="8" :xl="12" :sm="24">
|
||||||
<a-form-item label="演讲ppt" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
<a-form-item label="演讲ppt" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
<j-upload v-decorator="['speech_ppt']" :return-id="true"></j-upload>
|
<j-upload v-decorator="['speechPpt']" :return-id="true"></j-upload>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|
||||||
|
|||||||
@@ -176,6 +176,8 @@
|
|||||||
<a-form-item label="邀请码" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
<a-form-item label="邀请码" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||||
<a-input placeholder="请输入邀请码"
|
<a-input placeholder="请输入邀请码"
|
||||||
:maxLength='50'
|
:maxLength='50'
|
||||||
|
@change="event => event.target.value = event.target.value.trim()"
|
||||||
|
@blur="validateCode"
|
||||||
v-decorator="[ 'code',
|
v-decorator="[ 'code',
|
||||||
validatorRules.code]"></a-input>
|
validatorRules.code]"></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
@@ -540,6 +542,8 @@ export default {
|
|||||||
this.inviteCodeBool = true
|
this.inviteCodeBool = true
|
||||||
} else if (e.target.value === 0) {
|
} else if (e.target.value === 0) {
|
||||||
this.inviteCodeBool = false
|
this.inviteCodeBool = false
|
||||||
|
// 选的否 身份置空
|
||||||
|
this.identifyType = null
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/*
|
/*
|
||||||
@@ -552,10 +556,8 @@ export default {
|
|||||||
* 下一步
|
* 下一步
|
||||||
* */
|
* */
|
||||||
nextSetp() {
|
nextSetp() {
|
||||||
console.log(this.currentMeetingInfo)
|
|
||||||
// 获取邀请码
|
// 获取邀请码
|
||||||
let code = this.form.getFieldValue('code')
|
let code = this.form.getFieldValue('code')
|
||||||
console.log(code)
|
|
||||||
console.log(this.currentMeetingInfo.cooperativeInvitationCode === code)
|
console.log(this.currentMeetingInfo.cooperativeInvitationCode === code)
|
||||||
switch (code) {
|
switch (code) {
|
||||||
// 合作伙伴
|
// 合作伙伴
|
||||||
@@ -576,7 +578,39 @@ export default {
|
|||||||
break
|
break
|
||||||
default :this.guestType = null
|
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() {
|
addContactsOk() {
|
||||||
this.$refs.selectContacts.getContactsList()
|
this.$refs.selectContacts.getContactsList()
|
||||||
|
|||||||
Reference in New Issue
Block a user