From a6c5fcefa8cea78ff2dd3e6a85d2394331d2d6b0 Mon Sep 17 00:00:00 2001 From: zyronon Date: Mon, 20 May 2019 01:00:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=82=B9=E5=87=BB=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/Music.vue | 35 +++++++++++++++----- src/components/home/Home2.vue | 7 ++-- src/components/user/Other.vue | 57 +++++++++++++++++++++++++++------ 3 files changed, 78 insertions(+), 21 deletions(-) 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 @@