fix: 🐛 修复在ios中使用手势回退会导致在我的订单页面回退按钮丢失bug

master
学习很差啦 2022-10-13 14:27:34 +08:00
parent fc8123c194
commit a6883fe607
2 changed files with 4 additions and 4 deletions

View File

@ -421,7 +421,7 @@ export default {
item.route == "pages/tabbar/cart/cartList" || item.route == "pages/tabbar/cart/cartList" ||
item.route.indexOf("pages/product/goods") != -1 item.route.indexOf("pages/product/goods") != -1
) { ) {
uni.redirectTo({ uni.navigateTo({
url: item.route, url: item.route,
}); });
} }
@ -604,7 +604,7 @@ export default {
}); });
// 0 // 0
if (this.orderMessage.priceDetailDTO.billPrice == 0) { if (this.orderMessage.priceDetailDTO.billPrice == 0) {
uni.redirectTo({ uni.navigateTo({
url: "/pages/order/myOrder?status=0", url: "/pages/order/myOrder?status=0",
}); });
} else { } else {
@ -668,7 +668,7 @@ export default {
}); });
} }
if (res.data.result.skuList.length <= 0) { if (res.data.result.skuList.length <= 0) {
uni.redirectTo({ uni.navigateTo({
url: "/pages/order/myOrder?status=0", url: "/pages/order/myOrder?status=0",
}); });
} }

View File

@ -311,7 +311,7 @@ export default {
*/ */
onBackPress(e) { onBackPress(e) {
if (e.from == "backbutton") { if (e.from == "backbutton") {
uni.reLaunch({ uni.switchTab({
url: "/pages/tabbar/user/my", url: "/pages/tabbar/user/my",
}); });
return true; // return true; //