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 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) {
|
||||
let shareUrl =
|
||||
|
|
@ -167,7 +172,7 @@ function goDetail(item) {
|
|||
"&phone=" +
|
||||
uni.getStorageSync("token") +
|
||||
"&userType=" +
|
||||
userType.value;
|
||||
props.userParams.userType;
|
||||
|
||||
wx.miniProgram.navigateTo({
|
||||
url: "/pages/webView/index?url=" + encodeURIComponent(shareUrl),
|
||||
|
|
|
|||
Loading…
Reference in New Issue