修复
This commit is contained in:
1 parent
65dd61d3a7
commit
25811a4280
1 file changed
+11
@@ -152,6 +152,11 @@ const jumpByParam = async () => {
|
||||
case "merchant":
|
||||
return uni.switchTab({ url: "/pages/tabbar/individualOrder" })
|
||||
case "user":
|
||||
// 注意:case 之间不能 fallthrough;以前 canteen 未处理会掉进 doorAdmin → 智能柜
|
||||
if (launchParam === "canteen") {
|
||||
uni.setStorageSync("launchParam", launchParam)
|
||||
return uni.switchTab({ url: "/pages/tabbar/canteen" })
|
||||
}
|
||||
if (launchParam === "selfMerchant") {
|
||||
uni.setStorageSync("launchParam", launchParam)
|
||||
return uni.switchTab({ url: "/pages/tabbar/selfMerchant" })
|
||||
@@ -176,7 +181,13 @@ const jumpByParam = async () => {
|
||||
uni.setStorageSync("launchParam", launchParam)
|
||||
return uni.reLaunch({ url: "/pages/tabbar/integrated" })
|
||||
}
|
||||
if (launchParam === "cabinet") {
|
||||
uni.setStorageSync("launchParam", launchParam)
|
||||
return uni.switchTab({ url: "/pages/tabbar/cabinet" })
|
||||
}
|
||||
if (await jumpIntegratedSubPage(launchParam)) return
|
||||
uni.showToast({ title: "暂不支持的入口:" + launchParam, icon: "none", duration: 3500 })
|
||||
return
|
||||
case "doorAdmin":
|
||||
return uni.switchTab({ url: "/pages/tabbar/cabinet" })
|
||||
default:
|
||||
|
||||
Reference in new issue
Block a user