feat(event): 添加酒局报名审核功能并优化前端组件
- 新增 ApproveEvent API 接口用于审核报名用户
- 在 EventCard 组件中显示待审核状态(⏳ 待审核)
- 实现酒局发起人审核报名用户的完整流程
- 添加用户协议和隐私政策页面
- 优化 FeedCard 组件中的图片展示逻辑
- 修复连续打卡天数计算问题
- 更新 HaveADrink SDK 至 1.0.15 版本
This commit is contained in:
@@ -42,7 +42,8 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="event-action" v-else-if="statusKey === 'open' || statusKey === 'upcoming'">
|
||||
<text class="event-action-text" v-if="event.isJoined">✓ 已报名</text>
|
||||
<text class="event-action-text event-action-pending" v-if="event.isJoined && isPending">⏳ 待审核</text>
|
||||
<text class="event-action-text" v-else-if="event.isJoined">✓ 已报名</text>
|
||||
<text class="event-action-text event-action-join" v-else>报名</text>
|
||||
</view>
|
||||
</view>
|
||||
@@ -68,6 +69,10 @@ export default {
|
||||
statusLabel() {
|
||||
const map = { open: '报名中', upcoming: '待开始', ongoing: '进行中', ended: '已结束' }
|
||||
return map[this.statusKey] || '报名中'
|
||||
},
|
||||
/** 已报名但审核状态为待审核(1) */
|
||||
isPending() {
|
||||
return Number(this.event.approveStatus) === 1
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -199,6 +204,11 @@ export default {
|
||||
font-weight: $fw-bold;
|
||||
}
|
||||
|
||||
.event-action-pending {
|
||||
color: $amber;
|
||||
background: rgba(232,168,56,0.12);
|
||||
}
|
||||
|
||||
.event-manage {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
Reference in New Issue
Block a user