第三方app跳转

This commit is contained in:
weiwei committed 2025-05-20 17:05:13 +08:00
1 parent 0088eefba5
commit 9b4614a5cc
1 file changed
+8 -3
+8 -3
View File
@@ -153,9 +153,6 @@ export default {
case "coopMerchant":
uni.switchTab({ url: "/pages/tabbar/coopMerchant" })
break
case "thirdApp":
uni.navigateTo({ url: "/pages/thirdApp/thirdAppList" })
break
default:
break
}
@@ -163,6 +160,10 @@ export default {
// 诗画环境
const userRole = uni.getStorageSync("userRole")
const launchParam = getLaunchParam()
if (launchParam == "thirdApp") {
uni.navigateTo({ url: "/pages/thirdApp/thirdAppList" })
return
}
if (launchParam) {
switch (userRole) {
case "merchant":
@@ -206,6 +207,10 @@ export default {
} else if (appInfo == "sh") {
// 是诗画环境
const userRole = uni.getStorageSync("userRole")
if (launchParam == "thirdApp") {
uni.navigateTo({ url: "/pages/thirdApp/thirdApp" })
return
}
if (launchParam) {
switch (userRole) {
case "user":