feat(ui): 移除四大TabBar主页原生navbar实现全沉浸式视觉体验
这个提交包含在:
@@ -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'
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户