This commit is contained in:
caolc
2023-09-12 11:04:59 +08:00
parent a60f7b1bff
commit 95be701567
2 changed files with 26 additions and 29 deletions

View File

@@ -100,19 +100,26 @@
})
interstitialAd.onError((err) => {
setTimeout(() => {
if (key == '在线') {
uni.switchTab({
url: '/pages/tabbar/home/home',
fail: (err) => {
console.log(err)
}
// url:'/BagStation/orderDetail/orderDetail'
})
} else {
uni.redirectTo({
url: '/BagAuth/pages/login/login'
})
}
uni.switchTab({
url: '/pages/tabbar/home/home',
fail: (err) => {
console.log(err)
}
// url:'/BagStation/orderDetail/orderDetail'
})
// if (key == '在线') {
// uni.switchTab({
// url: '/pages/tabbar/home/home',
// fail: (err) => {
// console.log(err)
// }
// // url:'/BagStation/orderDetail/orderDetail'
// })
// } else {
// uni.redirectTo({
// url: '/BagAuth/pages/login/login'
// })
// }
}, 2000)
console.log('onError event emit', err)
})