针对微信审核要求新增游客浏览模式,用户可无需登录直接浏览应用内容,仅在使用发布、点赞、记录等需要身份的功能时才弹窗引导登录。具体修改包括: 1. 新增游客态判断工具函数与登录守卫逻辑 2. 为登录页添加游客直接进入入口 3. 为首页、酒友圈、个人页、动态页、记录页添加游客适配逻辑 4. 优化登录态失效处理逻辑,不再强制跳转登录页 5. 调整部分页面的返回逻辑适配分享直接进入场景 6. 为各页面添加游客引导UI与交互
170 lines
3.5 KiB
JSON
170 lines
3.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": ""
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/share-profile/share-profile",
|
|
"style": {
|
|
"navigationStyle": "custom",
|
|
"navigationBarTitleText": ""
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/circle/circle",
|
|
"style": {
|
|
"navigationStyle": "custom",
|
|
"navigationBarTitleText": "",
|
|
"app-plus": {
|
|
"background": "#0B0B14",
|
|
"bounceBackground": "#0B0B14",
|
|
"animationAlphaBGColor": "#0B0B14"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/circle-detail/circle-detail",
|
|
"style": {
|
|
"navigationStyle": "custom",
|
|
"navigationBarTitleText": ""
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/circle-publish/circle-publish",
|
|
"style": {
|
|
"navigationStyle": "custom",
|
|
"navigationBarTitleText": ""
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/friends/friends",
|
|
"style": {
|
|
"navigationStyle": "custom",
|
|
"navigationBarTitleText": ""
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/event-create/event-create",
|
|
"style": {
|
|
"navigationStyle": "custom",
|
|
"navigationBarTitleText": ""
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/event-detail/event-detail",
|
|
"style": {
|
|
"navigationStyle": "custom",
|
|
"navigationBarTitleText": ""
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/games/games",
|
|
"style": {
|
|
"navigationStyle": "custom",
|
|
"navigationBarTitleText": ""
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/chat-list/chat-list",
|
|
"style": {
|
|
"navigationStyle": "custom",
|
|
"navigationBarTitleText": "",
|
|
"backgroundColor": "#0B0B14",
|
|
"backgroundColorTop": "#0B0B14",
|
|
"backgroundColorBottom": "#0B0B14"
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/chat/chat",
|
|
"style": {
|
|
"navigationStyle": "custom",
|
|
"navigationBarTitleText": "",
|
|
"backgroundColor": "#0B0B14",
|
|
"backgroundColorTop": "#0B0B14",
|
|
"backgroundColorBottom": "#0B0B14"
|
|
}
|
|
},
|
|
{
|
|
"path": "pages/agreement/agreement",
|
|
"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/circle/circle",
|
|
"text": "酒友圈",
|
|
"iconPath": "static/tab-circle.png",
|
|
"selectedIconPath": "static/tab-circle-active.png"
|
|
},
|
|
{
|
|
"pagePath": "pages/profile/profile",
|
|
"text": "我的",
|
|
"iconPath": "static/tab-profile.png",
|
|
"selectedIconPath": "static/tab-profile-active.png"
|
|
}
|
|
]
|
|
},
|
|
"uniIdRouter": {}
|
|
}
|