From 915ff4c28344476274c579e10225021d49c35d3e Mon Sep 17 00:00:00 2001 From: zyronon Date: Wed, 6 Oct 2021 02:06:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=88=91=E7=9A=84=E9=9F=B3?= =?UTF-8?q?=E4=B9=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Back.vue | 2 +- src/components/slide/Indicator.vue | 18 +- src/components/slide/IndicatorLight.vue | 167 +++++++ src/components/slide/SlideRowList.vue | 11 +- src/pages/me/MyMusic.vue | 547 ++++++++++----------- src/pages/me/components/SlideItemMusic.vue | 432 ++++++++++++++++ 6 files changed, 865 insertions(+), 312 deletions(-) create mode 100644 src/components/slide/IndicatorLight.vue create mode 100644 src/pages/me/components/SlideItemMusic.vue diff --git a/src/components/Back.vue b/src/components/Back.vue index c80f8c3..d4b2f1a 100644 --- a/src/components/Back.vue +++ b/src/components/Back.vue @@ -1,5 +1,5 @@ + + diff --git a/src/components/slide/SlideRowList.vue b/src/components/slide/SlideRowList.vue index 766012a..852e588 100644 --- a/src/components/slide/SlideRowList.vue +++ b/src/components/slide/SlideRowList.vue @@ -185,6 +185,7 @@ export default { for (let i = 0; i < tabs.children.length; i++) { let item = tabs.children[i] this.tabWidth = this.$getCss(item, 'width') + //TODO 这里算得不对,两个字时正常,字一多就会出问题,修改参考IndicatorLight.vue this.tabIndicatorRelationActiveIndexLefts.push( item.getBoundingClientRect().x - tabs.children[0].getBoundingClientRect().x + (this.isHome ? this.tabWidth * 0.15 : 0)) } @@ -395,7 +396,7 @@ export default { width: 100%; height: 100%; box-sizing: border-box; - padding: 0 15px; + padding: 0 1.5rem; display: flex; justify-content: space-between; align-items: center; @@ -423,11 +424,11 @@ export default { .indicator { //transition: left .3s; position: absolute; - bottom: -8px; - height: 3px; - width: 20px; + bottom: -0.8rem; + height: .3rem; + width: 2rem; background: #fff; - border-radius: 5px; + border-radius: .5rem; } } } diff --git a/src/pages/me/MyMusic.vue b/src/pages/me/MyMusic.vue index 6a9644b..fd71395 100644 --- a/src/pages/me/MyMusic.vue +++ b/src/pages/me/MyMusic.vue @@ -1,120 +1,115 @@ + +