From fbcce419f272d832f0a51d8bdeb1f5e8c9d9f16b Mon Sep 17 00:00:00 2001 From: "34701892@qq.com" <34701892@qq.com> Date: Mon, 22 Dec 2025 15:35:47 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=AF=84=E8=AE=BA=E7=BB=84=E4=BB=B6):=20?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=AF=84=E8=AE=BA=E7=BB=84=E4=BB=B6=E4=BA=A4?= =?UTF-8?q?=E4=BA=92=E5=B9=B6=E8=B0=83=E6=95=B4API=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除点赞和分享功能,保留收藏功能并居中显示 在收藏请求中添加token参数 修改API基础URL为本地测试环境 --- src/components/comment/indexMini.vue | 15 +++++++-------- src/config/index.ts | 4 ++-- src/pages/detail/indexNewsInfo.vue | 1 + 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/components/comment/indexMini.vue b/src/components/comment/indexMini.vue index ec563e8..be02299 100644 --- a/src/components/comment/indexMini.vue +++ b/src/components/comment/indexMini.vue @@ -1,7 +1,7 @@ @@ -117,6 +115,7 @@ function doShare() { .comment-count { display: flex; width: 100vw; + justify-content: center; .count { display: flex; diff --git a/src/config/index.ts b/src/config/index.ts index 9abcbdb..e967188 100644 --- a/src/config/index.ts +++ b/src/config/index.ts @@ -1,7 +1,7 @@ // const baseUrl = "http://192.168.31.25:8060/api"; -// export const baseUrl = "http://127.0.0.1:8040/apih5"; +export const baseUrl = "http://127.0.0.1:8040/apih5"; // export const baseUrl = "http://123.60.153.169:8042/apih5"; -export const baseUrl = "https://cankao.cs.com.cn/mini"; +// export const baseUrl = "https://cankao.cs.com.cn/mini"; export const baseUrlDataV = "https://cankao.cs.com.cn/zzck_datav"; // export const baseUrlDataV = "http://123.60.153.169:9995/zzck_datav"; diff --git a/src/pages/detail/indexNewsInfo.vue b/src/pages/detail/indexNewsInfo.vue index d4a9c43..8b8ef1a 100644 --- a/src/pages/detail/indexNewsInfo.vue +++ b/src/pages/detail/indexNewsInfo.vue @@ -178,6 +178,7 @@ const handleClickStar = async () => { const res = await fetchArticleFavorate({ id: data.value.id, favFlag: data.value.isFav, + phone: uni.getStorageSync("token"), }); if (res.code === 200) { data.value.isFav = data.value.isFav ? 0 : 1;