feat(ui): 移除四大TabBar主页原生navbar实现全沉浸式视觉体验

这个提交包含在:
wikiboss
2026-09-16 20:46:32 +08:00
父节点 f829d6f6b5
当前提交 6f6e6229ec
共有 6 个文件被更改,包括 38 次插入 和 4 次删除

查看文件

@@ -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'
});
}
});
});
});