🦄 reactor: 页面适配

This commit is contained in:
秋刀鱼 2024-11-07 17:28:35 +08:00
parent 8a645cf326
commit 08b4d5d652
4 changed files with 38 additions and 30 deletions

View File

@ -1823,7 +1823,7 @@ export class tools extends plugin {
} }
// 一般这个情况是VIP歌曲 (如果没有url或者是国内,公用接口暂时不可用必须自建并且ck可用状态才能进行高质量解析) // 一般这个情况是VIP歌曲 (如果没有url或者是国内,公用接口暂时不可用必须自建并且ck可用状态才能进行高质量解析)
if (!isCkExpired || url == null) { if (!isCkExpired || url == null) {
url = await this.musicTempApi(e, title, "网易云音乐"); url = await this.musicTempApi(e, title, "网易云音乐", musicInfo);
} else { } else {
// 拥有ck并且有效直接进行解析 // 拥有ck并且有效直接进行解析
let audioInfo = AudioLevel; let audioInfo = AudioLevel;

View File

@ -265,7 +265,7 @@ export function supportGuoba() {
}, },
{ {
field: "tools.isSendVocal", field: "tools.isSendVocal",
label: "网易云开启发送音频", label: "网易云开启发送音频",
bottomHelpMessage: bottomHelpMessage:
"默认开启,识别音乐之后是否转化群语音发送,关闭将获得一定的性能提升", "默认开启,识别音乐之后是否转化群语音发送,关闭将获得一定的性能提升",
component: "Switch", component: "Switch",

View File

@ -10,7 +10,6 @@ html {
margin: 0; margin: 0;
padding: 0; padding: 0;
width: 780px; width: 780px;
height: 370px;
font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif; font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
} }
@ -20,7 +19,7 @@ html {
top: 0; top: 0;
left: 0; left: 0;
width: 780px; width: 780px;
height:450px; height: 450px;
z-index: -1; z-index: -1;
object-fit: cover; object-fit: cover;
} }
@ -44,6 +43,12 @@ html {
box-sizing: border-box; box-sizing: border-box;
} }
.songinfobox {
width: 100%;
height: 100%;
padding: 30px 0px;
}
.info { .info {
width: 100%; width: 100%;
height: 100%; height: 100%;
@ -54,7 +59,6 @@ html {
} }
.cover { .cover {
margin-top: 28px;
width: 100%; width: 100%;
height: 135px; height: 135px;
display: flex; display: flex;
@ -68,7 +72,7 @@ html {
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
} }
.songSize{ .songSize {
width: 100%; width: 100%;
text-align: center; text-align: center;
margin-top: 20px; margin-top: 20px;
@ -87,7 +91,7 @@ html {
text-shadow: 2px 2px 5px rgba(255, 255, 255, 0.4); text-shadow: 2px 2px 5px rgba(255, 255, 255, 0.4);
} }
.singerName{ .singerName {
width: 100%; width: 100%;
text-align: center; text-align: center;
font-family: 'singerName'; font-family: 'singerName';
@ -97,23 +101,23 @@ html {
text-shadow: 2px 2px 5px rgba(255, 255, 255, 0.4); text-shadow: 2px 2px 5px rgba(255, 255, 255, 0.4);
} }
.typeBox{ .typeBox {
width: 100%; width: 100%;
margin-top: 22px; margin-top: 22px;
display: flex; display: flex;
justify-content: center; justify-content: center;
} }
.typeList{ .typeList {
display: flex; display: flex;
} }
.typeNav{ .typeNav {
font-size: 15px; font-size: 15px;
height: 25px; height: 25px;
padding: 0px 10px; padding: 0px 10px;
box-sizing: border-box; box-sizing: border-box;
background-color:rgba(255, 255, 255, 0.2); background-color: rgba(255, 255, 255, 0.2);
line-height: 0px; line-height: 0px;
display: flex; display: flex;
justify-content: center; justify-content: center;

View File

@ -17,11 +17,12 @@
</div> </div>
<div class="infoBox"> <div class="infoBox">
<div class="info"> <div class="info">
<div class="songinfobox">
<div class="cover"> <div class="cover">
<img src="{{ songInfo.cover }}" alt=""> <img src="{{ songInfo.cover }}" alt="">
</div> </div>
<div class="songSize"> <div class="songSize">
{{ songInfo.size }} MB {{ songInfo.size }}
</div> </div>
<div class="songName"> <div class="songName">
{{ songInfo.songName }} {{ songInfo.songName }}
@ -29,15 +30,18 @@
<div class="singerName"> <div class="singerName">
{{ songInfo.singerName }} {{ songInfo.singerName }}
</div> </div>
{{if songInfo.musicType}}
<div class="typeBox"> <div class="typeBox">
<div class="typeList"> <div class="typeList">
{{each songInfo.musicType typeName}} {{each songInfo.musicType typeName}}
<div class="typeNav"> <div class="typeNav">
{{ typeName }} {{ typeName || '喵喵~'}}
</div> </div>
{{ /each }} {{ /each }}
</div> </div>
</div> </div>
{{/if}}
</div>
</div> </div>
</div> </div>
</body> </body>