From f016da3b792cba11cfe6b1dd385240dc3bb35686 Mon Sep 17 00:00:00 2001 From: huliyong <2783385703@qq.com> Date: Thu, 17 Oct 2024 20:15:34 +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 --- App.vue | 4 ++-- components/base/tabbar.vue | 2 +- components/tourGuide/locations.vue | 8 ++++---- interceptor/interceptor.js | 29 +++++++++++++++++++++++++++++ main.js | 2 ++ pages/index/index.vue | 1 + pages_order/auth/wxUserInfo.vue | 2 +- pages_order/order/orderDetail.vue | 8 ++++---- pages_order/order/orderSubscribe.vue | 6 +++++- pages_order/service/heritagePath.vue | 2 +- store/store.js | 1 - 11 files changed, 50 insertions(+), 15 deletions(-) create mode 100644 interceptor/interceptor.js diff --git a/App.vue b/App.vue index bcacb59..e92ef80 100644 --- a/App.vue +++ b/App.vue @@ -9,8 +9,8 @@ this.$store.commit('getSpotList') setInterval(() => { - // this.$store.commit('getPosition') - }, 5000) + this.$store.commit('getPosition') + }, 20000) }, onHide: function() { } diff --git a/components/base/tabbar.vue b/components/base/tabbar.vue index 2248ec9..77680db 100644 --- a/components/base/tabbar.vue +++ b/components/base/tabbar.vue @@ -53,7 +53,7 @@ if(index == this.select){ return } - uni.redirectTo({ + uni.reLaunch({ url: item.pagePath }) }, diff --git a/components/tourGuide/locations.vue b/components/tourGuide/locations.vue index 0047159..05ce150 100644 --- a/components/tourGuide/locations.vue +++ b/components/tourGuide/locations.vue @@ -69,7 +69,7 @@ v-if="show && spotGuide.length > 0"> @@ -125,7 +125,7 @@