From 326f3e1f3f377ffefa0b49c1120271d2489ebe26 Mon Sep 17 00:00:00 2001 From: enjoyuruf <39794567+enjoyuruf@users.noreply.github.com> Date: Sun, 8 Sep 2019 00:45:00 +0800 Subject: [PATCH 1/2] =?UTF-8?q?Aplayer=E6=AD=8C=E6=9B=B2=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=BB=91=E5=8A=A8=E5=87=BA=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 当Aplayer的侧边 ‘>’按钮被点击后,Aplayer整体滑出,然后歌曲列表缓慢滑出。比起直接出现,观感应该会好一些。 --- js/sakura-app.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/js/sakura-app.js b/js/sakura-app.js index 746c5cd..cad784b 100644 --- a/js/sakura-app.js +++ b/js/sakura-app.js @@ -782,16 +782,25 @@ if(mashiro_option.float_player_on) { lrcTag = 2; }); var apSwitchTag = 0; + var aplayerlist=$(".aplayer-list"); + aplayerlist.removeClass( "aplayer-list-hide" ); + aplayerlist.css({maxHeight:'0px'}); $(".aplayer.aplayer-fixed .aplayer-body").addClass("ap-hover"); $(".aplayer-miniswitcher").click(function(){ if (apSwitchTag == 0) { + aplayerlist.removeClass( "aplayer-list-hide" ); + aplayerlist.animate({maxHeight:'250px'}); $(".aplayer.aplayer-fixed .aplayer-body").removeClass( "ap-hover" ); apSwitchTag = 1; } else { + aplayerlist.css({maxHeight:'0px'}); $(".aplayer.aplayer-fixed .aplayer-body").addClass( "ap-hover" ); apSwitchTag =0; } }); + $(".aplayer-icon-loop").click(function(){ + + }); } var b = 'https://api.i-meto.com/meting/api?server=:server&type=:type&id=:id&r=:r'; 'undefined' != typeof meting_api && (b = meting_api); From b5872cf4ba1cb26d01f7f344cca38fb1400535e0 Mon Sep 17 00:00:00 2001 From: enjoyuruf <39794567+enjoyuruf@users.noreply.github.com> Date: Sun, 8 Sep 2019 01:04:23 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=B8=8D=E5=B0=8F?= =?UTF-8?q?=E5=BF=83=E6=B7=BB=E5=8A=A0=E7=9A=84=E6=97=A0=E7=94=A8=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 删除不小心添加的无用代码 --- js/sakura-app.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/js/sakura-app.js b/js/sakura-app.js index cad784b..954660c 100644 --- a/js/sakura-app.js +++ b/js/sakura-app.js @@ -798,9 +798,6 @@ if(mashiro_option.float_player_on) { apSwitchTag =0; } }); - $(".aplayer-icon-loop").click(function(){ - - }); } var b = 'https://api.i-meto.com/meting/api?server=:server&type=:type&id=:id&r=:r'; 'undefined' != typeof meting_api && (b = meting_api);