lrf402788946 5 éve
szülő
commit
bbf552c4a1
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      src/layout/member/dangjian.vue

+ 2 - 2
src/layout/member/dangjian.vue

@@ -47,8 +47,8 @@
           <el-col :span="24" class="infoCenterList">
           <el-col :span="24" class="infoCenterList">
             <el-col :span="12" class="dangjianList" v-for="(item, index) in infosList" :key="index" @click.native="$turnTo(item)">
             <el-col :span="12" class="dangjianList" v-for="(item, index) in infosList" :key="index" @click.native="$turnTo(item)">
               <el-col :span="24" class="imageTit">
               <el-col :span="24" class="imageTit">
-                <el-image style="width:180px;height:120px;" :src="item.pic" v-if="item.pic"></el-image>
-                <el-image style="width:180px;height:120px;" :src="Nopic" v-else></el-image>
+                <el-image style="width:180px;height:120px;" fit="contain" :src="item.pic" v-if="item.pic"></el-image>
+                <el-image style="width:180px;height:120px;" fit="contain" :src="Nopic" v-else></el-image>
               </el-col>
               </el-col>
               <el-col :span="24" class="title">
               <el-col :span="24" class="title">
                 <p>{{ item.title }}</p>
                 <p>{{ item.title }}</p>