feat(withdraw): convert withdraw records modal into dedicated independent page
这个提交包含在:
@@ -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);
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户