From 3a700c42a18461fb4f1e4ed90e0a6df0da00683b Mon Sep 17 00:00:00 2001
From: xcbyy <2578898740@qq.com>
Date: Sat, 10 Oct 2026 15:56:55 +0800
Subject: [PATCH] feat(activity): implement P4 member self-service leave and
ticket refund channel
---
pwuniapp/pages/activity/detail.vue | 45 +++++++++++++++++++--
pwuniapp/pages/activity/my-ticket.vue | 45 ++++++++++++++++++++-
server/src/db/mysql.ts | 5 +++
server/src/db/repository.ts | 2 +-
server/tests/content-security.spec.ts | 57 +++++++++++++++++++++++++++
5 files changed, 147 insertions(+), 7 deletions(-)
diff --git a/pwuniapp/pages/activity/detail.vue b/pwuniapp/pages/activity/detail.vue
index 0e4522e..c9bc73b 100644
--- a/pwuniapp/pages/activity/detail.vue
+++ b/pwuniapp/pages/activity/detail.vue
@@ -137,11 +137,12 @@
满员即成局
-
+
{{ p.nickname }}
+ 我的席位
出价: ¥{{ p.priceAtJoin }}
@@ -153,8 +154,13 @@
-
- {{ p.checkedIn ? '已核销到场' : '待现场核销' }}
+
+
+ {{ p.checkedIn ? '已核销到场' : '待现场核销' }}
+
+
+ 退席
+
@@ -384,7 +390,7 @@ const currentThemeKey = ref(getCurrentThemeKey());
const isHost = computed(() => {
if (!activity.value) return false;
- return Number(activity.value.creatorId) === CURRENT_USER_ID || activity.value.creatorNickname === '同城局长';
+ return Number(activity.value.creatorId) === CURRENT_USER_ID;
});
const myParticipantInfo = computed(() => {
@@ -1166,6 +1172,37 @@ const handleJoin = () => {
}
}
+ &.my-member-item {
+ background: rgba(99, 102, 241, 0.08);
+ border-radius: 12rpx;
+ padding: 12rpx 14rpx;
+ }
+
+ .my-badge {
+ font-size: 18rpx;
+ color: #6366F1;
+ background: rgba(99, 102, 241, 0.18);
+ padding: 2rpx 10rpx;
+ border-radius: 6rpx;
+ font-weight: 600;
+ border: 1px solid rgba(99, 102, 241, 0.35);
+ }
+
+ .member-status-wrap {
+ display: flex;
+ align-items: center;
+ gap: 12rpx;
+
+ .btn-micro-leave {
+ font-size: 20rpx;
+ color: #EF4444;
+ background: rgba(239, 68, 68, 0.12);
+ border: 1px solid rgba(239, 68, 68, 0.3);
+ padding: 4rpx 16rpx;
+ border-radius: 10rpx;
+ }
+ }
+
.checkin-badge {
font-size: 20rpx;
padding: 4rpx 14rpx;
diff --git a/pwuniapp/pages/activity/my-ticket.vue b/pwuniapp/pages/activity/my-ticket.vue
index 69f2e3a..0fd85e3 100644
--- a/pwuniapp/pages/activity/my-ticket.vue
+++ b/pwuniapp/pages/activity/my-ticket.vue
@@ -106,8 +106,11 @@
-
+
+
@@ -119,7 +122,7 @@