feat(expert): adapt expert detail page to dual-theme system with theme-warm support

这个提交包含在:
xcbyy
2026-10-13 16:08:48 +08:00
父节点 1853e653fb
当前提交 859b224d65
共有 2 个文件被更改,包括 332 次插入 和 2 次删除

查看文件

@@ -1051,6 +1051,16 @@ describe('ContentSecurityService & Compliance Architecture (TDD 微信内容安
expect(content).toContain('syncInitialPostStates');
});
it('大神主页必须接入全局双主题联动并在暖阳晨曦模式下适配 theme-warm', () => {
const expertDetailPath = path.join(rootDir, 'pwuniapp', 'pages', 'expert', 'detail.vue');
const content = fs.readFileSync(expertDetailPath, 'utf-8');
expect(content).toContain("theme-warm': currentThemeKey === 'warm'");
expect(content).toContain('getCurrentThemeKey');
expect(content).toContain('applyThemeToNativeUI');
expect(content).toContain('theme-change');
expect(content).toContain('.expert-detail-container.theme-warm');
});
it('所有状态持久化修复代码与测试严禁包含任何系统 Emoji 违规字符', () => {
const actDetailPath = path.join(rootDir, 'pwuniapp', 'pages', 'activity', 'detail.vue');
const ticketPath = path.join(rootDir, 'pwuniapp', 'pages', 'activity', 'my-ticket.vue');