|
@@ -6,8 +6,8 @@
|
6
|
6
|
<div>
|
7
|
7
|
<ul class="centerLabel userList">
|
8
|
8
|
<li v-for="(item, index) in userList" :key="index" :class="{'active': item.show}">
|
9
|
|
- <span>{{`${item.firstName}${item.gender - 0 === 1 ? '先生' : '女士'}`}}</span>
|
10
|
|
- <span>欢迎光临 !</span>
|
|
9
|
+ <span>{{item.firstName}}</span>
|
|
10
|
+ <span>{{item.words}}</span>
|
11
|
11
|
</li>
|
12
|
12
|
</ul>
|
13
|
13
|
</div>
|
|
@@ -175,11 +175,10 @@ export default {
|
175
|
175
|
},
|
176
|
176
|
getPersonList () {
|
177
|
177
|
this.getPerson().then(res => {
|
178
|
|
- console.log(res)
|
179
|
178
|
if (res) {
|
180
|
179
|
this.returnUserList({
|
181
|
|
- firstName: '111',
|
182
|
|
- gender: '1',
|
|
180
|
+ firstName: (res.classId || res.classId === 1) ? '' : res.personName,
|
|
181
|
+ words: res.words.replace('{{name}}', res.personName),
|
183
|
182
|
show: false
|
184
|
183
|
})
|
185
|
184
|
}
|