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>
+63 -16
View File
@@ -9,7 +9,7 @@
{
"path": "pages/index/index",
"style": {
"navigationBarTitleText": "首页"
"navigationBarTitleText": "湖南12301"
}
},
{
@@ -17,39 +17,86 @@
"style": {
"navigationBarTitleText": "登录"
}
}
],
"subPackages": [
{
"root": "packages/user",
"pages": [
{
"path": "pages/index/index",
"style": {
"navigationBarTitleText": "文旅专区"
}
},
{
"path": "pages/profile/profile",
"path": "pages/card/list",
"style": {
"navigationBarTitleText": "年卡列表"
}
},
{
"path": "pages/card/detail",
"style": {
"navigationBarTitleText": "年卡详情"
}
},
{
"path": "pages/card/buy",
"style": {
"navigationBarTitleText": "确认购买"
}
},
{
"path": "pages/card/activate",
"style": {
"navigationBarTitleText": "激活年卡"
}
},
{
"path": "pages/card/qrcode",
"style": {
"navigationBarTitleText": "入园码"
}
},
{
"path": "pages/card/bind",
"style": {
"navigationBarTitleText": "绑定年卡"
}
},
{
"path": "pages/profile/index",
"style": {
"navigationBarTitleText": "个人中心"
}
},
{
"path": "pages/logs/logs",
"style": {
"navigationBarTitleText": "日志"
}
]
}
],
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "zhy-test",
"navigationBarBackgroundColor": "#F8F8F8",
"backgroundColor": "#F8F8F8"
"navigationBarTitleText": "湖南12301",
"navigationBarBackgroundColor": "#FFFFFF",
"backgroundColor": "#F5F5F5"
},
"tabBar": {
"color": "#7A7E83",
"selectedColor": "#007AFF",
"borderStyle": "black",
"selectedColor": "#4A90D9",
"borderStyle": "white",
"backgroundColor": "#ffffff",
"list": [
{
"pagePath": "pages/index/index",
"text": "首页"
"pagePath": "packages/user/pages/index/index",
"text": "首页",
"iconPath": "static/tabbar/home.png",
"selectedIconPath": "static/tabbar/home-active.png"
},
{
"pagePath": "pages/profile/profile",
"text": "我的"
"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