From cf85c1e27c1ae6829c264b300a4f6d496eed37c4 Mon Sep 17 00:00:00 2001 From: wanganxp Date: Sat, 3 Aug 2024 04:06:10 +0800 Subject: [PATCH] =?UTF-8?q?tabbar=E7=9A=84=20=E5=9F=BA=E7=A1=80=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=20=E6=94=B9=E5=90=8D=E4=B8=BA=20=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=EF=BC=9B=E5=AE=BD=E5=B1=8F=E6=A8=A1=E6=9D=BF=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E5=8F=98=E4=B8=BAslider100?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 2 +- windows/top-window.uvue | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/pages.json b/pages.json index 42855bfa..c5123d4b 100644 --- a/pages.json +++ b/pages.json @@ -1814,7 +1814,7 @@ "pagePath": "pages/tabBar/component", "iconPath": "@tabBarComponentIconPath", "selectedIconPath": "@tabBarComponentSelectedIconPath", - "text": "内置组件" + "text": "组件" }, { "pagePath": "pages/tabBar/API", diff --git a/windows/top-window.uvue b/windows/top-window.uvue index f34492a5..b892c77a 100644 --- a/windows/top-window.uvue +++ b/windows/top-window.uvue @@ -2,8 +2,8 @@ - - hello uni-app + + hello uni-app x type IndexPageItem = { - tabBar : string; - index : string; + tabBar : string.PageURIString; + indexPageUrl : string.PageURIString; } type OnTabItemTapEvent = { pagePath : string; @@ -33,16 +33,16 @@ current: 0, indexPage: [{ tabBar: '/pages/tabBar/component', - index: '/pages/component/global-properties/global-properties' + indexPageUrl: '/pages/component/global-properties/global-properties' }, { tabBar: '/pages/tabBar/API', - index: '/pages/API/get-app/get-app' + indexPageUrl: '/pages/API/get-app/get-app' }, { tabBar: '/pages/tabBar/CSS', - index: '/pages/CSS/layout/width' + indexPageUrl: '/pages/CSS/layout/width' }, { tabBar: '/pages/tabBar/template', - index: '/pages/template/long-list/long-list' + indexPageUrl: '/pages/template/slider-100/slider-100' }] as IndexPageItem[] } }, @@ -69,7 +69,7 @@ return } uni.redirectTo({ - url: indexPageItem.index + url: indexPageItem.indexPageUrl }) return } else { @@ -86,7 +86,7 @@ for (const item of this.indexPage) { if (activeTabBar === item.tabBar) { uni.redirectTo({ - url: item.index + url: item.indexPageUrl }) } } -- GitLab