feat(attendant): 陪诊师列表展示性别
公示接口改为返回实名后,列表在从业年限前补充性别,便于用户下单前快速筛选。
This commit is contained in:
@@ -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('、')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user