修改跳转问题

This commit is contained in:
zhouyanli
2026-04-20 17:10:47 +08:00
parent 8af229f25b
commit c8940e5b02
9 changed files with 85 additions and 88 deletions

View File

@@ -153,10 +153,17 @@ function personalClick(){
}
// 返回上一页
const goBack = () => {
// uni.navigateBack()
uni.switchTab({
url:"/pages/index/index"
})
if(uni.getStorageSync('sourcePage') === "index"){
uni.switchTab({
url:"/pages/index/index"
})
}else if(uni.getStorageSync('sourcePage') === "serviceIndex"){
uni.switchTab({
url:"/pages/serviceIndex/serviceIndex"
})
}
uni.removeStorageSync('sourcePage')
}
// 跳转报修详情
const goDetail = (item) => {