From 90e01e8009401d5d764661c4063ed98584e76e96 Mon Sep 17 00:00:00 2001 From: "34701892@qq.com" <34701892@qq.com> Date: Wed, 14 Jan 2026 16:27:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0API=E5=9F=BA=E7=A1=80U?= =?UTF-8?q?RL=E5=92=8C=E6=96=B0=E9=97=BB=E8=AF=A6=E6=83=85=E9=A1=B5?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E9=93=BE=E6=8E=A5=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将API基础URL从本地测试环境切换到生产环境 修改新闻详情页跳转链接参数,使用item.id替代item.news_id并新增type参数 --- src/config/index.ts | 4 ++-- src/pages/sreachReq/index.vue | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/config/index.ts b/src/config/index.ts index e967188..9abcbdb 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/sreachReq/index.vue b/src/pages/sreachReq/index.vue index 89caea3..090d365 100644 --- a/src/pages/sreachReq/index.vue +++ b/src/pages/sreachReq/index.vue @@ -190,12 +190,13 @@ const handleSwiperJump = (item: any) => { let shareUrl = "https://cankao.cs.com.cn/jnh/#/pages/detail/indexNewsInfo?id=" + // "http://localhost:8881/jnh/#/pages/detail/indexNewsInfo?id=" + - item.news_id + + item.id + "&phone=" + uni.getStorageSync("token") + "&userType=" + - userParams.value.userType; - + userParams.value.userType + + "&type=" + + item.type; wx.miniProgram.navigateTo({ url: "/pages/webView/index?url=" + encodeURIComponent(shareUrl), success: (res) => {