feat(ui): 基于10大子代理全面优化浅色暖色系视觉断层与多端无障碍体验
这个提交包含在:
@@ -231,5 +231,40 @@ describe('ThemeManager (TDD 测试套件: 暖色系与双主题设计系统)', (
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
describe('7. 浅色暖色系深度视觉与无障碍体验门禁校验', () => {
|
||||
const rootDir = path.resolve(__dirname, '../../');
|
||||
const indexVuePath = path.join(rootDir, 'pwuniapp', 'pages', 'index', 'index.vue');
|
||||
const userVuePath = path.join(rootDir, 'pwuniapp', 'pages', 'user', 'index.vue');
|
||||
const activityVuePath = path.join(rootDir, 'pwuniapp', 'pages', 'activity', 'list.vue');
|
||||
const appVuePath = path.join(rootDir, 'pwuniapp', 'App.vue');
|
||||
|
||||
it('首页在 theme-warm 下必须对金刚区卡片与大神卡片进行浅色纯白重构', () => {
|
||||
const content = fs.readFileSync(indexVuePath, 'utf-8');
|
||||
expect(content).toContain('.theme-warm');
|
||||
// 必须包含针对 grid-card 与 expert-card 的纯白背景或深文本适配
|
||||
expect(content.includes('grid-card') && content.includes('#FFFFFF')).toBe(true);
|
||||
expect(content.includes('expert-card') && content.includes('#1C1917')).toBe(true);
|
||||
});
|
||||
|
||||
it('个人中心身份横幅在 theme-warm 下必须进行浅暖微光重构', () => {
|
||||
const content = fs.readFileSync(userVuePath, 'utf-8');
|
||||
expect(content.includes('identity-banner') && content.includes('#1C1917')).toBe(true);
|
||||
});
|
||||
|
||||
it('活动列表页悬浮按钮必须包含大屏机壳边界约束', () => {
|
||||
const content = fs.readFileSync(activityVuePath, 'utf-8');
|
||||
// 必须针对大屏仿真外壳有边界控制(如 max-width 450px 居中计算或媒体查询)
|
||||
expect(content.includes('min-width: 481px') || content.includes('calc(50%')).toBe(true);
|
||||
});
|
||||
|
||||
it('App.vue 必须包含针对 uni-page-head 强制米白底和深黑标题字的强穿透规则', () => {
|
||||
const content = fs.readFileSync(appVuePath, 'utf-8');
|
||||
expect(content).toContain('uni-page-head');
|
||||
expect(content).toContain('#FDFBF7');
|
||||
expect(content).toContain('#1C1917');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户