diff --git a/src/components/common/Music.vue b/src/components/common/Music.vue index f463d35..09edb21 100755 --- a/src/components/common/Music.vue +++ b/src/components/common/Music.vue @@ -20,8 +20,8 @@
-
热门
-
最新
+
热门
+
最新
@@ -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 @@
-
-
@TTentau
+
+
@TTentau
吴三二的光年之外, 您的浏览器不支持 video 标签。 您的浏览器不支持 video 标签。
-
+
吴三二 - 光年之外 @@ -149,6 +149,7 @@ this.width = document.body.clientWidth }, methods: { + goMusic(){ this.$router.push('/music') }, diff --git a/src/components/user/Other.vue b/src/components/user/Other.vue index 8b9fb0f..dcaa89e 100755 --- a/src/components/user/Other.vue +++ b/src/components/user/Other.vue @@ -64,13 +64,13 @@
-
+
作品1
-
+
动态6
-
+
喜欢6
@@ -91,7 +91,7 @@ @@ -115,25 +124,30 @@