From d3b038c36301f8e09c5fe07dcede215001c5be00 Mon Sep 17 00:00:00 2001 From: yanzai Date: Thu, 24 Oct 2024 22:37:00 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E9=A1=B5=E7=82=B9=E5=87=BB?= =?UTF-8?q?=20=E8=BF=94=E5=9B=9E=EF=BC=8C=E7=9B=B4=E6=8E=A5=E5=88=B0?= =?UTF-8?q?=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- h5/pages/main/order/order.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/h5/pages/main/order/order.vue b/h5/pages/main/order/order.vue index dd9b71a..25ff8c6 100644 --- a/h5/pages/main/order/order.vue +++ b/h5/pages/main/order/order.vue @@ -16,7 +16,7 @@ import DraggableButton from "@/pages/components/goHome.vue"; $response } from '@/api' import { - onShow,onLoad + onShow,onLoad,onBackPress } from '@dcloudio/uni-app' import OrderComponent from './src/order.vue' import { @@ -107,6 +107,13 @@ import DraggableButton from "@/pages/components/goHome.vue"; getOrderList() } }) + onBackPress((options)=> { + console.log(options) + uni.reLaunch({ + url: '/pages/main/index/index' + }); + return true; + })