From 8c23e765d7d1efb3a623976be7ce6a7c795df7a0 Mon Sep 17 00:00:00 2001
From: fengachen <373943794@qq.com>
Date: Fri, 22 Oct 2021 18:48:01 +0800
Subject: [PATCH] =?UTF-8?q?=E3=80=90bug=E3=80=91=E6=8A=A5=E5=90=8D?=
=?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=B2=A1=E6=9C=89id=E7=9A=84=E6=83=85?=
=?UTF-8?q?=E5=86=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/signUp/SignUpEntrance.vue | 9 +-
src/views/signUp/SignUpPage.vue | 262 ++++++++++++++--------------
2 files changed, 141 insertions(+), 130 deletions(-)
diff --git a/src/views/signUp/SignUpEntrance.vue b/src/views/signUp/SignUpEntrance.vue
index 83522e6..c8dde4a 100644
--- a/src/views/signUp/SignUpEntrance.vue
+++ b/src/views/signUp/SignUpEntrance.vue
@@ -70,7 +70,7 @@
- 立即报名
+ 立即报名
@@ -105,12 +105,15 @@ export default {
// 会议id
meetingId: '',
// 当前时间是否超过报名截止时间
- invalidationBool: false
+ invalidationBool: false,
+ // url是否有id参数
+ urlHaveIdBool:false,
}
},
created() {
// 获取会议id
let id = this.GetQueryString('id')
+ this.urlHaveIdBool = id ? true :false
this.meetingId = id
document.title = '报名入口'
if (id) {
@@ -179,7 +182,7 @@ export default {
this.holdAddress = this.currentMeetingInfo.venue + '/' + this.currentMeetingInfo.address
}
} else {
- console.log(res.message)
+ this.urlHaveIdBool = false
}
})
},
diff --git a/src/views/signUp/SignUpPage.vue b/src/views/signUp/SignUpPage.vue
index 4a2e48c..aae1c4a 100644
--- a/src/views/signUp/SignUpPage.vue
+++ b/src/views/signUp/SignUpPage.vue
@@ -89,128 +89,133 @@
报名信息
-
-
-
- 个人信息
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {e.target.value = e.target.value.replace(/[^0-9]/g,'')}"
- :maxLength='11'
- disabled
- v-decorator="['phone',validatorRules.phone]">
-
-
-
-
-
-
- 嘉宾
- 参会人
- 内部企业
-
-
-
-
-
-
- 是
- 否
-
-
-
+
+
+
+
+ 个人信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {e.target.value = e.target.value.replace(/[^0-9]/g,'')}"
+ :maxLength='11'
+ disabled
+ v-decorator="['phone',validatorRules.phone]">
+
+
+
+
+
+
+ 嘉宾
+ 参会人
+ 内部企业
+
+
+
+
+
+
+ 是
+ 否
+
+
+
-
-
-
-
- 参会人
- 内部企业
-
-
-
+
+
+
+
+ 参会人
+ 内部企业
+
+
+
-
-
- event.target.value = event.target.value.trim()"
- @blur="validateCode"
- v-decorator="[ 'code',
+
+
+ event.target.value = event.target.value.trim()"
+ @blur="validateCode"
+ v-decorator="[ 'code',
validatorRules.code]">
-
-
-
-
-
- 下一步
-
-
-
-
-
-
+
+
+
+
+
+ 下一步
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 费用合计:{{ meetingCostSum }} 元
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 费用合计:{{ meetingCostSum }} 元
+
+
+
+
+
@@ -323,9 +328,11 @@ export default {
// 邀请码错误状态
codeErrorBool: true,
// 是否是打包
- isPackBool:false,
+ isPackBool: false,
// 国际研讨会身份的控制
- identityBool:false,
+ identityBool: false,
+ // url是否有id字段 默认没有
+ urlHaveIdBool: false,
url: {
add: '/meeting/payMeetingSituation/signUp'
}
@@ -335,6 +342,7 @@ export default {
document.title = '会议报名'
// 获取会议id
let id = this.GetQueryString('id')
+ this.urlHaveIdBool = id ? true : false
this.meetingId = id
if (id) {
this.getMeetingInfo(id)
@@ -395,7 +403,7 @@ export default {
}
}
} else {
- console.log(res.message)
+ this.urlHaveIdBool = false
}
})
},
@@ -431,11 +439,11 @@ export default {
return null
},
// 是否打包 打包会议费用为0
- isPack(val){
+ isPack(val) {
this.isPackBool = val
- if(this.isPackBool){
+ if (this.isPackBool) {
this.meetingCostSum = '0.00'
- }else {
+ } else {
this.meetingCostSum = this.currentMeetingInfo.meetingCosts
}
},
@@ -462,7 +470,7 @@ export default {
this.form.validateFields((err, values) => {
if (!err) {
// 判断邀请码是否错误 需要判断会议类型 以及 是否有邀请码
- if (this.codeErrorBool && this.currentMeetingInfo.meetingType === '3' && this.inviteCodeBool ) {
+ if (this.codeErrorBool && this.currentMeetingInfo.meetingType === '3' && this.inviteCodeBool) {
this.$message.error('邀请码填写错误')
return
}
@@ -523,7 +531,7 @@ export default {
changeCompany(value) {
this.selectedCompany = value
// 选择企业清空 姓名 手机号
- this.form.resetFields(['companyContactId','phone'])
+ this.form.resetFields(['companyContactId', 'phone'])
},
/*
@@ -558,7 +566,7 @@ export default {
// 选的否 身份置空
this.identifyType = null
this.$nextTick(() => {
- if(this.$refs.formother){
+ if (this.$refs.formother) {
this.$refs.formother.isLimitBool = true
}
})