refactor(auth): simplify login page by removing redundant profile form and focusing on one-click auth

这个提交包含在:
xcbyy
2026-10-12 09:02:27 +08:00
父节点 fc2abe2ca6
当前提交 f899829000
共有 2 个文件被更改,包括 13 次插入 和 247 次删除

查看文件

@@ -453,18 +453,18 @@ describe('ContentSecurityService & Compliance Architecture (TDD 微信内容安
expect(pagesJson).toContain('账号登录与注册');
});
it('登录页面必须符合微信官方头像昵称与手机号快捷授权标准', () => {
it('登录页面必须符合微信官方手机号快捷授权与极简合规标准', () => {
const loginPath = path.join(rootDir, 'pwuniapp', 'pages', 'auth', 'login.vue');
const content = fs.readFileSync(loginPath, 'utf-8');
expect(content).toContain('open-type="chooseAvatar"');
expect(content).toContain('@chooseavatar="onChooseAvatar"');
expect(content).toContain('type="nickname"');
expect(content).toContain('open-type="getPhoneNumber"');
expect(content).toContain('@getphonenumber="handleGetPhoneNumber"');
expect(content).toContain('一键授权快捷登录');
expect(content).toContain('DEMO_ACCOUNTS');
expect(content).toContain('用户服务协议');
expect(content).toContain('隐私保护指引');
// 验证已彻底移除登录大门前强制填写的头像昵称卡片,保障成熟商业极速登录体验
expect(content).not.toContain('open-type="chooseAvatar"');
expect(content).not.toContain('type="nickname"');
});
it('登录注册页面代码严禁包含任何系统 Emoji', () => {