【bug】报名页面 会议失效报名按钮消失 给出错误提示
This commit is contained in:
@@ -60,7 +60,8 @@
|
|||||||
</a-col>
|
</a-col>
|
||||||
<a-col :span="12" style="display: flex">
|
<a-col :span="12" style="display: flex">
|
||||||
<label>附件:</label>
|
<label>附件:</label>
|
||||||
<preview-file :file-id="currentMeetingInfo.meetingFiles" v-if="currentMeetingInfo.meetingFiles"></preview-file>
|
<preview-file :file-id="currentMeetingInfo.meetingFiles"
|
||||||
|
v-if="currentMeetingInfo.meetingFiles"></preview-file>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-row>
|
<a-row>
|
||||||
@@ -69,7 +70,8 @@
|
|||||||
<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">立即报名</a-button>
|
<a-button type="primary" style="margin-left: 19px;" @click="toSingUpPage" v-if="!invalidationBool">立即报名
|
||||||
|
</a-button>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
@@ -101,7 +103,9 @@ export default {
|
|||||||
// 召开地点
|
// 召开地点
|
||||||
holdAddress: '',
|
holdAddress: '',
|
||||||
// 会议id
|
// 会议id
|
||||||
meetingId:''
|
meetingId: '',
|
||||||
|
// 当前时间是否超过报名截止时间
|
||||||
|
invalidationBool: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -152,6 +156,14 @@ export default {
|
|||||||
getMeetInfoById({id: params}).then(res => {
|
getMeetInfoById({id: params}).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.currentMeetingInfo = res.result
|
this.currentMeetingInfo = res.result
|
||||||
|
// true超过了 false 未超过
|
||||||
|
this.invalidationBool = this.compareCurrentTime(res.result.registerDeadline)
|
||||||
|
if (this.invalidationBool) {
|
||||||
|
this.$notification.error({
|
||||||
|
message: '系统提示',
|
||||||
|
description: '当前会议超出报名时间,不可报名!'
|
||||||
|
})
|
||||||
|
}
|
||||||
// 初始化会议费用
|
// 初始化会议费用
|
||||||
if (this.currentMeetingInfo.meetingCostsVip) {
|
if (this.currentMeetingInfo.meetingCostsVip) {
|
||||||
this.meetingMoney = `普通会员(${this.currentMeetingInfo.meetingCosts}/人) 标协会员(${this.currentMeetingInfo.meetingCostsVip}/人)`
|
this.meetingMoney = `普通会员(${this.currentMeetingInfo.meetingCosts}/人) 标协会员(${this.currentMeetingInfo.meetingCostsVip}/人)`
|
||||||
@@ -172,6 +184,18 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
/*
|
/*
|
||||||
|
* 当前时间是否超过会议报名时间
|
||||||
|
* */
|
||||||
|
compareCurrentTime(time) {
|
||||||
|
let date = new Date()
|
||||||
|
let compareTime = new Date(time)
|
||||||
|
if (date.getTime() > compareTime.getTime()) {
|
||||||
|
return true
|
||||||
|
} else {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
/*
|
||||||
* 会议类型
|
* 会议类型
|
||||||
* */
|
* */
|
||||||
initMeetingType(val) {
|
initMeetingType(val) {
|
||||||
|
|||||||
Reference in New Issue
Block a user