Przeglądaj źródła

报告详情修改

jwyu 3 lat temu
rodzic
commit
c99cadc2c8
1 zmienionych plików z 7 dodań i 10 usunięć
  1. 7 10
      pages-activity/detail.vue

+ 7 - 10
pages-activity/detail.vue

@@ -71,14 +71,14 @@
 
         <view class="btn-wrap" v-if="info.activityState === 1">
             <view
-                class="global-btn-yellow-change btn"
+                :class="[info.registerState == 1?'global-btn-disable':'global-btn-yellow-change' ,'btn']"
                 v-if="info.firstActivityTypeId === 3"
                 @click="handleSetRegister"
                 >{{
                     info.registerState == 0
                         ? "报名线下参会"
                         : "取消报名线下参会"
-                }}({{ info.isLimitPeople }}/{{ info.limitPeopleNum }})</view
+                }}({{ info.registeredNum }}/{{ info.limitPeopleNum }})</view
             >
             <view
                 :class="[
@@ -310,14 +310,12 @@ export default {
         async handleAddRemind() {
             const res = await apiActivityAddRemind({ activity_id: Number(this.info.activityId) });
             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.handleUpateRemindStatus();
             } else if (res.code === 4001) {
                 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.show = true;
@@ -356,14 +354,12 @@ export default {
         async handleAddRegister() {
             const res = await apiActivityRegister({ activity_id: Number(this.info.activityId) })
             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.handleUpdateRegister()
             } else if (res.code === 4001) {
                 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'
                 } else if (res.data.type == 'full') {
                     this.pupData.content = `<p>此活动报名人数已满,请留意下期活动</p>`
@@ -390,6 +386,7 @@ export default {
             } else {
                 this.info.registerState = 1
             }
+            this.getDetail()
             uni.$emit('activityDetailSetRegister', { id: this.info.activityId })
         }
     },