From d21f61646ae101a90ff59572ada9b28d010fe530 Mon Sep 17 00:00:00 2001 From: Gsh <15170702455@163.com> Date: Wed, 12 Nov 2025 23:08:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=B3=BB=E7=BB=9F=E5=85=AC=E5=91=8A?= =?UTF-8?q?=E4=B8=8E=E5=B0=8A=E4=BA=AB=E9=A2=9D=E5=BA=A6=E6=98=8E=E7=BB=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Yi.Ai.Vue3/src/App.vue | 44 +- Yi.Ai.Vue3/src/api/announcement/index.ts | 31 +- Yi.Ai.Vue3/src/api/announcement/types.ts | 63 +- Yi.Ai.Vue3/src/api/user/index.ts | 108 ++ .../src/components/ModelSelect/index.vue | 3 + .../SystemAnnouncementDialog/index.vue | 1202 +++++++++++++---- .../components/PremiumPackageInfo.vue | 590 ++++++++ .../components/PremiumService.vue | 509 +------ .../components/PremiumUsageList.vue | 948 +++++++++++++ .../Header/components/AnnouncementBtn.vue | 43 +- Yi.Ai.Vue3/src/stores/modules/announcement.ts | 73 +- Yi.Ai.Vue3/types/components.d.ts | 7 + Yi.Ai.Vue3/系统公告API接口文档.md | 232 ---- Yi.Ai.Vue3/系统公告功能使用说明.md | 337 ----- Yi.Ai.Vue3/系统公告功能更新日志.md | 177 --- 15 files changed, 2739 insertions(+), 1628 deletions(-) create mode 100644 Yi.Ai.Vue3/src/components/userPersonalCenter/components/PremiumPackageInfo.vue create mode 100644 Yi.Ai.Vue3/src/components/userPersonalCenter/components/PremiumUsageList.vue delete mode 100644 Yi.Ai.Vue3/系统公告API接口文档.md delete mode 100644 Yi.Ai.Vue3/系统公告功能使用说明.md delete mode 100644 Yi.Ai.Vue3/系统公告功能更新日志.md diff --git a/Yi.Ai.Vue3/src/App.vue b/Yi.Ai.Vue3/src/App.vue index e1bab0c5..ac1b0a53 100644 --- a/Yi.Ai.Vue3/src/App.vue +++ b/Yi.Ai.Vue3/src/App.vue @@ -1,28 +1,58 @@ @@ -86,7 +80,7 @@ function formatTime(time: string) { v-model="isDialogVisible" title="系统公告" :width="dialogWidth" - :close-on-click-modal="false" + :close-on-click-modal="true" class="announcement-dialog" >
@@ -95,61 +89,71 @@ function formatTime(time: string) {
- - - - - - - - -
+
-
-

{{ activity.title }}

- - 进行中 - - - 已结束 - + +
+ + +
+ + 进行中 + + + 已结束 + +
-

{{ activity.description }}

-
+
@@ -158,70 +162,45 @@ function formatTime(time: string) {
- -
-

最新公告

-
-
-

- - - - {{ announcement.title }} -

- {{ formatTime(announcement.publishTime) }} -
-

{{ announcement.content.substring(0, 100) }}...

- - 查看详情 - -
-
- - -
-

历史公告

+ +
-
-

{{ announcement.title }}

-

{{ announcement.content.substring(0, 80) }}...

- - 查看详情 - +
+
+

+ {{ announcement.title }} +

+
+ + +
+

+ {{ line }} +

+
+
- +
diff --git a/Yi.Ai.Vue3/src/components/userPersonalCenter/components/PremiumPackageInfo.vue b/Yi.Ai.Vue3/src/components/userPersonalCenter/components/PremiumPackageInfo.vue new file mode 100644 index 00000000..5dff94eb --- /dev/null +++ b/Yi.Ai.Vue3/src/components/userPersonalCenter/components/PremiumPackageInfo.vue @@ -0,0 +1,590 @@ + + + + + diff --git a/Yi.Ai.Vue3/src/components/userPersonalCenter/components/PremiumService.vue b/Yi.Ai.Vue3/src/components/userPersonalCenter/components/PremiumService.vue index 7032219d..70828b77 100644 --- a/Yi.Ai.Vue3/src/components/userPersonalCenter/components/PremiumService.vue +++ b/Yi.Ai.Vue3/src/components/userPersonalCenter/components/PremiumService.vue @@ -1,7 +1,7 @@ - diff --git a/Yi.Ai.Vue3/src/components/userPersonalCenter/components/PremiumUsageList.vue b/Yi.Ai.Vue3/src/components/userPersonalCenter/components/PremiumUsageList.vue new file mode 100644 index 00000000..f3b21e3a --- /dev/null +++ b/Yi.Ai.Vue3/src/components/userPersonalCenter/components/PremiumUsageList.vue @@ -0,0 +1,948 @@ + + + + + diff --git a/Yi.Ai.Vue3/src/layouts/components/Header/components/AnnouncementBtn.vue b/Yi.Ai.Vue3/src/layouts/components/Header/components/AnnouncementBtn.vue index 5502fddc..37ae05a7 100644 --- a/Yi.Ai.Vue3/src/layouts/components/Header/components/AnnouncementBtn.vue +++ b/Yi.Ai.Vue3/src/layouts/components/Header/components/AnnouncementBtn.vue @@ -1,30 +1,33 @@