zs 1 year ago
parent
commit
2571619165
1 changed files with 7 additions and 1 deletions
  1. 7 1
      src/views/expert/detail.vue

+ 7 - 1
src/views/expert/detail.vue

@@ -6,7 +6,13 @@
           <el-col :span="24" class="one">
             <el-col :span="24" class="oneText">
               <el-col :span="4" class="one_1">
-                <el-image class="image" :src="info.icon || zj" fit="fill" />
+                <el-image
+                  class="image"
+                  v-if="info && info.icon && info.icon.length > 0"
+                  :src="info.icon[0].url"
+                  fit="fill"
+                />
+                <el-image class="image" v-else :src="zj" fit="fill" />
               </el-col>
               <el-col :span="14" class="one_2">
                 <el-col :span="24" class="name textOver">