From 31ade9908abb0719882fac1c4eab21cb36e6eae7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=8E=AB=E5=94=90=E5=B0=BC?= Date: Thu, 21 Aug 2025 19:32:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E6=8A=95=E7=A5=A8?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=EF=BC=8C=E8=B0=83=E6=95=B4API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/v2/all.api.js | 6 +- common/styles/app.base.scss | 7 +- components/article-vote/article-vote.vue | 275 ++++++++++++++------- components/vote-card/vote-card.vue | 43 ++-- pages/index/index.vue | 2 +- pagesA/article-detail/article-detail.vue | 49 ++-- pagesA/vote-detail/vote-detail.vue | 300 ++++++++++++++++------- pagesA/votes/votes.vue | 19 +- 8 files changed, 474 insertions(+), 227 deletions(-) diff --git a/api/v2/all.api.js b/api/v2/all.api.js index 8707f54..ad15573 100644 --- a/api/v2/all.api.js +++ b/api/v2/all.api.js @@ -252,11 +252,7 @@ export default { * 获取投票列表 */ getVoteList: (params) => { - return HttpHandler.Get(`/apis/console.api.vote.kunkunyu.com/v1alpha1/votes`, params, { - custom: { - personalToken: getPersonalToken() - } - }) + return HttpHandler.Get(`/apis/api.vote.kunkunyu.com/v1alpha1/votes`, params) }, /** * 获取投票详情 diff --git a/common/styles/app.base.scss b/common/styles/app.base.scss index b90fe74..ffcdeae 100644 --- a/common/styles/app.base.scss +++ b/common/styles/app.base.scss @@ -340,5 +340,10 @@ $spacing-sizes: ( } .justify-center { - justify-content: center; + justify-content: center; } + +.text-break { + overflow-wrap: break-word; + word-break: break-all; +} \ No newline at end of file diff --git a/components/article-vote/article-vote.vue b/components/article-vote/article-vote.vue index e6d97e3..48cab13 100644 --- a/components/article-vote/article-vote.vue +++ b/components/article-vote/article-vote.vue @@ -5,25 +5,34 @@