|
@@ -1,23 +1,23 @@
|
|
|
<template>
|
|
|
<div class="video-w">
|
|
|
<div class="container">
|
|
|
- <div class="setion" v-for="(item,i) in langVideoCourse" :key="i">
|
|
|
- <p class="common-title">{{item.name}}</p>
|
|
|
- <!-- <p class="b-label">{{item.sub}}</p> -->
|
|
|
- <ul class="i-ul">
|
|
|
- <li :class="{small: item.items.length > 2}" :style="{width:`${90/item.items.length*2}%`}" @click="itemHandle(sub)" v-for="(sub,idx) in item.items" :key="idx">
|
|
|
- <div class="img-w">
|
|
|
- <img class="li-img" :src="`${$cdn}course/img/${sub.code}.jpg`" alt="">
|
|
|
- <div class="hover-item">
|
|
|
- <img :src="`${$cdn}course/img/video_play@2x.png`" alt="">
|
|
|
- <p>{{sub.name}}</p>
|
|
|
+ <ul class="setion">
|
|
|
+ <li class="common-title" :class="{'is-active': activeTab === i}" v-for="(item,i) in langVideoCourse" @click="activeTab=i" :key="i">{{item.name}}</li>
|
|
|
+ </ul>
|
|
|
+ <h-row class="i-ul" :gutter="20">
|
|
|
+ <h-col :span="langVideoCourse[activeTab].items.length > 2 ? 6 : 12" v-for="(sub,idx) in langVideoCourse[activeTab].items" :key="idx">
|
|
|
+ <div class="i-li" :class="{small: langVideoCourse[activeTab].items.length > 2}" @click="itemHandle(sub)">
|
|
|
+ <div class="img-w">
|
|
|
+ <img class="li-img" :src="`${$cdn}course/img/${sub.code}.jpg`" alt="">
|
|
|
+ <div class="hover-item">
|
|
|
+ <img :src="`${$cdn}course/img/video-play.png`" alt="">
|
|
|
+ <p>{{sub.name}}</p>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
+ <p class="li-p" >{{sub.name}}</p>
|
|
|
</div>
|
|
|
- <p class="li-p" >{{sub.name}}<img class="bofang" :src="`${$cdn}course/img/video_play@2x.png`" alt=""></p>
|
|
|
-
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
- </div>
|
|
|
+ </h-col>
|
|
|
+ </h-row>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -26,6 +26,7 @@
|
|
|
import { mapState } from 'vuex'
|
|
|
|
|
|
export default {
|
|
|
+
|
|
|
computed: {
|
|
|
...mapState({
|
|
|
language: state => state.language.current,
|
|
@@ -34,7 +35,7 @@ export default {
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
|
-
|
|
|
+ activeTab: 0
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -59,20 +60,52 @@ export default {
|
|
|
.setion{
|
|
|
margin: 0 0 0;
|
|
|
padding-top: 86px;
|
|
|
- .common-title{
|
|
|
+ display: flex;
|
|
|
+ .common-title {
|
|
|
margin: 0;
|
|
|
+ padding-right: 34px;
|
|
|
+ margin-right: 32px;
|
|
|
+ position: relative;
|
|
|
+ font-weight: normal;
|
|
|
+ color: #909090;
|
|
|
+ cursor: pointer;
|
|
|
+ &.is-active {
|
|
|
+ color: #202020;
|
|
|
+ &::after {
|
|
|
+ display: block;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ &::after {
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
+ &:last-child {
|
|
|
+ &::before {
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ &::before {
|
|
|
+ content: '';
|
|
|
+ display: block;
|
|
|
+ height: 33px;
|
|
|
+ width: 1px;
|
|
|
+ background: #909090;
|
|
|
+ position: absolute;
|
|
|
+ right: 0;
|
|
|
+ top: 50%;
|
|
|
+ transform: translateY(-50%);
|
|
|
+ }
|
|
|
}
|
|
|
- .i-ul{
|
|
|
+ }
|
|
|
+ .i-ul{
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
align-items: center;
|
|
|
flex-wrap: wrap;
|
|
|
width: 100%;
|
|
|
margin-top: 64px;
|
|
|
- li{
|
|
|
+ .i-li {
|
|
|
position: relative;
|
|
|
- max-width: 49%;
|
|
|
- margin-top: 20px;
|
|
|
+ margin-bottom: 33px;
|
|
|
background: #fff;
|
|
|
.li-img{
|
|
|
width: 100%;
|
|
@@ -113,12 +146,15 @@ export default {
|
|
|
height: 100%;
|
|
|
cursor: pointer;
|
|
|
text-align: center;
|
|
|
- padding-top: 100px;
|
|
|
+ // padding-top: 125px;
|
|
|
transition: top 0.2s linear;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ justify-content: center;
|
|
|
img {
|
|
|
width: 70px;
|
|
|
height: 70px;
|
|
|
- margin: 0 auto;
|
|
|
+ margin: 0 auto 9px;
|
|
|
}
|
|
|
p {
|
|
|
font-size: 40px;
|
|
@@ -141,19 +177,18 @@ export default {
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
.hover-item {
|
|
|
- padding-top: 40px;
|
|
|
+ // padding-top: 50px;
|
|
|
img {
|
|
|
width: 50px;
|
|
|
height: 50px;
|
|
|
}
|
|
|
p {
|
|
|
- font-size: 20px;
|
|
|
+ font-size: 24px;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
</style>
|