feat(tabbar): 调整

This commit is contained in:
feige996 2025-05-28 00:51:49 +08:00
parent 6673c2e269
commit d35fabd893
6 changed files with 6 additions and 36 deletions

View File

@ -49,17 +49,11 @@ export default defineUniPages({
// iconType: 'local', // iconType: 'local',
// }, // },
{ {
pagePath: 'pages/my/index', pagePath: 'pages/mine/index',
text: '我的', text: '我的',
icon: 'iconfont icon-my', icon: 'iconfont icon-my',
iconType: 'iconfont', iconType: 'iconfont',
}, },
{
iconPath: 'static/tabbar/personal.png',
selectedIconPath: 'static/tabbar/personalHL.png',
pagePath: 'pages/mine/index',
text: '我的',
},
], ],
}, },
}) })

View File

@ -38,16 +38,10 @@
"iconType": "unocss" "iconType": "unocss"
}, },
{ {
"pagePath": "pages/my/index", "pagePath": "pages/mine/index",
"text": "我的", "text": "我的",
"icon": "iconfont icon-my", "icon": "iconfont icon-my",
"iconType": "iconfont" "iconType": "iconfont"
},
{
"iconPath": "static/tabbar/personal.png",
"selectedIconPath": "static/tabbar/personalHL.png",
"pagePath": "pages/mine/index",
"text": "我的"
} }
] ]
}, },
@ -81,6 +75,7 @@
{ {
"path": "pages/mine/index", "path": "pages/mine/index",
"type": "page", "type": "page",
"layout": "tabbar",
"style": { "style": {
"navigationBarTitleText": "我的" "navigationBarTitleText": "我的"
} }

View File

@ -1,5 +1,6 @@
<route lang="json5"> <route lang="json5">
{ {
layout: 'tabbar',
style: { style: {
navigationBarTitleText: '我的', navigationBarTitleText: '我的',
}, },

View File

@ -1,20 +0,0 @@
<route lang="json5" type="page">
{
layout: 'tabbar',
style: {
navigationBarTitleText: '我的',
},
}
</route>
<template>
<view class="pt-40 text-xl text-center text-green-500">我的页面</view>
</template>
<script lang="ts" setup>
//
</script>
<style lang="scss" scoped>
//
</style>

View File

@ -8,6 +8,7 @@ export {}
declare module 'vue' { declare module 'vue' {
export interface GlobalComponents { export interface GlobalComponents {
FgNavbar: typeof import('./../components/fg-navbar/fg-navbar.vue')['default'] FgNavbar: typeof import('./../components/fg-navbar/fg-navbar.vue')['default']
FgTabbar: typeof import('./../components/fg-tabbar/fg-tabbar.vue')['default']
PrivacyPopup: typeof import('./../components/privacy-popup/privacy-popup.vue')['default'] PrivacyPopup: typeof import('./../components/privacy-popup/privacy-popup.vue')['default']
} }
} }

View File

@ -6,7 +6,6 @@
interface NavigateToOptions { interface NavigateToOptions {
url: "/pages/index/index" | url: "/pages/index/index" |
"/pages/about/about" | "/pages/about/about" |
"/pages/my/index"|
"/pages/login/index" | "/pages/login/index" |
"/pages/mine/index" | "/pages/mine/index" |
"/pages/mine/about/index" | "/pages/mine/about/index" |
@ -16,7 +15,7 @@ interface NavigateToOptions {
interface RedirectToOptions extends NavigateToOptions {} interface RedirectToOptions extends NavigateToOptions {}
interface SwitchTabOptions { interface SwitchTabOptions {
url: "/pages/index/index" | "/pages/about/about" | "/pages/my/index"|"/pages/mine/index" url: "/pages/index/index" | "/pages/about/about" | "/pages/mine/index"
} }
type ReLaunchOptions = NavigateToOptions | SwitchTabOptions; type ReLaunchOptions = NavigateToOptions | SwitchTabOptions;