浏览云员工头像

main
lijingyu007 7 months ago
parent 46e5444eeb
commit de85ebe614
  1. 2
      src/page/homepage/crowdsourcing/userhome.vue
  2. 5
      src/page/homepage/personability/abilityMore.vue
  3. 2
      src/page/personalpage/testcrowd/TesterDetail.vue

@ -217,7 +217,7 @@ export default {
this.testerdata.commentsStar = Number(this.testerdata.commentsStar)
}
if (this.testerdata.avatar) {
if (this.testerdata.avatar.indexOf('/prod-api') == -1) {
if (this.testerdata.avatar && this.testerdata.avatar.indexOf('http') == -1) {
this.testerdata.avatar = this.base + this.testerdata.avatar
}
}

@ -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
}
})

@ -241,7 +241,7 @@ export default {
getdetesterId(this.userId, taskId).then((res) => {
this.testerdata = res.data
if (this.testerdata.avatar) {
if (this.testerdata.avatar.indexOf('/prod-api') == -1) {
if (this.testerdata.avatar.indexOf('http') == -1) {
this.testerdata.avatar = this.base + this.testerdata.avatar
}
}

Loading…
Cancel
Save