From c7c9b94e11cafd3b848236ba4b42b95b29953d02 Mon Sep 17 00:00:00 2001 From: "34701892@qq.com" <34701892@qq.com> Date: Mon, 5 Jan 2026 18:00:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=E7=94=9F=E4=BA=A7?= =?UTF-8?q?=E7=8E=AF=E5=A2=83API=E5=9C=B0=E5=9D=80=E5=B9=B6=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E6=96=B0=E9=97=BB=E6=9D=A5=E6=BA=90=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将生产环境API地址从测试服务器切换到正式服务器 - 修改新闻来源显示逻辑,国内新闻统一显示"中国证券报" - 移除排行榜中的排名图标显示 - 修复分享链接地址为正式环境地址 --- .env.production | 4 ++-- src/components/RankListMini.vue | 10 ++++------ src/components/article/indexNewsInfo.vue | 4 ++-- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.env.production b/.env.production index de01dda..8ff2d92 100644 --- a/.env.production +++ b/.env.production @@ -3,8 +3,8 @@ ENV = production # 线上环境接口地址 # VITE_API_URL = https://cankao.cs.com.cn/mini -VITE_API_URL = http://123.60.153.169:8040/apih5 -# VITE_API_URL = https://cankao.cs.com.cn/apih5 +# VITE_API_URL = http://123.60.153.169:8040/apih5 +VITE_API_URL = https://cankao.cs.com.cn/apih5 # VITE_API_URL = http://123.60.79.143:8041/apih5 diff --git a/src/components/RankListMini.vue b/src/components/RankListMini.vue index b4734de..bfaf663 100644 --- a/src/components/RankListMini.vue +++ b/src/components/RankListMini.vue @@ -3,7 +3,7 @@ - + @@ -161,16 +161,14 @@ function goDetail(item) { // if (judgeRuntimeEnv().isWxMiniWebview) { let shareUrl = - // "https://cankao.cs.com.cn/jnh/#/pages/detail/indexNewsInfo?id=" + - "http://localhost:8881/jnh/#/pages/detail/indexNewsInfo?id=" + + "https://cankao.cs.com.cn/jnh/#/pages/detail/indexNewsInfo?id=" + + // "http://localhost:8881/jnh/#/pages/detail/indexNewsInfo?id=" + item.news_id + "&phone=" + uni.getStorageSync("token") + "&userType=" + userType.value; - alert(userType.value); - wx.miniProgram.navigateTo({ url: "/pages/webView/index?url=" + encodeURIComponent(shareUrl), success: (res) => { diff --git a/src/components/article/indexNewsInfo.vue b/src/components/article/indexNewsInfo.vue index 240d26a..2a53b01 100644 --- a/src/components/article/indexNewsInfo.vue +++ b/src/components/article/indexNewsInfo.vue @@ -6,9 +6,9 @@ - + 来源: - {{ props.data.tag }} + {{ isDomestic ? "中国证券报" : props.data.tag }}