feat(withdraw): convert withdraw records modal into dedicated independent page

这个提交包含在:
xcbyy
2026-10-13 10:06:15 +08:00
父节点 cf11d5654b
当前提交 661d0d2589
共有 8 个文件被更改,包括 1907 次插入 和 229 次删除

查看文件

@@ -130,7 +130,7 @@ describe('ContentSecurityService & Compliance Architecture (TDD 微信内容安
const raw = fs.readFileSync(pagesJsonPath, 'utf-8');
const config = JSON.parse(raw);
expect(Array.isArray(config.pages)).toBe(true);
expect(config.pages.length).toBe(18);
expect(config.pages.length).toBe(20);
for (const pageItem of config.pages) {
const vueFilePath = path.join(rootDir, 'pwuniapp', `${pageItem.path}.vue`);
@@ -719,6 +719,45 @@ describe('ContentSecurityService & Compliance Architecture (TDD 微信内容安
}
});
});
describe('16. 独立专属提现审批明细与记录页面验证 (pages/user/withdraw-records.vue)', () => {
it('pages.json 必须成功注册 pages/user/withdraw-records 且物理文件必须存在', () => {
const recordsPath = path.join(rootDir, 'pwuniapp', 'pages', 'user', 'withdraw-records.vue');
expect(fs.existsSync(recordsPath)).toBe(true);
const pagesJsonPath = path.join(rootDir, 'pwuniapp', 'pages.json');
const pagesJson = fs.readFileSync(pagesJsonPath, 'utf-8');
expect(pagesJson).toContain('pages/user/withdraw-records');
expect(pagesJson).toContain('提现审批明细');
});
it('独立提现记录页面必须支持状态选项卡筛选、总览统计与数据拉取', () => {
const recordsPath = path.join(rootDir, 'pwuniapp', 'pages', 'user', 'withdraw-records.vue');
const content = fs.readFileSync(recordsPath, 'utf-8');
expect(content).toContain('tabList');
expect(content).toContain('filteredRecords');
expect(content).toContain('getUserWithdrawals');
expect(content).toContain('goToWithdraw');
});
it('提现页面必须实现对提现记录独立页面的原生导航跳转', () => {
const wdPath = path.join(rootDir, 'pwuniapp', 'pages', 'user', 'withdraw.vue');
const content = fs.readFileSync(wdPath, 'utf-8');
expect(content).toContain('/pages/user/withdraw-records');
});
it('提现记录页面代码严禁包含任何系统 Emoji 与 showModal 4 字门禁违规', () => {
const recordsPath = path.join(rootDir, 'pwuniapp', 'pages', 'user', 'withdraw-records.vue');
const content = fs.readFileSync(recordsPath, 'utf-8');
const emojiRegex = /(?:\p{Extended_Pictographic}|\p{Emoji_Presentation}|[\u2600-\u27BF])/u;
expect(emojiRegex.test(content)).toBe(false);
const modalMatches = content.matchAll(/(?:confirmText|cancelText):\s*['"]([^'"]+)['"]/g);
for (const match of modalMatches) {
const btnText = match[1];
expect(btnText.length).toBeLessThanOrEqual(4);
}
});
});
});