88 cursor: statusStore.playerMetaShow || isShowComment ? 'auto' : 'none',
99 }"
1010 :class =" ['full-player', { 'show-comment': isShowComment }]"
11- @click =" onPlayerClick"
1211 @mouseleave =" playerLeave"
1312 >
1413 <!-- 背景 -->
3938 ]"
4039 @mousemove =" playerMove"
4140 >
42-
4341 <Transition name="zoom">
44- <div
45- v-if =" !pureLyricMode"
46- v-show =" !isMobile"
47- :key =" musicStore.playSong.id"
48- class =" content-left"
49- >
42+ <div v-if =" !pureLyricMode" :key =" musicStore.playSong.id" class =" content-left" >
5043 <!-- 封面 -->
5144 <PlayerCover />
5245 <!-- 数据 -->
5346 <PlayerData :center =" playerDataCenter " :theme =" statusStore .mainColor " />
5447 </div >
5548 </Transition >
5649 <!-- 歌词 -->
57- <div
58- v-show =" !isMobile || true"
59- class =" content-right"
60- >
50+ <div class =" content-right" >
6151 <!-- 数据 -->
6252 <PlayerData
63- v-if =" ( statusStore .pureLyricMode && musicStore .isHasLrc ) || isMobile "
64- :center =" statusStore .pureLyricMode || isMobile "
53+ v-if =" statusStore .pureLyricMode && musicStore .isHasLrc "
54+ :center =" statusStore .pureLyricMode "
6555 :theme =" statusStore .mainColor "
6656 :light =" pureLyricMode "
6757 />
9181
9282<script setup lang="ts">
9383import { useStatusStore , useMusicStore , useSettingStore } from " @/stores" ;
94- import { isElectron , isMobile } from " @/utils/env" ;
84+ import { isElectron } from " @/utils/env" ;
9585
9686const musicStore = useMusicStore ();
9787const statusStore = useStatusStore ();
9888const settingStore = useSettingStore ();
9989
100-
101-
10290// 是否显示评论
10391const isShowComment = computed <boolean >(
10492 () => ! musicStore .playSong .path && statusStore .showPlayerComment ,
@@ -153,8 +141,7 @@ const {
153141const playerMove = useThrottleFn (
154142 () => {
155143 statusStore .playerMetaShow = true ;
156- // Mobile: Always visible, do not start hide timer
157- if (! isPending .value && ! isMobile ) startShow ();
144+ if (! isPending .value ) startShow ();
158145 },
159146 300 ,
160147 false ,
@@ -172,18 +159,7 @@ const playerLeave = () => {
172159 stopShow ();
173160};
174161
175- // 点击播放器 (移动端显示控制)
176- const onPlayerClick = () => {
177- if (isMobile && ! statusStore .playerMetaShow ) {
178- statusStore .playerMetaShow = true ;
179- }
180- };
181-
182162onMounted (() => {
183- // Mobile: Always show controls
184- if (isMobile ) {
185- statusStore .playerMetaShow = true ;
186- }
187163 // 阻止息屏
188164 if (isElectron && settingStore .preventSleep ) {
189165 window .electron .ipcRenderer .send (" prevent-sleep" , true );
@@ -255,9 +231,6 @@ onBeforeUnmount(() => {
255231 transition :
256232 opacity 0.5s cubic-bezier (0.34 , 1.56 , 0.64 , 1 ),
257233 transform 0.5s cubic-bezier (0.34 , 1.56 , 0.64 , 1 );
258- @media (max-width : 768px ) {
259- display : none ;
260- }
261234 }
262235 .content-right {
263236 position : absolute ;
@@ -270,12 +243,6 @@ onBeforeUnmount(() => {
270243 flex-direction : column ;
271244 transition : opacity 0.3s ;
272245 transition-delay : 0.5s ;
273- @media (max-width : 768px ) {
274- width : 100% ;
275- max-width : 100% ;
276- left : 0 ;
277- right : auto ;
278- }
279246 .player-data {
280247 margin-top : 0 ;
281248 margin-bottom : 26px ;
0 commit comments