From 9da4f30b001a7f5bc42abab2e925f31a4ea2d44a Mon Sep 17 00:00:00 2001 From: huliyong <2783385703@qq.com> Date: Tue, 5 Nov 2024 23:12:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/base/navbar.vue | 17 ++++++++++++++++- components/tourGuide/selectionPopup.vue | 11 +++++++++++ pages_order/service/situation.vue | 2 +- store/store.js | 4 ++-- 4 files changed, 30 insertions(+), 4 deletions(-) diff --git a/components/base/navbar.vue b/components/base/navbar.vue index 909f33c..5bc527a 100644 --- a/components/base/navbar.vue +++ b/components/base/navbar.vue @@ -4,8 +4,14 @@ + + + @@ -72,9 +78,18 @@ }, data() { return { + length : getCurrentPages().length }; }, methods : { + toHome(){ + if(this.length != 1){ + return + } + uni.reLaunch({ + url: '/pages/index/index' + }) + } } } diff --git a/components/tourGuide/selectionPopup.vue b/components/tourGuide/selectionPopup.vue index 1662cf9..e22a3e0 100644 --- a/components/tourGuide/selectionPopup.vue +++ b/components/tourGuide/selectionPopup.vue @@ -1,6 +1,10 @@