【bug】报名页面没有id的情况

This commit is contained in:
fengachen
2021-10-22 18:48:01 +08:00
parent 076c74991f
commit 8c23e765d7
2 changed files with 141 additions and 130 deletions
+6 -3
View File
@@ -70,7 +70,7 @@
<a-row> <a-row>
<img :src="singUpQRCode" class="qr-code"/> <img :src="singUpQRCode" class="qr-code"/>
</a-row> </a-row>
<a-button type="primary" style="margin-left: 19px;" @click="toSingUpPage" v-if="!invalidationBool">立即报名 <a-button type="primary" style="margin-left: 19px;" @click="toSingUpPage" v-if="!invalidationBool && urlHaveIdBool">立即报名
</a-button> </a-button>
</section> </section>
</div> </div>
@@ -105,12 +105,15 @@ export default {
// 会议id // 会议id
meetingId: '', meetingId: '',
// 当前时间是否超过报名截止时间 // 当前时间是否超过报名截止时间
invalidationBool: false invalidationBool: false,
// url是否有id参数
urlHaveIdBool:false,
} }
}, },
created() { created() {
// 获取会议id // 获取会议id
let id = this.GetQueryString('id') let id = this.GetQueryString('id')
this.urlHaveIdBool = id ? true :false
this.meetingId = id this.meetingId = id
document.title = '报名入口' document.title = '报名入口'
if (id) { if (id) {
@@ -179,7 +182,7 @@ export default {
this.holdAddress = this.currentMeetingInfo.venue + '/' + this.currentMeetingInfo.address this.holdAddress = this.currentMeetingInfo.venue + '/' + this.currentMeetingInfo.address
} }
} else { } else {
console.log(res.message) this.urlHaveIdBool = false
} }
}) })
}, },
+12 -4
View File
@@ -89,6 +89,7 @@
<section class="main-content-title mt-10"> <section class="main-content-title mt-10">
<img src="../../assets/signUpImg/signUpInfo.png"/> 报名信息 <img src="../../assets/signUpImg/signUpInfo.png"/> 报名信息
</section> </section>
<template v-if="urlHaveIdBool">
<a-spin :spinning="confirmLoading"> <a-spin :spinning="confirmLoading">
<a-form :form="form"> <a-form :form="form">
<!--个人信息begin--> <!--个人信息begin-->
@@ -175,7 +176,8 @@
<template v-if="meetingType !== '3' "> <template v-if="meetingType !== '3' ">
<other-meeting-form ref="formother" :selected-company="selectedCompany" <other-meeting-form ref="formother" :selected-company="selectedCompany"
:meeting-cost-bool="meetingCostBool" :meeting-cost-bool="meetingCostBool"
:identify-type="identifyType" @formData="getFormData" @isPack="isPack"></other-meeting-form> :identify-type="identifyType" @formData="getFormData"
@isPack="isPack"></other-meeting-form>
</template> </template>
<!--国际研讨会参会人与内部企业的显示 默认不展示 --> <!--国际研讨会参会人与内部企业的显示 默认不展示 -->
@@ -192,11 +194,13 @@
</template> </template>
<!-- 国际研讨会身份选择嘉宾 并且是演讲嘉宾--> <!-- 国际研讨会身份选择嘉宾 并且是演讲嘉宾-->
<template v-if="identifyType === 1 && guestType === 2"> <template v-if="identifyType === 1 && guestType === 2">
<seminar-vip-form ref="seminarVipForm" @formData="getFormData" :guest-type="guestType"></seminar-vip-form> <seminar-vip-form ref="seminarVipForm" @formData="getFormData"
:guest-type="guestType"></seminar-vip-form>
</template> </template>
<!-- 国际研讨会身份选择嘉宾 并且是特邀嘉宾--> <!-- 国际研讨会身份选择嘉宾 并且是特邀嘉宾-->
<template v-if="identifyType === 1 && guestType === 3"> <template v-if="identifyType === 1 && guestType === 3">
<seminar-vip-form ref="seminarVipForm" @formData="getFormData" :guest-type="guestType"></seminar-vip-form> <seminar-vip-form ref="seminarVipForm" @formData="getFormData"
:guest-type="guestType"></seminar-vip-form>
</template> </template>
<!-- 国际研讨会身份选择嘉宾 并且是合作伙伴--> <!-- 国际研讨会身份选择嘉宾 并且是合作伙伴-->
<template v-if="identifyType === 1 && guestType === 4"> <template v-if="identifyType === 1 && guestType === 4">
@@ -211,6 +215,7 @@
</div> </div>
</a-form> </a-form>
</a-spin> </a-spin>
</template>
</div> </div>
</section> </section>
<!--内容end--> <!--内容end-->
@@ -326,6 +331,8 @@ export default {
isPackBool: false, isPackBool: false,
// 国际研讨会身份的控制 // 国际研讨会身份的控制
identityBool: false, identityBool: false,
// url是否有id字段 默认没有
urlHaveIdBool: false,
url: { url: {
add: '/meeting/payMeetingSituation/signUp' add: '/meeting/payMeetingSituation/signUp'
} }
@@ -335,6 +342,7 @@ export default {
document.title = '会议报名' document.title = '会议报名'
// 获取会议id // 获取会议id
let id = this.GetQueryString('id') let id = this.GetQueryString('id')
this.urlHaveIdBool = id ? true : false
this.meetingId = id this.meetingId = id
if (id) { if (id) {
this.getMeetingInfo(id) this.getMeetingInfo(id)
@@ -395,7 +403,7 @@ export default {
} }
} }
} else { } else {
console.log(res.message) this.urlHaveIdBool = false
} }
}) })
}, },