feat: 重写路由配置,添加分包和 TabBar + 共享组件

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
jacobxu666
2026-06-14 17:26:47 +08:00
co-authored by Claude Opus 4.8
parent c921fd527b
commit 37be873c3a
13 changed files with 125 additions and 54 deletions
@@ -0,0 +1,3 @@
<template>
<view><text>页面占位 - 后续任务实现</text></view>
</template>
+3
View File
@@ -0,0 +1,3 @@
<template>
<view><text>页面占位 - 后续任务实现</text></view>
</template>
+3
View File
@@ -0,0 +1,3 @@
<template>
<view><text>页面占位 - 后续任务实现</text></view>
</template>
+3
View File
@@ -0,0 +1,3 @@
<template>
<view><text>页面占位 - 后续任务实现</text></view>
</template>
+3
View File
@@ -0,0 +1,3 @@
<template>
<view><text>页面占位 - 后续任务实现</text></view>
</template>
+3
View File
@@ -0,0 +1,3 @@
<template>
<view><text>页面占位 - 后续任务实现</text></view>
</template>
+3
View File
@@ -0,0 +1,3 @@
<template>
<view><text>页面占位 - 后续任务实现</text></view>
</template>
@@ -0,0 +1,3 @@
<template>
<view><text>页面占位 - 后续任务实现</text></view>
</template>
+101 -54
View File
@@ -1,56 +1,103 @@
{ {
"easycom": { "easycom": {
"autoscan": true, "autoscan": true,
"custom": { "custom": {
"^uni-(.*)": "@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue" "^uni-(.*)": "@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"
} }
}, },
"pages": [ "pages": [
{ {
"path": "pages/index/index", "path": "pages/index/index",
"style": { "style": {
"navigationBarTitleText": "首页" "navigationBarTitleText": "湖南12301"
} }
}, },
{ {
"path": "pages/login/login", "path": "pages/login/login",
"style": { "style": {
"navigationBarTitleText": "登录" "navigationBarTitleText": "登录"
} }
}, }
{ ],
"path": "pages/profile/profile", "subPackages": [
"style": { {
"navigationBarTitleText": "个人中心" "root": "packages/user",
} "pages": [
}, {
{ "path": "pages/index/index",
"path": "pages/logs/logs", "style": {
"style": { "navigationBarTitleText": "文旅专区"
"navigationBarTitleText": "日志" }
} },
} {
], "path": "pages/card/list",
"globalStyle": { "style": {
"navigationBarTextStyle": "black", "navigationBarTitleText": "年卡列表"
"navigationBarTitleText": "zhy-test", }
"navigationBarBackgroundColor": "#F8F8F8", },
"backgroundColor": "#F8F8F8" {
}, "path": "pages/card/detail",
"tabBar": { "style": {
"color": "#7A7E83", "navigationBarTitleText": "年卡详情"
"selectedColor": "#007AFF", }
"borderStyle": "black", },
"backgroundColor": "#ffffff", {
"list": [ "path": "pages/card/buy",
{ "style": {
"pagePath": "pages/index/index", "navigationBarTitleText": "确认购买"
"text": "首页" }
}, },
{ {
"pagePath": "pages/profile/profile", "path": "pages/card/activate",
"text": "我的" "style": {
} "navigationBarTitleText": "激活年卡"
] }
} },
{
"path": "pages/card/qrcode",
"style": {
"navigationBarTitleText": "入园码"
}
},
{
"path": "pages/card/bind",
"style": {
"navigationBarTitleText": "绑定年卡"
}
},
{
"path": "pages/profile/index",
"style": {
"navigationBarTitleText": "个人中心"
}
}
]
}
],
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "湖南12301",
"navigationBarBackgroundColor": "#FFFFFF",
"backgroundColor": "#F5F5F5"
},
"tabBar": {
"color": "#7A7E83",
"selectedColor": "#4A90D9",
"borderStyle": "white",
"backgroundColor": "#ffffff",
"list": [
{
"pagePath": "packages/user/pages/index/index",
"text": "首页",
"iconPath": "static/tabbar/home.png",
"selectedIconPath": "static/tabbar/home-active.png"
},
{
"pagePath": "packages/user/pages/profile/index",
"text": "我的",
"iconPath": "static/tabbar/profile.png",
"selectedIconPath": "static/tabbar/profile-active.png"
}
]
}
} }
Binary file not shown.

After

Width:  |  Height:  |  Size: 67 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 B