【update】-国际研讨会报名接口增加邀请码
This commit is contained in:
@@ -172,7 +172,7 @@
|
||||
<!-- v-decorator="[ 'code',validatorRules.code]"-->
|
||||
<!-- ></a-input>-->
|
||||
<!-- </div>-->
|
||||
<invite-code v-decorator="[ 'code', validatorRules.code]" @change-value="validateCode"></invite-code>
|
||||
<invite-code v-decorator="[ 'invitationCode', validatorRules.invitationCode]" @change-value="validateCode"></invite-code>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
@@ -300,7 +300,7 @@ export default {
|
||||
rules: [{required: true, message: '请选择是否有邀请码'}],
|
||||
validateTrigger: 'change'
|
||||
},
|
||||
code: {
|
||||
invitationCode: {
|
||||
rules: [{required: true, validator: this.checkCode}],
|
||||
validateTrigger: 'change'
|
||||
},
|
||||
@@ -507,7 +507,6 @@ export default {
|
||||
if(this.meetingCostSum === '0.00' ){
|
||||
submitData.needInvoice = 0
|
||||
}
|
||||
console.log(submitData)
|
||||
let url = this.url.add
|
||||
let method = 'post'
|
||||
httpAction(url, submitData, method).then(res => {
|
||||
@@ -676,7 +675,7 @@ export default {
|
||||
this.form.validateFields(['code'],(err) => {
|
||||
if(!err){
|
||||
// 获取邀请码
|
||||
let currentCode = this.form.getFieldValue('code')
|
||||
let currentCode = this.form.getFieldValue('invitationCode')
|
||||
let code = currentCode.substring(0, currentCode.indexOf('-'))
|
||||
switch (code) {
|
||||
// 合作伙伴
|
||||
@@ -712,7 +711,7 @@ export default {
|
||||
* 校验邀请码是否正确 给出提示
|
||||
* */
|
||||
validateCode() {
|
||||
let currentCode = this.form.getFieldValue('code')
|
||||
let currentCode = this.form.getFieldValue('invitationCode')
|
||||
if(currentCode === undefined || currentCode === ''){
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user