From 0931350bf4c282cc1db146a472263ecabe6c4803 Mon Sep 17 00:00:00 2001
From: aihe <961836564@qq.com>
Date: Wed, 9 Oct 2024 15:46:21 +0800
Subject: [PATCH] uu
---
common/untool.js | 5 +-
pages/tabBar/home/home.vue | 69 ++++++++++++++--------------
pages/tabBar/order/order.vue | 88 +++++++++++++++++++-----------------
3 files changed, 85 insertions(+), 77 deletions(-)
diff --git a/common/untool.js b/common/untool.js
index 0f47b64..3e36150 100644
--- a/common/untool.js
+++ b/common/untool.js
@@ -24,8 +24,9 @@ const goto = (url, type = 1)=> {
url = url.replace(`pages/`, '')
url = `/pages/${url}`
if(tabBarUrls.filter(t=> url.indexOf(t) > -1).length > 0) {
- return uni.switchTab({
- url
+ // tabBar 使用 reLaunch切换,防止页面不刷新
+ return uni.reLaunch({
+ url
});
}
if (type == 1){
diff --git a/pages/tabBar/home/home.vue b/pages/tabBar/home/home.vue
index e0db6e6..430822a 100644
--- a/pages/tabBar/home/home.vue
+++ b/pages/tabBar/home/home.vue
@@ -37,7 +37,8 @@
@@ -83,15 +84,15 @@
-
-
-
- {{tlItem.title}}
-
+
+
+
+ {{tlItem.title}}
+
-
-
-
+
+
+
@@ -109,7 +110,7 @@