From ceb2bc5febff9200ba8947b07b988768adbdb247 Mon Sep 17 00:00:00 2001 From: Karl Chen Date: Tue, 31 Oct 2017 12:10:36 +0800 Subject: [PATCH 1/3] Update APlayer.js --- src/APlayer.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/APlayer.js b/src/APlayer.js index d6c9eda..1cde74b 100644 --- a/src/APlayer.js +++ b/src/APlayer.js @@ -452,6 +452,9 @@ class APlayer { if (this.music.pic) { this.element.getElementsByClassName('aplayer-pic')[0].style.backgroundImage = `url('${this.music.pic}')`; } + else { + this.element.getElementsByClassName('aplayer-pic')[0].style.backgroundImage = ''; + } this.element.getElementsByClassName('aplayer-title')[0].innerHTML = this.music.title; this.element.getElementsByClassName('aplayer-author')[0].innerHTML = ` - ${this.music.author}`; if (this.element.getElementsByClassName('aplayer-list-light')[0]) { From 665b0e7342a2d7164ec904466f70f5c15a622773 Mon Sep 17 00:00:00 2001 From: Karl Chen Date: Tue, 31 Oct 2017 23:00:16 +0800 Subject: [PATCH 2/3] Update APlayer.scss --- src/APlayer.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/APlayer.scss b/src/APlayer.scss index 3cd5d9c..03d920c 100644 --- a/src/APlayer.scss +++ b/src/APlayer.scss @@ -92,7 +92,7 @@ $aplayer-height-lrc: $aplayer-height + $lrc-height - 6; height: $aplayer-height; width: $aplayer-height; background-image: url(./default.jpg); - background-size: 100%; + background-size: cover; transition: all 0.3s ease; .aplayer-button { @@ -457,4 +457,4 @@ $aplayer-height-lrc: $aplayer-height + $lrc-height - 6; @keyframes aplayer-roll { 0%{left:0} 100%{left: -100%} -} \ No newline at end of file +} From 719c5ce3eaa98afd2bf375e8026e519eaf08fa2a Mon Sep 17 00:00:00 2001 From: Karl Chen Date: Thu, 2 Nov 2017 21:29:50 +0800 Subject: [PATCH 3/3] miss aplayer class --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d744be4..b2ff7f2 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ $ npm install aplayer --save ## Quick Start ```html -
+
```