From 2895c2d5b7fc5b74a7bb3489a1d8adcf3af3de27 Mon Sep 17 00:00:00 2001
From: Zuncle <34310384@qq.com>
Date: Wed, 29 Apr 2026 17:22:05 +0800
Subject: [PATCH] =?UTF-8?q?fix(activity):=20=E5=AE=8C=E5=96=84=E7=A6=8F?=
=?UTF-8?q?=E5=88=A9=E6=B4=BB=E5=8A=A8=E5=89=8D=E5=8F=B0=E5=B1=95=E7=A4=BA?=
=?UTF-8?q?=E4=B8=8E=E5=8F=82=E4=B8=8E=E4=BD=93=E9=AA=8C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
补齐福利活动前台页面与请求接入,优化奖品展示、参与进度、中奖概览与无图占位文案。
同时修复奖品文字重叠问题,提升福利活动详情页的可读性。
---
pages-activity/activity/welfare/detail.vue | 417 +++++++++++++++++++++
pages-activity/activity/welfare/index.vue | 108 ++++++
pages.json | 76 ++--
pages/index/index.vue | 41 +-
utils/request.js | 4 +-
5 files changed, 600 insertions(+), 46 deletions(-)
create mode 100644 pages-activity/activity/welfare/detail.vue
create mode 100644 pages-activity/activity/welfare/index.vue
diff --git a/pages-activity/activity/welfare/detail.vue b/pages-activity/activity/welfare/detail.vue
new file mode 100644
index 0000000..2f93bca
--- /dev/null
+++ b/pages-activity/activity/welfare/detail.vue
@@ -0,0 +1,417 @@
+
+
+
+ 暂无活动图片
+
+
+
+ {{ detail.title }}
+ {{ typeLabel(detail.type) }}
+
+ {{ statusText(detail.status) }}
+ 开奖时间:{{ formatTime(detail.draw_time) }}
+ {{ detail.description }}
+
+
+
+
+ 我的参与进度
+ {{ progressText }}
+
+
+
+
+
+
+
+
+
+ 奖品
+ 按价格从高到低
+
+
+
+
+
+ {{ prizePlaceholderText(prize) }}
+ {{ prize.name }}
+ 参考价 ¥{{ formatAmount(prizePrice(prize)) }}
+ x{{ prize.quantity }}
+
+
+
+ 暂无奖品
+
+
+
+
+ 参与玩家
+
+ 中奖概览
+ 查看更多
+
+
+
+ 共 {{ participantCount }} 人
+
+
+
+
+
+
+ 暂无参与玩家
+
+
+
+
+ 查看往期活动
+ 浏览已结束的福利活动与中奖信息
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages-activity/activity/welfare/index.vue b/pages-activity/activity/welfare/index.vue
new file mode 100644
index 0000000..8078a7e
--- /dev/null
+++ b/pages-activity/activity/welfare/index.vue
@@ -0,0 +1,108 @@
+
+
+
+ {{ mode === 'finished' ? '往期活动' : '福利活动' }}
+ {{ mode === 'finished' ? '查看已结束活动' : '当前仅展示进行中的活动' }}
+
+
+
+ 进行中
+ 往期活动
+
+
+ 加载中...
+ {{ mode === 'finished' ? '暂无往期活动' : '暂无进行中的活动' }}
+
+
+
+
+ 暂无图片
+
+ {{ item.title }}
+
+ {{ typeLabel(item.type) }}
+
+ {{ mode === 'finished' ? '已结束' : '进行中' }}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages.json b/pages.json
index a70878e..ad5cd86 100755
--- a/pages.json
+++ b/pages.json
@@ -36,38 +36,50 @@
{
"root": "pages-activity",
"pages": [
- {
- "path": "activity/yifanshang/index",
- "style": {
- "navigationBarTitleText": "一番赏"
+ {
+ "path": "activity/yifanshang/index",
+ "style": {
+ "navigationBarTitleText": "一番赏"
+ }
+ },
+ {
+ "path": "activity/wuxianshang/index",
+ "style": {
+ "navigationBarTitleText": "无限赏"
+ }
+ },
+ {
+ "path": "activity/duiduipeng/index",
+ "style": {
+ "navigationBarTitleText": "对对碰"
+ }
+ },
+ {
+ "path": "activity/list/index",
+ "style": {
+ "navigationBarTitleText": "活动列表"
+ }
+ },
+ {
+ "path": "activity/pata/index",
+ "style": {
+ "navigationBarTitleText": "爬塔"
+ }
+ },
+ {
+ "path": "activity/welfare/index",
+ "style": {
+ "navigationBarTitleText": "福利活动"
+ }
+ },
+ {
+ "path": "activity/welfare/detail",
+ "style": {
+ "navigationBarTitleText": "活动详情"
+ }
}
- },
- {
- "path": "activity/wuxianshang/index",
- "style": {
- "navigationBarTitleText": "无限赏"
- }
- },
- {
- "path": "activity/duiduipeng/index",
- "style": {
- "navigationBarTitleText": "对对碰"
- }
- },
- {
- "path": "activity/list/index",
- "style": {
- "navigationBarTitleText": "活动列表"
- }
- },
- {
- "path": "activity/pata/index",
- "style": {
- "navigationBarTitleText": "爬塔"
- }
- }
- ]
- },
+ ]
+ },
{
"root": "pages-user",
"pages": [
@@ -289,4 +301,4 @@
"__usePrivacyCheck__": true
},
"uniIdRouter": {}
-}
\ No newline at end of file
+}
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 08ce6b5..fae0c1c 100755
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -61,12 +61,11 @@
-
-
+
- 一番赏
- 欧皇擂台
-
+ 对对碰
+ 碰一碰消除
+
@@ -80,10 +79,10 @@
-
- 对对碰
- 碰一碰消除
-
+
+ 一番赏
+ 欧皇擂台
+
@@ -92,6 +91,12 @@
+
+ 福利活动
+ 日周月福利
+
+
+
排行榜
扫雷战绩榜
@@ -774,16 +779,28 @@ export default {
background: $gradient-gold; /* 质感金渐变 */
}
-.card-match {
- background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%); /* 柔和粉 */
+.card-yifan-small {
+ background: linear-gradient(135deg, $brand-primary 0%, $brand-secondary 100%);
}
-.card-match .card-title-small { color: $accent-pink; }
+.card-yifan-small .card-title-small { color: #fff; }
+.card-yifan-small .card-subtitle-small { color: rgba(255,255,255,.85); }
+
+.card-match {
+ background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%);
+}
+.card-match .card-title-large { color: #fff; }
+.card-match .card-tag-large { color: $accent-pink; }
.card-tower {
background: linear-gradient(135deg, #FFE0CC 0%, #FFCBA4 100%); /* 品牌橙暖色 */
}
.card-tower .card-title-small { color: $brand-primary; }
+.card-welfare {
+ background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
+}
+.card-welfare .card-title-small { color: #047857; }
+
.card-more {
background: linear-gradient(135deg, $bg-secondary 0%, #E5E7EB 100%); /* 金属灰 */
}
diff --git a/utils/request.js b/utils/request.js
index 53a64bb..1fa68e4 100755
--- a/utils/request.js
+++ b/utils/request.js
@@ -1,5 +1,5 @@
-// const BASE_URL = 'http://127.0.0.1:9991'
-const BASE_URL = 'https://kdy.1024tool.vip'
+const BASE_URL = 'http://127.0.0.1:9991'
+// const BASE_URL = 'https://kdy.1024tool.vip'
let authModalShown = false
function handleAuthExpired() {