{
&.gradient {
background: var(--cover-bg);
}
- &.none {
- &::after {
- display: none;
- }
- }
}
// 按钮
.menu {
@@ -578,25 +547,6 @@ onUnmounted(() => {
}
}
}
- .dj {
- margin-top: 12px;
- font-size: 16px;
- display: flex;
- align-items: center;
- .n-icon {
- margin-right: 4px;
- color: var(--cover-main-color);
- }
- .dj-name {
- opacity: 0.7;
- transition: opacity 0.3s;
- -webkit-line-clamp: 2;
- cursor: pointer;
- &:hover {
- opacity: 1;
- }
- }
- }
}
&.record {
width: 100%;
diff --git a/src/components/Player/MainControl.vue b/src/components/Player/MainControl.vue
index e6299759..9431a048 100644
--- a/src/components/Player/MainControl.vue
+++ b/src/components/Player/MainControl.vue
@@ -94,7 +94,7 @@
[
{
key: "add-pl",
label: "添加到歌单",
- show: playMode.value !== "dj",
props: {
onClick: () => {
addPlaylistRef.value?.openAddToPlaylist(music.getPlaySongData?.id);
@@ -432,7 +431,6 @@ const songMoreOptions = computed(() => [
path: "/comment",
query: {
id: music.getPlaySongData?.id,
- type: playMode.value,
},
});
},
@@ -442,9 +440,7 @@ const songMoreOptions = computed(() => [
{
key: "mv",
label: "观看 MV",
- show:
- playMode.value !== "dj" &&
- (music.getPlaySongData?.mv && music.getPlaySongData?.mv !== 0 ? true : false),
+ show: music.getPlaySongData?.mv && music.getPlaySongData?.mv !== 0 ? true : false,
props: {
onClick: () => {
router.push({
@@ -460,7 +456,7 @@ const songMoreOptions = computed(() => [
{
key: "download",
label: "下载歌曲",
- show: playMode.value !== "dj" && (music.getPlaySongData?.path ? false : true),
+ show: music.getPlaySongData?.path ? false : true,
props: {
onClick: () => {
downloadSongRef.value?.openDownloadModal(music.getPlaySongData);
@@ -491,10 +487,10 @@ const songTimeSliderUpdate = (val) => {
// 开启播放器
const openFullPlayer = () => {
- // if (playMode.value === "dj") {
- // $message.warning("当前为电台模式,无法开启播放器");
- // return false;
- // }
+ if (playMode.value === "dj") {
+ $message.warning("当前为电台模式,无法开启播放器");
+ return false;
+ }
if (showSpectrums.value && typeof $player !== "undefined") processSpectrum($player);
showFullPlayer.value = true;
};
diff --git a/src/components/Player/PlayerControl.vue b/src/components/Player/PlayerControl.vue
index bbd4208c..673da49f 100644
--- a/src/components/Player/PlayerControl.vue
+++ b/src/components/Player/PlayerControl.vue
@@ -10,7 +10,7 @@
@@ -185,7 +187,7 @@
/>
-
+
@@ -309,18 +311,6 @@ const controlEnter = () => {
const controlMove = (e) => {
if (!e.target.closest(".slider")) e.stopPropagation();
};
-
-// 跳转至评论
-const jumpToComment = () => {
- showFullPlayer.value = false;
- router.push({
- path: "/comment",
- query: {
- id: music.getPlaySongData?.id,
- type: playMode.value,
- },
- });
-};
diff --git a/vercel.json b/vercel.json
index f02d5823..afea4aed 100644
--- a/vercel.json
+++ b/vercel.json
@@ -1,4 +1,3 @@
{
- "cleanUrls": true,
"rewrites": [{ "source": "/:path*", "destination": "/index.html" }]
}