feat: 完善对象存储上传与真实条码二维码引擎,彻底剥离保底Mock数据

这个提交包含在:
xcbyy
2026-10-09 17:18:14 +08:00
父节点 6d3076cdb8
当前提交 d0f4050cdc
共有 329 个文件被更改,包括 54416 次插入 和 926 次删除

查看文件

@@ -90,4 +90,30 @@ describe('ActivityListContent (TDD 测试套件: 活动大厅陪吃·陪唱·陪
expect(content).toMatch(/(下午茶陪喝|陪喝)/);
});
});
describe('3. 活动大厅综合搜索框功能与双主题规范门禁 (TDD)', () => {
it('页面必须包含顶部综合搜索框组件并支持关键词双向绑定', () => {
const content = fs.readFileSync(listVuePath, 'utf-8');
expect(content).toContain('header-search');
expect(content).toContain('search-input');
expect(content).toContain('searchKeyword');
});
it('搜索过滤逻辑必须同时支持标题、商圈地点、品类与局长多维度匹配', () => {
const content = fs.readFileSync(listVuePath, 'utf-8');
// 必须包含基于 searchKeyword 的模糊匹配逻辑
expect(content).toContain('matchKeyword');
expect(content).toMatch(/a\.title.*includes/);
expect(content).toMatch(/a\.location.*includes/);
expect(content).toMatch(/a\.creatorNickname.*includes/);
});
it('搜索框在 theme-warm 浅色暖阳晨曦模式下必须适配纯白背景与深色文本', () => {
const content = fs.readFileSync(listVuePath, 'utf-8');
const warmSection = content.split('.activity-container.theme-warm')[1] || '';
expect(warmSection).toContain('.header-search');
expect(warmSection).toContain('.search-box');
expect(warmSection).toContain('#FFFFFF');
});
});
});