|
@@ -60,7 +60,7 @@
|
|
|
<text class="tag-chip" v-for="(t, ti) in tagList(act.tags)" :key="ti">{{ t }}</text>
|
|
<text class="tag-chip" v-for="(t, ti) in tagList(act.tags)" :key="ti">{{ t }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
<text class="card-meta" v-if="act.registrantName">报名人:{{ act.registrantName }}</text>
|
|
<text class="card-meta" v-if="act.registrantName">报名人:{{ act.registrantName }}</text>
|
|
|
- <text class="card-meta">开始 {{ formatDateTime(act.startTime) }}{{ act.endTime ? ' 结束 ' + formatDateTime(act.endTime) : '' }}</text>
|
|
|
|
|
|
|
+ <text class="card-meta">开始 {{ formatActivityTime(act.startTime) }}{{ act.endTime ? ' 结束 ' + formatActivityTime(act.endTime) : '' }}</text>
|
|
|
<text class="card-meta" v-if="act.location">📍 {{ act.location }}</text>
|
|
<text class="card-meta" v-if="act.location">📍 {{ act.location }}</text>
|
|
|
<view class="card-bottom">
|
|
<view class="card-bottom">
|
|
|
<text class="card-status" :class="'status-' + (act._cls || 'upcoming')">
|
|
<text class="card-status" :class="'status-' + (act._cls || 'upcoming')">
|
|
@@ -136,7 +136,7 @@
|
|
|
<view class="card-tags" v-if="tagList(act.tags).length">
|
|
<view class="card-tags" v-if="tagList(act.tags).length">
|
|
|
<text class="tag-chip" v-for="(t, ti) in tagList(act.tags)" :key="ti">{{ t }}</text>
|
|
<text class="tag-chip" v-for="(t, ti) in tagList(act.tags)" :key="ti">{{ t }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
- <text class="card-meta">开始 {{ formatDateTime(act.startTime) }}{{ act.endTime ? ' 结束 ' + formatDateTime(act.endTime) : '' }}</text>
|
|
|
|
|
|
|
+ <text class="card-meta">开始 {{ formatActivityTime(act.startTime) }}{{ act.endTime ? ' 结束 ' + formatActivityTime(act.endTime) : '' }}</text>
|
|
|
<text class="card-desc" v-if="act.intro || act.description">{{ act.intro || act.description }}</text>
|
|
<text class="card-desc" v-if="act.intro || act.description">{{ act.intro || act.description }}</text>
|
|
|
<text class="card-meta" v-if="act.location">📍 {{ act.location }}</text>
|
|
<text class="card-meta" v-if="act.location">📍 {{ act.location }}</text>
|
|
|
<view class="card-bottom">
|
|
<view class="card-bottom">
|
|
@@ -204,7 +204,7 @@
|
|
|
<view class="card-tags" v-if="tagList(act.tags).length">
|
|
<view class="card-tags" v-if="tagList(act.tags).length">
|
|
|
<text class="tag-chip" v-for="(t, ti) in tagList(act.tags)" :key="ti">{{ t }}</text>
|
|
<text class="tag-chip" v-for="(t, ti) in tagList(act.tags)" :key="ti">{{ t }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
- <text class="card-meta">开始 {{ formatDateTime(act.startTime) }}{{ act.endTime ? ' 结束 ' + formatDateTime(act.endTime) : '' }}</text>
|
|
|
|
|
|
|
+ <text class="card-meta">开始 {{ formatActivityTime(act.startTime) }}{{ act.endTime ? ' 结束 ' + formatActivityTime(act.endTime) : '' }}</text>
|
|
|
<text class="card-meta" v-if="act.location">📍 {{ act.location }}</text>
|
|
<text class="card-meta" v-if="act.location">📍 {{ act.location }}</text>
|
|
|
<view class="card-bottom">
|
|
<view class="card-bottom">
|
|
|
<text class="card-status status-ended">已结束</text>
|
|
<text class="card-status status-ended">已结束</text>
|
|
@@ -285,7 +285,7 @@
|
|
|
<view class="card-tags" v-if="tagList(act.tags).length">
|
|
<view class="card-tags" v-if="tagList(act.tags).length">
|
|
|
<text class="tag-chip" v-for="(t, ti) in tagList(act.tags)" :key="ti">{{ t }}</text>
|
|
<text class="tag-chip" v-for="(t, ti) in tagList(act.tags)" :key="ti">{{ t }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
- <text class="card-meta">{{ act.startTime }}</text>
|
|
|
|
|
|
|
+ <text class="card-meta">{{ formatActivityTime(act.startTime) }}</text>
|
|
|
<view class="card-bottom">
|
|
<view class="card-bottom">
|
|
|
<text class="card-status" :class="'status-' + (act.status || 'draft')">
|
|
<text class="card-status" :class="'status-' + (act.status || 'draft')">
|
|
|
{{ statusLabel(act.status) }}
|
|
{{ statusLabel(act.status) }}
|
|
@@ -826,6 +826,11 @@ export default {
|
|
|
return (price / 100).toFixed(2)
|
|
return (price / 100).toFixed(2)
|
|
|
},
|
|
},
|
|
|
formatDateTime: formatDateTime,
|
|
formatDateTime: formatDateTime,
|
|
|
|
|
+ // 活动时间展示:复用统一 formatDateTime 后裁剪秒,输出 yyyy-MM-dd HH:mm(活动到分钟即可)
|
|
|
|
|
+ formatActivityTime: function(t) {
|
|
|
|
|
+ var s = formatDateTime(t)
|
|
|
|
|
+ return s ? s.substring(0, 16) : ''
|
|
|
|
|
+ },
|
|
|
hasFee: function(act) {
|
|
hasFee: function(act) {
|
|
|
return (act.childFee > 0) || (act.childMemberFee > 0) || (act.parentFee > 0) || (act.parentMemberFee > 0)
|
|
return (act.childFee > 0) || (act.childMemberFee > 0) || (act.parentFee > 0) || (act.parentMemberFee > 0)
|
|
|
},
|
|
},
|