wxy 4 年之前
父节点
当前提交
50afbf6aac
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/views/channel/detail.vue

+ 3 - 3
src/views/channel/detail.vue

@@ -31,7 +31,7 @@
             <el-col :span="24" class="two">
               <van-swipe>
                 <van-swipe-item class="list" v-for="(item, index) in videodata" :key="index" @click="changevideo(index, item)">
-                  <p :class="{ active: changeColor == index }">{{ item.name }}</p>
+                  <p :class="{ active: changeColor == index }">{{ item.title }}</p>
                 </van-swipe-item>
               </van-swipe>
             </el-col>
@@ -79,7 +79,7 @@ export default {
     await this.searchtype();
     await this.search();
     await this.searchvideo();
-    this.searchvideo('0', this.videodata[0]);
+    this.changevideo('0', this.videodata[0]);
   },
   methods: {
     ...markettype({ markettypeList: 'query' }),
@@ -99,7 +99,7 @@ export default {
     },
     changevideo(index, item) {
       this.changeColor = index;
-      this.$set(this, `videoUrl`, item.url);
+      this.$set(this, `videoUrl`, item.file_path);
     },
     back() {
       this.$router.push({ path: '/channel/index' });