- 添加日夜主题CSS变量定义,支持琥珀夜光和暖白琥珀两种风格 - 实现主题切换逻辑,根据时间自动切换白天(light)和夜间(dark)主题 - 在App.vue中集成主题初始化和token恢复功能 - 更新全局样式类应用主题颜色变量,包括卡片、文本、边框等 - 创建主题混入(mixin)供各页面使用,确保主题同步更新 - 实现导航栏和TabBar主题动态切换,提升用户体验 - 添加API服务层封装HaveADrink SDK,统一处理认证和请求 - 优化DrinkCard组件显示饮酒感受信息,丰富打卡记录展示 - 更新项目依赖配置,集成新的API客户端库
76 lines
1.5 KiB
JSON
76 lines
1.5 KiB
JSON
{
|
|
"pages": [
|
|
{
|
|
"path": "pages/index/index",
|
|
"style": {
|
|
"navigationStyle": "custom",
|
|
"navigationBarTitleText": ""
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/profile/profile",
|
|
"style": {
|
|
"navigationStyle": "custom",
|
|
"navigationBarTitleText": ""
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/onboarding/onboarding",
|
|
"style": {
|
|
"navigationStyle": "custom",
|
|
"navigationBarTitleText": ""
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/login/login",
|
|
"style": {
|
|
"navigationStyle": "custom",
|
|
"navigationBarTitleText": ""
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/record/record",
|
|
"style": {
|
|
"navigationStyle": "custom",
|
|
"navigationBarTitleText": ""
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/card/card",
|
|
"style": {
|
|
"navigationStyle": "custom",
|
|
"navigationBarTitleText": ""
|
|
}
|
|
}
|
|
],
|
|
"globalStyle": {
|
|
"navigationBarTextStyle": "white",
|
|
"navigationBarTitleText": "喝了么",
|
|
"navigationBarBackgroundColor": "#0B0B14",
|
|
"backgroundColor": "#0B0B14",
|
|
"backgroundColorTop": "#0B0B14",
|
|
"backgroundColorBottom": "#0B0B14"
|
|
},
|
|
"tabBar": {
|
|
"color": "#9494AC",
|
|
"selectedColor": "#E8A838",
|
|
"backgroundColor": "#151520",
|
|
"borderStyle": "black",
|
|
"list": [
|
|
{
|
|
"pagePath": "pages/index/index",
|
|
"text": "首页",
|
|
"iconPath": "static/tab-home.png",
|
|
"selectedIconPath": "static/tab-home-active.png"
|
|
},
|
|
{
|
|
"pagePath": "pages/profile/profile",
|
|
"text": "我的",
|
|
"iconPath": "static/tab-profile.png",
|
|
"selectedIconPath": "static/tab-profile-active.png"
|
|
}
|
|
]
|
|
},
|
|
"uniIdRouter": {}
|
|
}
|