修复bug
This commit is contained in:
@@ -177,8 +177,8 @@
|
||||
取消报名
|
||||
</button>
|
||||
|
||||
<!-- 活动实况页显示添加实况按钮 -->
|
||||
<button class="action-btn add-status-btn" v-if="hasSigned && isActivityStarted && !isActivityEnded && activeTab === 'status'" @click="liveClick">添加实况</button>
|
||||
<!-- 活动实况页显示添加实况按钮(活动开始之后、结束之前显示) -->
|
||||
<button class="action-btn add-status-btn" v-if="isActivityStarted && !isActivityEndedByTime && activeTab === 'status'" @click="liveClick">添加实况</button>
|
||||
</view>
|
||||
|
||||
<!-- 报名确认模态框 -->
|
||||
@@ -257,6 +257,12 @@ const isActivityStarted = computed(() => {
|
||||
return moment().isSameOrAfter(moment(activityConent.value.startTime))
|
||||
})
|
||||
|
||||
// 判断活动是否已到结束时间
|
||||
const isActivityEndedByTime = computed(() => {
|
||||
if (!activityConent.value.endTime) return false
|
||||
return moment().isAfter(moment(activityConent.value.endTime))
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user