diff --git a/src/layouts/fg-tabbar/tabbarList.ts b/src/layouts/fg-tabbar/tabbarList.ts index 0e84b9a..0001a77 100644 --- a/src/layouts/fg-tabbar/tabbarList.ts +++ b/src/layouts/fg-tabbar/tabbarList.ts @@ -29,14 +29,14 @@ export const tabbarList = [ { iconPath: 'static/images/2-001.png', selectedIconPath: 'static/images/2-002.png', - pagePath: 'pages/index/home', - text: '榜单', + pagePath: 'pages/about/index', + text: '推荐', // icon: 'i-carbon-code', // // 注意 unocss 的图标需要在 页面上引入一下,或者配置到 unocss.config.ts 的 safelist 中 // iconType: 'unocss', }, { - pagePath: 'pages/about/about', + pagePath: 'pages/service/index', iconPath: 'static/images/3-001.png', selectedIconPath: 'static/images/3-002.png', text: '服务', diff --git a/src/pages.json b/src/pages.json index f590a85..82b7308 100644 --- a/src/pages.json +++ b/src/pages.json @@ -33,11 +33,11 @@ { "iconPath": "static/images/2-001.png", "selectedIconPath": "static/images/2-002.png", - "pagePath": "pages/index/home", - "text": "榜单" + "pagePath": "pages/about/index", + "text": "推荐" }, { - "pagePath": "pages/about/about", + "pagePath": "pages/service/index", "iconPath": "static/images/3-001.png", "selectedIconPath": "static/images/3-002.png", "text": "服务" @@ -61,12 +61,12 @@ } }, { - "path": "pages/about/about", + "path": "pages/about/index", "type": "page", - "layout": "tabbar", + "layout": "default", "style": { "navigationStyle": "custom", - "navigationBarTitleText": "服务" + "navigationBarTitleText": "首页" } }, { @@ -102,6 +102,15 @@ "navigationBarTitleText": "我的" } }, + { + "path": "pages/service/index", + "type": "page", + "layout": "tabbar", + "style": { + "navigationStyle": "custom", + "navigationBarTitleText": "服务" + } + }, { "path": "pages/web_view/index", "type": "page", diff --git a/src/pages/about/index.vue b/src/pages/about/index.vue new file mode 100644 index 0000000..0b3c21f --- /dev/null +++ b/src/pages/about/index.vue @@ -0,0 +1,386 @@ + + +{ + layout: 'default', + style: { + // 'custom' 表示开启自定义导航栏,默认 'default' + navigationStyle: 'custom', + navigationBarTitleText: '首页', + }, +} + + + + + + + diff --git a/src/pages/about/components/request.vue b/src/pages/service/components/request.vue similarity index 100% rename from src/pages/about/components/request.vue rename to src/pages/service/components/request.vue diff --git a/src/pages/about/components/upload.vue b/src/pages/service/components/upload.vue similarity index 100% rename from src/pages/about/components/upload.vue rename to src/pages/service/components/upload.vue diff --git a/src/pages/about/about.vue b/src/pages/service/index.vue similarity index 100% rename from src/pages/about/about.vue rename to src/pages/service/index.vue