feat(ui): 移除四大TabBar主页原生navbar实现全沉浸式视觉体验
这个提交包含在:
@@ -3,6 +3,7 @@
|
||||
{
|
||||
"path": "pages/index/index",
|
||||
"style": {
|
||||
"navigationStyle": "custom",
|
||||
"navigationBarTitleText": "陪玩中心",
|
||||
"navigationBarBackgroundColor": "#0A0F1D",
|
||||
"navigationBarTextStyle": "white",
|
||||
@@ -12,6 +13,7 @@
|
||||
{
|
||||
"path": "pages/activity/list",
|
||||
"style": {
|
||||
"navigationStyle": "custom",
|
||||
"navigationBarTitleText": "组队活动大厅",
|
||||
"navigationBarBackgroundColor": "#0A0F1D",
|
||||
"navigationBarTextStyle": "white",
|
||||
@@ -57,6 +59,7 @@
|
||||
{
|
||||
"path": "pages/order/list",
|
||||
"style": {
|
||||
"navigationStyle": "custom",
|
||||
"navigationBarTitleText": "我的订单",
|
||||
"navigationBarBackgroundColor": "#0A0F1D",
|
||||
"navigationBarTextStyle": "white",
|
||||
@@ -66,6 +69,7 @@
|
||||
{
|
||||
"path": "pages/user/index",
|
||||
"style": {
|
||||
"navigationStyle": "custom",
|
||||
"navigationBarTitleText": "个人中心",
|
||||
"navigationBarBackgroundColor": "#0A0F1D",
|
||||
"navigationBarTextStyle": "white",
|
||||
|
||||
@@ -231,7 +231,7 @@ const createActivity = () => {
|
||||
.activity-container {
|
||||
min-height: 100vh;
|
||||
background-color: #0A0F1D;
|
||||
padding: 20rpx 32rpx calc(180rpx + env(safe-area-inset-bottom));
|
||||
padding: calc(24rpx + env(safe-area-inset-top, 0px)) 32rpx calc(180rpx + env(safe-area-inset-bottom));
|
||||
}
|
||||
|
||||
.tab-header {
|
||||
|
||||
@@ -236,7 +236,7 @@ const navTo = (url) => {
|
||||
}
|
||||
|
||||
.header-search {
|
||||
padding: 20rpx 32rpx;
|
||||
padding: calc(20rpx + env(safe-area-inset-top, 0px)) 32rpx 20rpx;
|
||||
background-color: #0A0F1D;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
|
||||
@@ -210,7 +210,7 @@ const rateExpert = (id) => {
|
||||
.order-list-container {
|
||||
min-height: 100vh;
|
||||
background-color: #0A0F1D;
|
||||
padding: 20rpx 32rpx calc(160rpx + env(safe-area-inset-bottom));
|
||||
padding: calc(24rpx + env(safe-area-inset-top, 0px)) 32rpx calc(160rpx + env(safe-area-inset-bottom));
|
||||
}
|
||||
|
||||
.tab-header {
|
||||
|
||||
@@ -258,7 +258,7 @@ const navTo = (url) => {
|
||||
.user-container {
|
||||
min-height: 100vh;
|
||||
background-color: #0A0F1D;
|
||||
padding: 24rpx 32rpx calc(160rpx + env(safe-area-inset-bottom));
|
||||
padding: calc(24rpx + env(safe-area-inset-top, 0px)) 32rpx calc(160rpx + env(safe-area-inset-bottom));
|
||||
}
|
||||
|
||||
.profile-card {
|
||||
|
||||
@@ -329,7 +329,37 @@ describe('ThemeManager (TDD 测试套件: 暖色系与双主题设计系统)', (
|
||||
expect(hasH5DomSupport).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
describe('9. 四大核心 TabBar 页面去掉原生 NavBar (custom) 门禁校验', () => {
|
||||
const rootDir = path.resolve(__dirname, '../../');
|
||||
const pagesJsonPath = path.join(rootDir, 'pwuniapp', 'pages.json');
|
||||
|
||||
it('pages.json 中首页、活动项目、订单中心、我的 必须全部配置 navigationStyle: custom', () => {
|
||||
const raw = fs.readFileSync(pagesJsonPath, 'utf-8');
|
||||
const pagesConfig = JSON.parse(raw);
|
||||
|
||||
const targetPaths = [
|
||||
'pages/index/index',
|
||||
'pages/activity/list',
|
||||
'pages/order/list',
|
||||
'pages/user/index'
|
||||
];
|
||||
|
||||
for (const targetPath of targetPaths) {
|
||||
const pageItem = pagesConfig.pages.find((p: any) => p.path === targetPath);
|
||||
expect(pageItem).toBeDefined();
|
||||
expect({
|
||||
page: targetPath,
|
||||
navigationStyle: pageItem.style?.navigationStyle
|
||||
}).toEqual({
|
||||
page: targetPath,
|
||||
navigationStyle: 'custom'
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户