From a6883fe607d944158f6f24e2e25f79c9adab768d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A6=E4=B9=A0=E5=BE=88=E5=B7=AE=E5=95=A6?= <17633066053@163.com> Date: Thu, 13 Oct 2022 14:27:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20:bug:=20=E4=BF=AE=E5=A4=8D=E5=9C=A8ios?= =?UTF-8?q?=E4=B8=AD=E4=BD=BF=E7=94=A8=E6=89=8B=E5=8A=BF=E5=9B=9E=E9=80=80?= =?UTF-8?q?=E4=BC=9A=E5=AF=BC=E8=87=B4=E5=9C=A8=E6=88=91=E7=9A=84=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E9=A1=B5=E9=9D=A2=E5=9B=9E=E9=80=80=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E4=B8=A2=E5=A4=B1bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/order/fillorder.vue | 6 +++--- pages/order/myOrder.vue | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/order/fillorder.vue b/pages/order/fillorder.vue index 1c8f0fe..da23637 100644 --- a/pages/order/fillorder.vue +++ b/pages/order/fillorder.vue @@ -421,7 +421,7 @@ export default { item.route == "pages/tabbar/cart/cartList" || item.route.indexOf("pages/product/goods") != -1 ) { - uni.redirectTo({ + uni.navigateTo({ url: item.route, }); } @@ -604,7 +604,7 @@ export default { }); // 如果当前价格为0跳转到订单列表 if (this.orderMessage.priceDetailDTO.billPrice == 0) { - uni.redirectTo({ + uni.navigateTo({ url: "/pages/order/myOrder?status=0", }); } else { @@ -668,7 +668,7 @@ export default { }); } if (res.data.result.skuList.length <= 0) { - uni.redirectTo({ + uni.navigateTo({ url: "/pages/order/myOrder?status=0", }); } diff --git a/pages/order/myOrder.vue b/pages/order/myOrder.vue index 2d1eb1c..f4cdfc8 100644 --- a/pages/order/myOrder.vue +++ b/pages/order/myOrder.vue @@ -311,7 +311,7 @@ export default { */ onBackPress(e) { if (e.from == "backbutton") { - uni.reLaunch({ + uni.switchTab({ url: "/pages/tabbar/user/my", }); return true; //阻止默认返回行为