diff --git a/pages/escort/attendants.js b/pages/escort/attendants.js
index b6fd72e..2606b18 100644
--- a/pages/escort/attendants.js
+++ b/pages/escort/attendants.js
@@ -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('、')
}
diff --git a/pages/escort/attendants.wxml b/pages/escort/attendants.wxml
index 48da699..efcae2e 100644
--- a/pages/escort/attendants.wxml
+++ b/pages/escort/attendants.wxml
@@ -29,7 +29,7 @@
{{ item.name }}
已接 {{ item.orderCount }} 单
- 从业 {{ item.workYears }} 年{{ item.areaText ? ' · ' + item.areaText : '' }}
+ {{ item.sexText ? item.sexText + ' · ' : '' }}从业 {{ item.workYears }} 年{{ item.areaText ? ' · ' + item.areaText : '' }}
{{ tag }}