-
热门
- 最新
+ 热门
+ 最新
@@ -47,7 +47,21 @@
},
computed: {},
methods: {
- back(){
+ toggleTab(e, index) {
+ if (!e.target.classList.contains('active')) {
+ e.target.classList.toggle('active')
+ }
+
+ if (index === 1) {
+ let pre = e.target.previousElementSibling
+ pre.classList.remove('active')
+ } else {
+ let pre = e.target.nextElementSibling
+ pre.classList.remove('active')
+ }
+
+ },
+ back() {
window.history.back()
}
}
@@ -78,6 +92,7 @@
.logo {
width: 120px;
height: 100%;
+ border-radius: 4px;
}
.info {
@@ -119,23 +134,26 @@
}
.content {
- .tabs{
+ .tabs {
height: 40px;
display: flex;
align-items: center;
color: #fff;
- .tab{
+
+ .tab {
height: 90%;
width: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 10px;
- &.active{
+
+ &.active {
border-bottom: 3px solid yellow;
}
}
}
+
.video-container {
width: 33%;
float: left;
@@ -146,8 +164,9 @@
video {
width: 100%;
}
- .first{
- padding:0 5px;
+
+ .first {
+ padding: 0 5px;
border-radius: 4px;
position: absolute;
top: 10px;
diff --git a/src/components/home/Home2.vue b/src/components/home/Home2.vue
index 864731b..34ac4dc 100755
--- a/src/components/home/Home2.vue
+++ b/src/components/home/Home2.vue
@@ -45,12 +45,12 @@