fix: 更新API基础URL和新闻详情页跳转链接参数
将API基础URL从本地测试环境切换到生产环境 修改新闻详情页跳转链接参数,使用item.id替代item.news_id并新增type参数
This commit is contained in:
parent
12310a191d
commit
90e01e8009
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue