guhongwei 4 år sedan
förälder
incheckning
0ba64c267a
1 ändrade filer med 5 tillägg och 4 borttagningar
  1. 5 4
      src/views/live/detail2.vue

+ 5 - 4
src/views/live/detail2.vue

@@ -60,16 +60,16 @@ export default {
     }
   },
   methods: {
-    ...newsguidance(['fetch']),
-    ...newsroadshow(['fetch']),
+    ...newsguidance({ newsguidancefetch: 'fetch' }),
+    ...newsroadshow({ newsroadshowfetch: 'fetch' }),
     async search() {
       if (this.type === '1') {
-        let res = await this.fetch(this.id);
+        let res = await this.newsguidancefetch(this.id);
         if (this.$checkRes(res)) {
           this.$set(this, `detailinfo`, res.data);
         }
       } else {
-        let res = await this.fetch(this.id);
+        let res = await this.newsroadshowfetch(this.id);
         if (this.$checkRes(res)) {
           this.$set(this, `detailinfo`, res.data);
         }
@@ -125,6 +125,7 @@ export default {
     video {
       width: 100%;
       margin-top: 10px;
+      height: 250px;
     }
   }
   .content {