|
@@ -71,14 +71,14 @@
|
|
|
|
|
|
<view class="btn-wrap" v-if="info.activityState === 1">
|
|
<view class="btn-wrap" v-if="info.activityState === 1">
|
|
<view
|
|
<view
|
|
- class="global-btn-yellow-change btn"
|
|
|
|
|
|
+ :class="[info.registerState == 1?'global-btn-disable':'global-btn-yellow-change' ,'btn']"
|
|
v-if="info.firstActivityTypeId === 3"
|
|
v-if="info.firstActivityTypeId === 3"
|
|
@click="handleSetRegister"
|
|
@click="handleSetRegister"
|
|
>{{
|
|
>{{
|
|
info.registerState == 0
|
|
info.registerState == 0
|
|
? "报名线下参会"
|
|
? "报名线下参会"
|
|
: "取消报名线下参会"
|
|
: "取消报名线下参会"
|
|
- }}({{ info.isLimitPeople }}/{{ info.limitPeopleNum }})</view
|
|
|
|
|
|
+ }}({{ info.registeredNum }}/{{ info.limitPeopleNum }})</view
|
|
>
|
|
>
|
|
<view
|
|
<view
|
|
:class="[
|
|
:class="[
|
|
@@ -310,14 +310,12 @@ export default {
|
|
async handleAddRemind() {
|
|
async handleAddRemind() {
|
|
const res = await apiActivityAddRemind({ activity_id: Number(this.info.activityId) });
|
|
const res = await apiActivityAddRemind({ activity_id: Number(this.info.activityId) });
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
- this.pupData.content = `<p style="margin-bottom:10px">设置成功,会前15分钟会为您推送微信消息提醒</p>
|
|
|
|
- <p>请关注【弘则研究】公众号,以获取微信消息提醒</p>`;
|
|
|
|
|
|
+ this.pupData.content = `<p>请关注【弘则研究】公众号,接收会前15分钟微信提醒,并及时获取活动信息变更通知</p>`;
|
|
this.pupData.show = true;
|
|
this.pupData.show = true;
|
|
this.handleUpateRemindStatus();
|
|
this.handleUpateRemindStatus();
|
|
} else if (res.code === 4001) {
|
|
} else if (res.code === 4001) {
|
|
if (res.data.type == "time") {
|
|
if (res.data.type == "time") {
|
|
- this.pupData.content = `<p style="margin-bottom:10px">会议开始前15分钟内</p>
|
|
|
|
- <p>无法设置会议提醒</p>`;
|
|
|
|
|
|
+ this.pupData.content = `<p>会议开始前15分钟内无法设置会议提醒</p>`;
|
|
this.pupData.type = "time";
|
|
this.pupData.type = "time";
|
|
}
|
|
}
|
|
this.pupData.show = true;
|
|
this.pupData.show = true;
|
|
@@ -356,14 +354,12 @@ export default {
|
|
async handleAddRegister() {
|
|
async handleAddRegister() {
|
|
const res = await apiActivityRegister({ activity_id: Number(this.info.activityId) })
|
|
const res = await apiActivityRegister({ activity_id: Number(this.info.activityId) })
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
- this.pupData.content = `<p style="margin-bottom:10px">报名成功,已加入您的活动日程</p>
|
|
|
|
- <p>想要及时获取活动时间变更通知,请关注【弘则研究】公众号</p>`
|
|
|
|
|
|
+ this.pupData.content = `<p>请关注【弘则研究】公众号,接收会前1小时微信提醒,并及时获取活动信息变更通知</p>`
|
|
this.pupData.show = true
|
|
this.pupData.show = true
|
|
this.handleUpdateRegister()
|
|
this.handleUpdateRegister()
|
|
} else if (res.code === 4001) {
|
|
} else if (res.code === 4001) {
|
|
if (res.data.type == 'time') {
|
|
if (res.data.type == 'time') {
|
|
- this.pupData.content = `<p style="margin-bottom:10px">活动开始前15分钟内</p>
|
|
|
|
- <p>无法设置会议提醒</p>`
|
|
|
|
|
|
+ this.pupData.content = `<p>活动开始前15分钟内无法设置会议提醒</p>`
|
|
this.pupData.type = 'time'
|
|
this.pupData.type = 'time'
|
|
} else if (res.data.type == 'full') {
|
|
} else if (res.data.type == 'full') {
|
|
this.pupData.content = `<p>此活动报名人数已满,请留意下期活动</p>`
|
|
this.pupData.content = `<p>此活动报名人数已满,请留意下期活动</p>`
|
|
@@ -390,6 +386,7 @@ export default {
|
|
} else {
|
|
} else {
|
|
this.info.registerState = 1
|
|
this.info.registerState = 1
|
|
}
|
|
}
|
|
|
|
+ this.getDetail()
|
|
uni.$emit('activityDetailSetRegister', { id: this.info.activityId })
|
|
uni.$emit('activityDetailSetRegister', { id: this.info.activityId })
|
|
}
|
|
}
|
|
},
|
|
},
|