wxy 4 years ago
parent
commit
40720aff78

+ 8 - 5
src/views/live/index.vue

@@ -134,11 +134,13 @@ export default {
         this.$set(this, `show`, false);
         this.$set(this, `title`, '科技频道');
       } else if (index == 2) {
-        if (this.chooseText == '嘉宾访谈') {
-          this.$set(this, `title`, '培训访谈');
-        } else if (this.chooseText == '技能培训') {
-          this.$set(this, `title`, '技能培训');
-        }
+        this.$set(this, `title`, '培训访谈');
+        // if (this.chooseText == '嘉宾访谈') {
+        //   this.$set(this, `title`, '嘉宾访谈');
+        //   console.log(this.title);
+        // } else if (this.chooseText == '技能培训') {
+        //   this.$set(this, `title`, '技能培训');
+        // }
       } else if (index == 3) {
         this.$set(this, `show`, false);
         this.$set(this, `title`, '项目路演');
@@ -148,6 +150,7 @@ export default {
     interviewClick(name) {
       this.$set(this, `show`, false);
       this.$set(this, `chooseText`, name);
+      this.$set(this, `title`, name);
     },
     trainClick() {
       this.show = true;

+ 2 - 2
src/views/live/parts/channel.vue

@@ -15,7 +15,7 @@
                 <span style="color:#ff0000">[{{ item.room_id }}]</span>{{ item.title }}
               </p>
               <p class="desc">{{ item.desc }}</p>
-              <p class="type">所属类型:{{ getType(item.type) }}</p>
+              <p class="type textOver">所属类型:{{ getType(item.type) }}</p>
               <p class="time textOver">{{ item.create_time }}</p>
             </el-col>
           </el-col>
@@ -163,7 +163,7 @@ export default {
           overflow: hidden;
           text-overflow: ellipsis;
           display: -webkit-box;
-          -webkit-line-clamp: 3;
+          -webkit-line-clamp: 2;
           -webkit-box-orient: vertical;
           padding: 3px 0;
           font-size: 12px;

+ 3 - 2
src/views/live/parts/interview.vue

@@ -11,7 +11,8 @@
               {{ item.title }}
             </el-col>
             <el-col :span="12" class="date textOver"> 发布时间:{{ item.publish_time }} </el-col>
-            <el-col :span="12" class="date textOver"> 信息来源:{{ item.orgin }} </el-col>
+            <el-col v-if="item.orgin" :span="12" class="date textOver"> 信息来源:{{ item.orgin }} </el-col>
+            <el-col v-else :span="12" class="date textOver"> 信息来源:暂无 </el-col>
           </el-col>
         </el-col>
       </el-col>
@@ -44,7 +45,7 @@ export default {
       const res = await this.danceQuery();
       if (this.$checkRes(res)) {
         this.$set(this, `list`, res.data);
-        console.log(this.list);
+        // console.log(this.list);
       }
     },
     //搜索

+ 2 - 1
src/views/live/parts/roadshow.vue

@@ -11,7 +11,8 @@
               {{ item.title }}
             </el-col>
             <el-col :span="12" class="date textOver"> 发布时间:{{ item.publish_time }} </el-col>
-            <el-col :span="12" class="date textOver"> 信息来源:{{ item.orgin }} </el-col>
+            <el-col v-if="item.orgin" :span="12" class="date textOver"> 信息来源:{{ item.orgin }} </el-col>
+            <el-col v-else :span="12" class="date textOver"> 信息来源:暂无 </el-col>
           </el-col>
         </el-col>
       </el-col>

+ 11 - 10
src/views/live/parts/skill.vue

@@ -11,7 +11,8 @@
               {{ item.title }}
             </el-col>
             <el-col :span="12" class="date textOver"> 发布时间:{{ item.publish_time }} </el-col>
-            <el-col :span="12" class="date textOver"> 信息来源:{{ item.orgin }} </el-col>
+            <el-col v-if="item.orgin" :span="12" class="date textOver"> 信息来源:{{ item.orgin }} </el-col>
+            <el-col v-else :span="12" class="date textOver"> 信息来源:暂无 </el-col>
           </el-col>
         </el-col>
       </el-col>
@@ -54,15 +55,15 @@ export default {
     },
     //搜索
     async onSearch({ ...info } = {}) {
-      if (this.name) {
-        info.title = this.name;
-        let res = await this.danceQuery({ ...info });
-        if (this.$checkRes(res)) {
-          this.$set(this, `list`, res.data);
-        }
-      } else {
-        this.search();
-      }
+      // if (this.name) {
+      //   info.title = this.name;
+      //   let res = await this.danceQuery({ ...info });
+      //   if (this.$checkRes(res)) {
+      //     this.$set(this, `list`, res.data);
+      //   }
+      // } else {
+      //   this.search();
+      // }
     },
     sesstoken() {
       if (this.token) {