starmusic-mobile
1<template>
2 <view :class="['page', tvCls]" :style="themeStyle">
3 <!-- 自定义背景图(绘制在页面内容之下) -->
4 <view v-if="bgStyle" class="bg-image" :style="bgStyle" />
5 <tv-nav />
6 <!-- 列表切换 -->
7 <view class="list-tabs">
8 <scroll-view scroll-x class="tabs-scroll" :show-scrollbar="false">
9 <view
10 v-for="tab in tabs"
11 :key="tab.id"
12 class="tab-item d-press-sm"
13 :class="{ active: currentTab === tab.id }"
14 @click="handleTabChange(tab.id)"
15 >
16 {{ tab.name }}<text v-if="tab.count" class="tab-count">({{ tab.count }})</text>
17 </view>
18 </scroll-view>
19 <view class="tab-actions">
20 <!-- 新建歌单 -->
21 <view class="import-btn d-press-sm" @click="handleShowCreate">
22 <text>+ 新建</text>
23 </view>
24 <!-- 当前歌单管理(仅自定义歌单) -->
25 <view v-if="isCurrentCustom" class="import-btn d-press-sm" @click="showListManage = true">
26 <text>管理</text>
27 </view>
28 <!-- 导入歌单 -->
29 <view class="import-btn d-press-sm" @click="handleShowImport">
30 <lx-icon name="download" :size="26" color="theme" />
31 <text>导入</text>
32 </view>
33 </view>
34 </view>
35
36 <!-- 歌曲列表 -->
37 <view class="list-container">
38 <music-list
39 :list="currentList"
40 :list-key="currentTab"
41 :current-music-id="currentMusicId"
42 empty-text="列表为空,去搜索添加歌曲吧"
43 :show-more="true"
44 :batch-mode="batchMode"
45 :batch-selected-ids="batchSelectedIds"
46 @item-click="handleMusicClick"
47 @item-longpress="handleItemLongPress"
48 @more="handleMore"
49 @batch-toggle="handleBatchToggle"
50 />
51 </view>
52
53 <!-- 播放全部 -->
54 <view v-if="currentList.length" class="play-all-bar">
55 <view class="play-all-btn d-press" @click="handlePlayAll">
56 <lx-icon name="play-all" :size="32" color="#fff" />
57 <text>播放全部</text>
58 </view>
59 </view>
60
61 <!-- 批量操作栏(底部滑入) -->
62 <view v-if="batchMode" class="batch-bar d-slide-up">
63 <view class="batch-info">已选 {{ batchSelectedIds.length }} 首</view>
64 <view class="batch-actions">
65 <view class="batch-btn d-press-sm" @click="handleBatchDelete">
66 <lx-icon name="close" :size="24" color="#f56c6c" />
67 <text>删除</text>
68 </view>
69 <view class="batch-btn d-press-sm" @click="handleBatchCollect">
70 <lx-icon name="heart" :size="24" color="#ff4d4f" />
71 <text>{{ currentTab === 'love' ? '取消收藏' : '收藏' }}</text>
72 </view>
73 <view class="batch-btn exit d-press-sm" @click="exitBatchMode">退出</view>
74 </view>
75 </view>
76
77 <!-- 导入歌单弹层 -->
78 <view v-if="showImport" class="mask d-mask-in" @click="handleHideImport">
79 <view class="import-sheet d-slide-up" data-nav-scope @click.stop>
80 <view class="sheet-title">导入歌单</view>
81 <view class="import-tip">粘贴网易云 / QQ音乐 / 酷我 / 咪咕 / 酷狗的歌单分享链接</view>
82 <textarea
83 v-model="importUrl"
84 class="import-input"
85 placeholder="https://music.163.com/#/playlist?id=xxx"
86 :disabled="importing"
87 />
88 <view v-if="importInfo" class="import-preview">
89 <image v-if="importInfo.img" class="preview-img" :src="importInfo.img" mode="aspectFill" />
90 <view class="preview-info">
91 <text class="preview-name">{{ importInfo.name }}</text>
92 <text class="preview-desc">{{ importInfo.author }} · 共 {{ importTotal }} 首</text>
93 </view>
94 </view>
95 <button class="import-confirm-btn" data-navid="import-confirm" :disabled="importing || !importUrl.trim()" @click="handleImport">
96 {{ importing ? '导入中...' : importInfo ? '确认导入' : '解析链接' }}
97 </button>
98 <button class="import-cancel-btn d-press" @click="handleHideImport">取消</button>
99 </view>
100 </view>
101
102 <!-- 歌单命名弹层(新建 / 重命名共用) -->
103 <view v-if="showNameEditor" class="mask d-mask-in" @click="closeNameEditor">
104 <view class="import-sheet d-slide-up" data-nav-scope @click.stop>
105 <view class="sheet-title">{{ nameEditorMode === 'rename' ? '重命名歌单' : '新建歌单' }}</view>
106 <input
107 v-model="nameEditorValue"
108 class="name-input"
109 placeholder="请输入歌单名称"
110 :maxlength="30"
111 confirm-type="done"
112 @confirm="handleNameEditorConfirm"
113 />
114 <button class="import-confirm-btn" :disabled="!nameEditorValue.trim()" @click="handleNameEditorConfirm">
115 {{ nameEditorMode === 'rename' ? '保存' : '创建' }}
116 </button>
117 <button class="import-cancel-btn d-press" @click="closeNameEditor">取消</button>
118 </view>
119 </view>
120
121 <!-- 歌单管理弹层(重命名 / 删除) -->
122 <view v-if="showListManage" class="mask d-mask-in" @click="showListManage = false">
123 <view class="action-sheet d-slide-up" data-nav-scope @click.stop>
124 <view class="sheet-title">{{ currentTabName }}</view>
125 <view class="action-item d-press" @click="handleShowRename">重命名歌单</view>
126 <view class="action-item d-press" @click="handleDeleteList">删除歌单</view>
127 <view class="action-item cancel d-press" @click="showListManage = false">取消</view>
128 </view>
129 </view>
130
131 <!-- 操作弹层 -->
132 <view v-if="showActions" class="mask d-mask-in" @click="showActions = false">
133 <view class="action-sheet d-slide-up" data-nav-scope @click.stop>
134 <view class="sheet-title">{{ actionTarget ? actionTarget.name : '' }}</view>
135 <view class="action-item d-press" @click="handleAction('play')">播放</view>
136 <view class="action-item d-press" @click="handleAction('remove')">从列表移除</view>
137 <view class="action-item d-press" @click="handleAction('collect')">
138 {{ actionTarget && isLoved(actionTarget) ? '取消收藏' : '收藏' }}
139 </view>
140 <view class="action-item cancel d-press" @click="showActions = false">取消</view>
141 </view>
142 </view>
143
144 <!-- 底部播放栏 -->
145 <view class="bottom-bar">
146 <player-bar />
147 </view>
148
149 <!-- 底部导航(液态玻璃,自绘替代原生 tabBar) -->
150 <app-tab-bar />
151 </view>
152</template>
153
154<script>
155import MusicList from '../../components/music-list.vue'
156import PlayerBar from '../../components/player-bar.vue'
157import LxIcon from '../../components/lx-icon/lx-icon.vue'
158import * as playlist from '../../common/playlist.js'
159import * as player from '../../common/player.js'
160import event from '../../common/event.js'
161import { importSongListFromUrl } from '../../common/music-sdk/songlist/index.js'
162import { deviceClass } from '../../common/tv.js'
163import AppTabBar from '../../components/app-tab-bar.vue'
164
165export default {
166 components: { MusicList, PlayerBar, AppTabBar, LxIcon },
167 data() {
168 return {
169 tabs: [],
170 currentTab: 'default',
171 currentList: [],
172 currentMusicId: '',
173 showActions: false,
174 actionTarget: null,
175 actionIndex: -1,
176 batchMode: false,
177 batchSelectedIds: [],
178 // 导入歌单
179 showImport: false,
180 importUrl: '',
181 importing: false,
182 importInfo: null,
183 importList: [],
184 importTotal: 0,
185 // 歌单管理
186 showListManage: false,
187 showNameEditor: false,
188 nameEditorMode: 'create',
189 nameEditorValue: '',
190 // 遥控设备端 UI 类名
191 tvCls: '',
192 }
193 },
194 computed: {
195 /** 当前歌单是否为自定义歌单 */
196 isCurrentCustom() {
197 const tab = this.tabs.find((t) => t.id === this.currentTab)
198 return !!(tab && tab.custom)
199 },
200 /** 当前歌单名称 */
201 currentTabName() {
202 const tab = this.tabs.find((t) => t.id === this.currentTab)
203 return tab ? tab.name : ''
204 },
205 },
206 onLoad() {
207 this.tvCls = deviceClass()
208 // 这里不要再调 playlist.initList():它会把歌单从 storage 同步重读一遍并覆盖内存,
209 // 既在首次进入本页时阻塞 JS 线程(表现为点了没反应/进页面很慢),
210 // 又会丢掉 500ms 防抖落盘窗口内尚未持久化的内存改动(例如刚播放加入试听列表的歌)。
211 // 列表初始化统一由 App.vue onLaunch 完成,本页只从内存读取。
212 this.loadList()
213 const state = player.getPlayState()
214 if (state.playMusicInfo) this.currentMusicId = state.playMusicInfo.id
215 this.bindEvents()
216 },
217 onShow() {
218 this.loadList()
219 },
220 onUnload() {
221 this.unbindEvents()
222 },
223 onBackPress() {
224 // 遥控/实体返回键:优先关闭弹层与批量模式,而不是直接退出页面
225 if (this.showNameEditor) {
226 this.closeNameEditor()
227 return true
228 }
229 if (this.showListManage) {
230 this.showListManage = false
231 return true
232 }
233 if (this.showImport) {
234 // 走统一关闭逻辑,保留「导入中不允许关闭」的保护
235 this.handleHideImport()
236 return true
237 }
238 if (this.showActions) {
239 this.showActions = false
240 return true
241 }
242 if (this.batchMode) {
243 this.exitBatchMode()
244 return true
245 }
246 return false
247 },
248 methods: {
249 /** 刷新歌单 Tab(试听列表 / 我的收藏 / 自定义歌单)及其歌曲数 */
250 loadTabs() {
251 const tabs = [
252 { id: 'default', name: '试听列表' },
253 { id: 'love', name: '我的收藏' },
254 ]
255 for (const info of playlist.getCustomLists()) {
256 tabs.push({ id: info.id, name: info.name, custom: true })
257 }
258 for (const tab of tabs) tab.count = playlist.getList(tab.id).length
259 this.tabs = tabs
260 return tabs
261 },
262 loadList() {
263 const tabs = this.loadTabs()
264 // 当前歌单被删除等情况:回退到试听列表
265 if (!tabs.some((tab) => tab.id === this.currentTab)) this.currentTab = 'default'
266 this.currentList = playlist.getList(this.currentTab)
267 },
268 bindEvents() {
269 this._offList = event.on('listUpdated', () => {
270 this.loadList()
271 })
272 this._offCustomList = event.on('customListUpdated', () => {
273 this.loadList()
274 })
275 this._offMusicInfo = event.on('playerMusicInfoChanged', (data) => {
276 this.currentMusicId = data.musicInfo ? data.musicInfo.id : ''
277 })
278 },
279 unbindEvents() {
280 if (this._offList) this._offList()
281 if (this._offCustomList) this._offCustomList()
282 if (this._offMusicInfo) this._offMusicInfo()
283 },
284 handleTabChange(tabId) {
285 this.currentTab = tabId
286 this.loadList()
287 },
288 handleMusicClick(item, index) {
289 player.playListByList(this.currentList, index)
290 },
291 handlePlayAll() {
292 if (!this.currentList.length) return
293 player.playListByList(this.currentList, 0)
294 },
295 handleItemLongPress(item) {
296 if (this.batchMode) {
297 // 批量模式下长按直接切换选中状态
298 const selected = [...this.batchSelectedIds]
299 const idx = selected.indexOf(item.id)
300 if (idx >= 0) {
301 selected.splice(idx, 1)
302 } else {
303 selected.push(item.id)
304 }
305 this.batchSelectedIds = selected
306 return
307 }
308 // 非批量模式:进入批量修改模式,并选中当前歌曲
309 this.batchMode = true
310 this.batchSelectedIds = item.id ? [item.id] : []
311 },
312 handleMore(item) {
313 this.handleItemLongPress(item)
314 },
315 handleAction(action) {
316 if (!this.actionTarget) return
317 const item = this.actionTarget
318 const index = this.actionIndex
319 this.showActions = false
320 if (action === 'play') {
321 player.playListByList(this.currentList, index)
322 } else if (action === 'remove') {
323 playlist.removeListMusics(this.currentTab, [item.id])
324 } else if (action === 'collect') {
325 const isLoved = this.isLoved(item)
326 if (isLoved) {
327 playlist.removeListMusics('love', [item.id])
328 } else {
329 playlist.addListMusics('love', [item])
330 }
331 }
332 },
333 handleBatchToggle(selectedIds) {
334 this.batchSelectedIds = selectedIds
335 },
336 handleBatchDelete() {
337 if (!this.batchSelectedIds.length) return
338 playlist.removeListMusics(this.currentTab, this.batchSelectedIds)
339 this.batchMode = false
340 this.batchSelectedIds = []
341 },
342 handleBatchCollect() {
343 if (!this.batchSelectedIds.length) return
344 const list = this.currentList
345 for (const id of this.batchSelectedIds) {
346 const item = list.find((m) => m.id === id)
347 if (!item) continue
348 const isLoved = this.isLoved(item)
349 if (this.currentTab === 'love') {
350 if (isLoved) playlist.removeListMusics('love', [id])
351 } else {
352 if (!isLoved) playlist.addListMusics('love', item)
353 }
354 }
355 this.batchMode = false
356 this.batchSelectedIds = []
357 },
358 exitBatchMode() {
359 this.batchMode = false
360 this.batchSelectedIds = []
361 },
362 isLoved(item) {
363 return playlist.checkListContainsMusic('love', item.id)
364 },
365 // ============ 自定义歌单管理 ============
366 /** 打开新建歌单弹层 */
367 handleShowCreate() {
368 this.nameEditorMode = 'create'
369 this.nameEditorValue = ''
370 this.showNameEditor = true
371 },
372 /** 打开重命名弹层 */
373 handleShowRename() {
374 this.showListManage = false
375 this.nameEditorMode = 'rename'
376 this.nameEditorValue = this.currentTabName
377 this.showNameEditor = true
378 },
379 closeNameEditor() {
380 this.showNameEditor = false
381 this.nameEditorValue = ''
382 },
383 /** 新建 / 重命名确认 */
384 handleNameEditorConfirm() {
385 const name = this.nameEditorValue.trim()
386 if (!name) return
387 try {
388 if (this.nameEditorMode === 'rename') {
389 playlist.renameCustomList(this.currentTab, name)
390 uni.showToast({ title: '已重命名', icon: 'none' })
391 } else {
392 const info = playlist.createCustomList(name)
393 this.currentTab = info.id
394 uni.showToast({ title: `已创建「${info.name}」`, icon: 'none' })
395 }
396 this.closeNameEditor()
397 this.loadList()
398 } catch (err) {
399 uni.showToast({ title: err.message || '操作失败', icon: 'none' })
400 }
401 },
402 /** 删除当前自定义歌单 */
403 handleDeleteList() {
404 this.showListManage = false
405 const listId = this.currentTab
406 const name = this.currentTabName
407 if (!playlist.isCustomList(listId)) return
408 uni.showModal({
409 title: '删除歌单',
410 content: `确定删除「${name}」及其中全部歌曲吗?`,
411 confirmText: '删除',
412 confirmColor: '#f56c6c',
413 success: (res) => {
414 if (!res.confirm) return
415 playlist.removeCustomList(listId)
416 this.currentTab = 'default'
417 this.loadList()
418 uni.showToast({ title: '歌单已删除', icon: 'none' })
419 },
420 })
421 },
422 // ============ 导入歌单 ============
423 handleShowImport() {
424 this.showImport = true
425 this.importUrl = ''
426 this.importInfo = null
427 this.importList = []
428 this.importTotal = 0
429 },
430 handleHideImport() {
431 if (this.importing) return
432 this.showImport = false
433 this.importInfo = null
434 this.importList = []
435 this.importTotal = 0
436 },
437 /** 解析链接 / 确认导入 */
438 async handleImport() {
439 const url = this.importUrl.trim()
440 if (!url) return
441 if (this.importInfo) {
442 // 已解析出歌单信息 → 确认导入
443 this.doImport()
444 return
445 }
446 // 解析链接
447 this.importing = true
448 try {
449 const result = await importSongListFromUrl(url)
450 if (!result.list || !result.list.length) throw new Error('歌单为空或解析失败')
451 this.importInfo = result.info || { name: '' }
452 this.importList = result.list
453 this.importTotal = result.total || result.list.length
454 uni.showToast({ title: `解析成功:${this.importInfo.name || '歌单'}`, icon: 'none' })
455 } catch (err) {
456 uni.showToast({ title: err.message || '解析失败', icon: 'none' })
457 } finally {
458 this.importing = false
459 }
460 },
461 /** 执行导入:加入当前列表 */
462 doImport() {
463 if (!this.importList.length) return
464 this.importing = true
465 try {
466 const total = this.importTotal
467 const tab = this.tabs.find((t) => t.id === this.currentTab)
468 const target = tab ? tab.name : '列表'
469 const result = playlist.addListMusics(this.currentTab, this.importList, 'top')
470 this.showImport = false
471 this.importInfo = null
472 this.importList = []
473 this.importTotal = 0
474 this.loadList()
475 // 试听列表有 100 首上限,导入超出时按实际入列数量提示
476 const imported = result.length
477 const msg = imported < total ? `已导入 ${imported} 首到${target}(列表超上限,保留前 ${imported} 首)` : `已导入 ${total} 首到${target}`
478 uni.showToast({ title: msg, icon: 'none' })
479 } catch (err) {
480 uni.showToast({ title: err.message || '导入失败', icon: 'none' })
481 } finally {
482 this.importing = false
483 }
484 },
485 },
486}
487</script>
488
489<style lang="scss" scoped>
490 .page {
491 display: flex;
492 flex-direction: column;
493 height: 100vh;
494 background: #f5f6f8;
495 /* 大屏(平板/桌面)时内容居中并限制宽度,避免列表拉满全宽 */
496 width: 100%;
497 max-width: 1100px;
498 margin: 0 auto;
499 }
500
501 .list-tabs {
502 display: flex;
503 align-items: center;
504 padding: 16rpx 24rpx;
505 background: var(--card-bg, #fff);
506 /* 半透明底 + 背景模糊:仅背景图开启时生效(变量由 background.js 注入),否则 none 跳过合成 */
507 backdrop-filter: var(--glass-blur, none);
508 -webkit-backdrop-filter: var(--glass-blur, none);
509 }
510
511 .tabs-scroll {
512 flex: 1;
513 min-width: 0;
514 white-space: nowrap;
515 }
516
517 .tab-item {
518 display: inline-block;
519 padding: 12rpx 32rpx;
520 margin-right: 16rpx;
521 border-radius: 30rpx;
522 font-size: 26rpx;
523 color: var(--text-secondary, #606266);
524 background: var(--fill-bg, #f2f3f5);
525 }
526
527 .tab-item.active {
528 background: rgba(var(--theme-color-rgb, 49, 194, 124), 0.12);
529 color: var(--theme-color-dark, #1ba56a);
530 font-weight: 600;
531 }
532
533 .tab-count {
534 font-size: 22rpx;
535 }
536
537 .tab-actions {
538 display: flex;
539 align-items: center;
540 flex-shrink: 0;
541 margin-left: 16rpx;
542 }
543
544 .import-btn {
545 display: flex;
546 align-items: center;
547 margin-left: 12rpx;
548 padding: 8rpx 20rpx;
549 border-radius: 30rpx;
550 font-size: 24rpx;
551 color: var(--theme-color, #31c27c);
552 background: rgba(var(--theme-color-rgb, 49, 194, 124), 0.1);
553 }
554
555 .import-btn text {
556 margin-left: 4rpx;
557 }
558
559 /* 导入歌单弹层 */
560 .import-sheet {
561 position: fixed;
562 left: 0;
563 right: 0;
564 bottom: 0;
565 background: var(--card-bg-strong, #fff);
566 border-radius: 24rpx 24rpx 0 0;
567 padding: 0 32rpx calc(env(safe-area-inset-bottom) + 32rpx);
568 z-index: 1000;
569 }
570
571 .import-tip {
572 font-size: 24rpx;
573 color: var(--text-muted, #909399);
574 margin-bottom: 16rpx;
575 }
576
577 .import-input {
578 width: 100%;
579 height: 160rpx;
580 padding: 20rpx;
581 border-radius: 12rpx;
582 background: var(--fill-bg, #f7f8fa);
583 font-size: 26rpx;
584 color: #303133;
585 box-sizing: border-box;
586 }
587
588 /* 歌单名输入框 */
589 .name-input {
590 width: 100%;
591 height: 88rpx;
592 padding: 0 24rpx;
593 border-radius: 12rpx;
594 background: var(--fill-bg, #f7f8fa);
595 font-size: 28rpx;
596 color: #303133;
597 box-sizing: border-box;
598 }
599
600 .import-preview {
601 display: flex;
602 align-items: center;
603 margin-top: 24rpx;
604 padding: 20rpx;
605 border-radius: 12rpx;
606 background: var(--fill-bg, #f7f8fa);
607 }
608
609 .preview-img {
610 width: 96rpx;
611 height: 96rpx;
612 border-radius: 12rpx;
613 margin-right: 20rpx;
614 flex-shrink: 0;
615 }
616
617 .preview-info {
618 flex: 1;
619 min-width: 0;
620 display: flex;
621 flex-direction: column;
622 }
623
624 .preview-name {
625 font-size: 28rpx;
626 color: #303133;
627 font-weight: 500;
628 overflow: hidden;
629 text-overflow: ellipsis;
630 white-space: nowrap;
631 }
632
633 .preview-desc {
634 margin-top: 8rpx;
635 font-size: 24rpx;
636 color: var(--text-muted, #909399);
637 overflow: hidden;
638 text-overflow: ellipsis;
639 white-space: nowrap;
640 }
641
642 .import-confirm-btn {
643 margin-top: 32rpx;
644 background: var(--theme-color, #31c27c);
645 color: #fff;
646 border-radius: 40rpx;
647 font-size: 30rpx;
648 }
649
650 .import-confirm-btn[disabled] {
651 opacity: 0.5;
652 }
653
654 .import-cancel-btn {
655 margin-top: 16rpx;
656 background: var(--fill-bg, #f2f3f5);
657 color: var(--text-secondary, #606266);
658 border-radius: 40rpx;
659 font-size: 30rpx;
660 }
661
662 .list-container {
663 flex: 1;
664 display: flex;
665 flex-direction: column;
666 overflow: hidden;
667 }
668
669 .play-all-bar {
670 padding: 16rpx 24rpx calc(env(safe-area-inset-bottom) + 16rpx);
671 }
672
673 .play-all-btn {
674 height: 84rpx;
675 display: flex;
676 align-items: center;
677 justify-content: center;
678 border-radius: 42rpx;
679 background: var(--theme-color, #31c27c);
680 color: #fff;
681 font-size: 30rpx;
682 }
683
684 .play-all-btn text {
685 margin-left: 8rpx;
686 }
687
688 .mask {
689 position: fixed;
690 top: 0;
691 left: 0;
692 right: 0;
693 bottom: 0;
694 background: rgba(0, 0, 0, 0.5);
695 z-index: 999;
696 }
697
698 .action-sheet {
699 position: fixed;
700 left: 0;
701 right: 0;
702 bottom: 0;
703 background: var(--card-bg-strong, #fff);
704 border-radius: 24rpx 24rpx 0 0;
705 padding-bottom: calc(env(safe-area-inset-bottom));
706 z-index: 1000;
707 }
708
709 .sheet-title {
710 padding: 32rpx;
711 font-size: 28rpx;
712 color: var(--text-muted, #909399);
713 border-bottom: 1rpx solid #f5f6f8;
714 overflow: hidden;
715 text-overflow: ellipsis;
716 white-space: nowrap;
717 }
718
719 .action-item {
720 padding: 28rpx 32rpx;
721 font-size: 30rpx;
722 color: #303133;
723 text-align: center;
724 border-bottom: 1rpx solid #f5f6f8;
725 }
726
727 .action-item.cancel {
728 color: var(--text-muted, #909399);
729 border-bottom: none;
730 }
731
732 /* 批量修改栏 */
733 .batch-bar {
734 position: fixed;
735 left: 0;
736 right: 0;
737 bottom: 0;
738 background: var(--card-bg, #fff);
739 border-top: 1rpx solid #e5e6eb;
740 box-shadow: 0 -4rpx 16rpx rgba(0, 0, 0, 0.06);
741 padding: 12rpx 24rpx calc(env(safe-area-inset-bottom) + 12rpx);
742 display: flex;
743 align-items: center;
744 justify-content: space-between;
745 z-index: 998;
746 }
747 .batch-info {
748 font-size: 26rpx;
749 color: #303133;
750 font-weight: 500;
751 }
752 .batch-actions {
753 display: flex;
754 align-items: center;
755 gap: 24rpx;
756 }
757 .batch-btn {
758 display: flex;
759 align-items: center;
760 padding: 8rpx 16rpx;
761 border-radius: 8rpx;
762 background: var(--fill-bg, #f5f6f8);
763 font-size: 24rpx;
764 color: #303133;
765 }
766 .batch-btn text {
767 margin-left: 6rpx;
768 }
769 .batch-btn.exit {
770 background: #e5e6eb;
771 color: var(--text-secondary, #606266);
772 }
773
774 /* 底部播放栏 */
775 .bottom-bar {
776 padding-bottom: env(safe-area-inset-bottom);
777 }
778
779</style>