feat(attendant): 陪诊师列表展示性别

公示接口改为返回实名后,列表在从业年限前补充性别,便于用户下单前快速筛选。
This commit is contained in:
lik
2026-11-11 21:03:49 +08:00
parent d6d5cc732d
commit 6a2a5e7775
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -58,7 +58,7 @@ Page({
}
},
// 公示接口已脱敏,这里只补展示用字段,不再加工姓名
// 公示接口返回姓名,这里只补展示用字段
decorate(item) {
const name = item.name || ''
const specialties = item.specialties || []
@@ -66,6 +66,7 @@ Page({
return {
...item,
initial: name.replace(/[**]/g, '').slice(0, 1) || '陪',
sexText: { male: '男', female: '女' }[item.sex] || '',
specialties: specialties.slice(0, 3),
areaText: serviceAreas.join('、')
}