guhongwei 4 vuotta sitten
vanhempi
commit
0eb899ebcf
2 muutettua tiedostoa jossa 15 lisäystä ja 2 poistoa
  1. 13 1
      src/views/community/parts/list.vue
  2. 2 1
      src/views/service/parts/list.vue

+ 13 - 1
src/views/community/parts/list.vue

@@ -11,7 +11,12 @@
             <span>更新时间:{{ item.create_time || item.renew_time || '暂无时间' }}</span>
           </el-col>
           <el-col :span="24" class="image" v-if="item.type == '0'">
-            <img :src="tag.url" v-for="(tag, index) in item.imgUrl" :key="index" :style="{ width: item.imgUrl.length == 1 ? '100%' : '48%' }" />
+            <img
+              :src="tag.url"
+              v-for="(tag, index) in item.imgUrl"
+              :key="index"
+              :style="{ width: item.imgUrl.length == 1 ? '100%' : '48%', height: item.imgUrl.length == 1 ? '200px' : '160px' }"
+            />
           </el-col>
           <el-col :span="24" class="video" v-else-if="item.type == '1'">
             <video
@@ -91,6 +96,12 @@ export default {
     font-size: 15px;
     margin: 0 0 5px 0;
     word-wrap: break-word;
+    overflow: hidden;
+    text-overflow: ellipsis;
+    -webkit-line-clamp: 6;
+    word-break: break-all;
+    display: -webkit-box;
+    -webkit-box-orient: vertical;
   }
   .other {
     color: #666;
@@ -112,6 +123,7 @@ export default {
   }
   .video {
     margin: 0 0 5px 0;
+    height: 200px;
     video {
       width: 100%;
       height: 100%;

+ 2 - 1
src/views/service/parts/list.vue

@@ -211,7 +211,7 @@ export default {
           font-size: 14px;
           color: #666;
           position: relative;
-          top: 25px;
+          top: 4px;
           .right {
             text-align: right;
             height: 20px;
@@ -246,6 +246,7 @@ export default {
       }
       .video {
         margin: 0 0 5px 0;
+        height: 200px;
         border: 1px solid #f1f1f1;
         video {
           float: left;