guhongwei 4 years ago
parent
commit
ed4043fdfb

+ 1 - 1
src/views/community/detail.vue

@@ -105,7 +105,7 @@ export default {
       let res = await this.create(data);
       if (this.$checkRes(res)) {
         this.$set(this.detailInfo, `thumbs`, res.data);
-        this.$toast({ type: 'success', message: this.detailInfo.thumbs ? '取消点赞' : '点赞成功' });
+        this.$toast({ type: 'success', message: this.detailInfo.thumbs ? '点赞成功' : '取消点赞' });
       }
     },
     // 打开评论

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

@@ -104,6 +104,7 @@ export default {
     img {
       margin: 0 10px 0 0;
       border-radius: 5px;
+      height: 200px;
     }
     img:nth-child(2n) {
       margin: 0 0 0 0;

+ 1 - 1
src/views/refute/detail.vue

@@ -66,7 +66,7 @@ export default {
       let res = await this.create(data);
       if (this.$checkRes(res)) {
         this.$set(this.form, `thumbs`, res.data);
-        this.$toast({ type: 'success', message: this.form.thumbs ? '取消点赞' : '点赞成功' });
+        this.$toast({ type: 'success', message: this.form.thumbs ? '点赞成功' : '取消点赞' });
       }
     },
   },

+ 3 - 3
src/views/service/parts/list.vue

@@ -75,7 +75,7 @@
             <el-col :span="24" class="title">
               {{ item.title }}
             </el-col>
-            <el-col :span="24" class="video">
+            <el-col :span="24" class="video" v-if="item.fileUrl.length > 0">
               <video
                 controls="controls"
                 preload="meta"
@@ -85,7 +85,7 @@
                 x5-video-player-type="h5"
                 x5-video-player-fullscreen="true"
                 controlsList="nodownload"
-                :src="item.fileUrl[0].url"
+                :src="item.fileUrl && item.fileUrl[0].url"
                 loop="loop"
               >
                 <source src="movie.ogg" type="video/ogg" />
@@ -219,7 +219,7 @@ export default {
         .el-image {
           float: right;
           width: 100%;
-          height: 100%;
+          height: 70px;
           border-radius: 5px;
         }
         /deep/.image-slot img {