feat(apply): 入驻只收基本信息并新增启动页、材料后补与改服务城市

入驻表单移除身份证与证件材料(服务城市单选下拉,默认北京),只填姓名/手机/性别/城市/简介即可提交;新增 pages/launch 启动页先解析身份再跳转,无身份直接进申请页不再闪现首页;新增 pages/materials 证件材料补传页;个人资料页支持在职陪诊师修改服务城市;appId 更名为 wxapp_companion。
This commit is contained in:
lik
2026-11-10 16:34:00 +08:00
parent 5848d181a6
commit ff1b1664fa
20 changed files with 738 additions and 176 deletions
+2 -1
View File
@@ -7,7 +7,8 @@ const role = require('./utils/role.js');
// ==================== 全局页面守卫 ====================
// 无身份用户(role=none)只能停留在入驻申请页,其余页面在 onShow 时统一重定向。
// 包装全局 Page 构造器集中处理,避免在 10 个页面各写一遍、漏掉某个入口就绕过去了。
const ROLE_WHITELIST = ['pages/apply/index'];
// 启动页自行判断身份并跳转,不能在这里重定向,否则和它自己的跳转会互相抢。
const ROLE_WHITELIST = ['pages/launch/index', 'pages/apply/index'];
let redirecting = false;
function guardPage(route) {