feat(apply): 入驻只收基本信息并新增启动页、材料后补与改服务城市
入驻表单移除身份证与证件材料(服务城市单选下拉,默认北京),只填姓名/手机/性别/城市/简介即可提交;新增 pages/launch 启动页先解析身份再跳转,无身份直接进申请页不再闪现首页;新增 pages/materials 证件材料补传页;个人资料页支持在职陪诊师修改服务城市;appId 更名为 wxapp_companion。
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
// utils/city.js
|
||||
// 服务城市白名单:与 api/health/resource/services.js 的 SERVICE_AREAS 保持一致。
|
||||
// value 带「市」,用于入库与订单 hospital.province 匹配;label 仅用于展示。
|
||||
const CITY_OPTIONS = [
|
||||
{ value: '北京市', label: '北京' },
|
||||
{ value: '上海市', label: '上海' },
|
||||
{ value: '天津市', label: '天津' },
|
||||
{ value: '西安市', label: '西安' }
|
||||
]
|
||||
|
||||
const CITY_LABELS = CITY_OPTIONS.map((item) => item.label)
|
||||
|
||||
function cityIndex(value) {
|
||||
const index = CITY_OPTIONS.findIndex((item) => item.value === value)
|
||||
return index > -1 ? index : 0
|
||||
}
|
||||
|
||||
function cityLabel(value) {
|
||||
const item = CITY_OPTIONS.find((option) => option.value === value)
|
||||
return item ? item.label : (value || '')
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
CITY_OPTIONS,
|
||||
CITY_LABELS,
|
||||
cityIndex,
|
||||
cityLabel
|
||||
}
|
||||
Reference in New Issue
Block a user