fix(RankListMini): 修复跳转详情页时userType取值错误的问题
修复在跳转详情页时直接使用userType.value导致的问题,改为使用props.userParams.userType。同时添加了调试日志便于追踪userType的值。
This commit is contained in:
parent
c7c9b94e11
commit
763053ad6d
|
|
@ -158,6 +158,11 @@ function goDetail(item) {
|
||||||
|
|
||||||
let phone = props.userParams.phone || "";
|
let phone = props.userParams.phone || "";
|
||||||
let userType = props.userParams.userType || "";
|
let userType = props.userParams.userType || "";
|
||||||
|
console.log("🚀 ~ goDetail ~ userType:", userType);
|
||||||
|
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pages/detail/indexNewsInfo?id=${item.news_id}&phone=${phone}&userType=${userType}`,
|
||||||
|
});
|
||||||
|
|
||||||
// if (judgeRuntimeEnv().isWxMiniWebview) {
|
// if (judgeRuntimeEnv().isWxMiniWebview) {
|
||||||
let shareUrl =
|
let shareUrl =
|
||||||
|
|
@ -167,7 +172,7 @@ function goDetail(item) {
|
||||||
"&phone=" +
|
"&phone=" +
|
||||||
uni.getStorageSync("token") +
|
uni.getStorageSync("token") +
|
||||||
"&userType=" +
|
"&userType=" +
|
||||||
userType.value;
|
props.userParams.userType;
|
||||||
|
|
||||||
wx.miniProgram.navigateTo({
|
wx.miniProgram.navigateTo({
|
||||||
url: "/pages/webView/index?url=" + encodeURIComponent(shareUrl),
|
url: "/pages/webView/index?url=" + encodeURIComponent(shareUrl),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue