|
|
|
@ -8,7 +8,8 @@ |
|
|
|
|
<div class="contentBox container"> |
|
|
|
|
<div class="jianliboxitem" v-for="it in peopleList" :key="it.user_id" @click="doDetail(it)"> |
|
|
|
|
<div class="jlboxtop"> |
|
|
|
|
<img class="jlboxtopimg" :src="it.avatar" alt="" /> |
|
|
|
|
<img class="jlboxtopimg" v-if="it.avatar" :src="it.avatar" alt="" /> |
|
|
|
|
<img class="jlboxtopimg" v-else src="/assets/home/defaultAva.jpg" alt="" /> |
|
|
|
|
<div class="jlboxtoptit">{{ it.name }}</div> |
|
|
|
|
<div class="jlboxtopzc">{{ it.testSkills }}</div> |
|
|
|
|
<div class="jlboxtopcon">{{ it.personalAdvantage }}</div> |
|
|
|
@ -74,7 +75,7 @@ export default { |
|
|
|
|
this.total = res.total |
|
|
|
|
this.peopleList = res.rows |
|
|
|
|
this.peopleList.forEach(it => { |
|
|
|
|
if (it.avatar.indexOf('/prod-api') == -1) { |
|
|
|
|
if (it.avatar && it.avatar.indexOf('http') == -1) { |
|
|
|
|
it.avatar = this.base + it.avatar |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|