liyongli hace 3 años
padre
commit
c10dfa53f1
Se han modificado 2 ficheros con 16 adiciones y 13 borrados
  1. 15 13
      src/views/Activity/Activity.vue
  2. 1 0
      src/views/Jugou/Jugou.vue

+ 15 - 13
src/views/Activity/Activity.vue

@@ -79,19 +79,20 @@ export default {
         this.init();
       });
     },
-    getTab(topic) {
+    getTab() {
+    // getTab(topic) {
       let activitys = [];
-      (topic || []).map(v => {
-        activitys.push({
-          isCollectPlatform: v.isCollectPlatform,
-          component: "defaultComponent",
-          componentReal: "defaultComponent" + v.activityId,
-          activityId: v.activityId,
-          realName: v.name,
-          sortNo: v.sortNo,
-          name: v.alias,
-        });
-      });
+    //   (topic || []).map(v => {
+    //     activitys.push({
+    //       isCollectPlatform: v.isCollectPlatform,
+    //       component: "defaultComponent",
+    //       componentReal: "defaultComponent" + v.activityId,
+    //       activityId: v.activityId,
+    //       realName: v.name,
+    //       sortNo: v.sortNo,
+    //       name: v.alias,
+    //     });
+    //   });
       activitys = activitys.concat([
         {
           name: "德润三秦",
@@ -130,8 +131,9 @@ export default {
       this.selectA[this.select] = true;
     },
     selectTab(tab) {
+        console.log(this.activitys[tab.index])
       try {
-        this.select = this.activitys[tab.index].component;
+        this.select = this.activitys[tab.index].componentReal;
         this.selectA[this.select] = true;
       } catch (err) {
         console.log(err);

+ 1 - 0
src/views/Jugou/Jugou.vue

@@ -421,6 +421,7 @@ export default {
 .Jugou video {
   width: 100%;
   height: 500px;
+  background-color: #000;
 }
 .Jugou .lineinfobackground {
   font-size: 12px;