first commit
This commit is contained in:
@@ -0,0 +1,268 @@
|
||||
/**
|
||||
* 播放器详情页
|
||||
* 大封面、进度条、倍速切换、播放控制
|
||||
* 从 globalData.activeContent 获取当前节目
|
||||
*/
|
||||
const app = getApp()
|
||||
const api = require('../../utils/api')
|
||||
const util = require('../../utils/util')
|
||||
|
||||
Page({
|
||||
data: {
|
||||
domain: {},
|
||||
activeContent: null,
|
||||
isPlaying: false,
|
||||
isVip: false,
|
||||
currentTime: 0,
|
||||
duration: 0,
|
||||
currentTimeText: '00:00',
|
||||
durationText: '00:00',
|
||||
displayDate: '',
|
||||
playbackRate: 1.0,
|
||||
statusBarHeight: 0,
|
||||
showTranscript: false, // 封面 ⇔ 文案切换
|
||||
showSpeedSheet: false,
|
||||
speedItems: [
|
||||
{ label: '0.5x' },
|
||||
{ label: '0.75x' },
|
||||
{ label: '1.0x' },
|
||||
{ label: '1.25x' },
|
||||
{ label: '1.5x' },
|
||||
{ label: '2.0x' }
|
||||
]
|
||||
},
|
||||
|
||||
_isSeeking: false,
|
||||
|
||||
|
||||
onLoad() {
|
||||
},
|
||||
|
||||
onShow() {
|
||||
this._syncState()
|
||||
|
||||
// 监听播放状态
|
||||
this._onPlayerChange = (state) => {
|
||||
if (this._isSeeking) return
|
||||
this.setData({
|
||||
activeContent: state.activeContent,
|
||||
isPlaying: state.isPlaying,
|
||||
playbackRate: state.playbackRate
|
||||
})
|
||||
this._updateDomain()
|
||||
}
|
||||
|
||||
// 监听时间更新
|
||||
this._onTimeUpdate = (data) => {
|
||||
if (this._isSeeking) return
|
||||
this.setData({
|
||||
currentTime: data.currentTime,
|
||||
duration: data.duration || this.data.duration,
|
||||
currentTimeText: util.formatTime(data.currentTime),
|
||||
durationText: util.formatTime(data.duration || this.data.duration)
|
||||
})
|
||||
}
|
||||
|
||||
app.on('playerStateChange', this._onPlayerChange)
|
||||
app.on('timeUpdate', this._onTimeUpdate)
|
||||
},
|
||||
|
||||
onHide() {
|
||||
if (this._onPlayerChange) app.off('playerStateChange', this._onPlayerChange)
|
||||
if (this._onTimeUpdate) app.off('timeUpdate', this._onTimeUpdate)
|
||||
},
|
||||
|
||||
/**
|
||||
* 同步当前状态
|
||||
*/
|
||||
_syncState() {
|
||||
const gd = app.globalData
|
||||
const content = gd.activeContent
|
||||
|
||||
if (!content) {
|
||||
wx.navigateBack()
|
||||
return
|
||||
}
|
||||
|
||||
var dateStr = ''
|
||||
if (content.createdAt) {
|
||||
dateStr = content.createdAt.substring(0, 10).replace(/-/g, '.')
|
||||
} else if (content.date) {
|
||||
dateStr = util.dateToDot(content.date)
|
||||
}
|
||||
|
||||
this.setData({
|
||||
activeContent: content,
|
||||
isPlaying: gd.isPlaying,
|
||||
isVip: gd.isVip,
|
||||
currentTime: gd.currentTime,
|
||||
duration: gd.duration || content.duration,
|
||||
currentTimeText: util.formatTime(gd.currentTime),
|
||||
durationText: util.formatTime(gd.duration || content.duration),
|
||||
displayDate: dateStr,
|
||||
playbackRate: gd.playbackRate,
|
||||
statusBarHeight: gd.statusBarHeight || 0
|
||||
})
|
||||
|
||||
this._updateDomain()
|
||||
},
|
||||
|
||||
/**
|
||||
* 获取频道信息 — 从后端 API 获取
|
||||
*/
|
||||
_updateDomain() {
|
||||
const content = this.data.activeContent
|
||||
if (!content) return
|
||||
|
||||
var channelId = content.channelId || (content.channel && content.channel.id)
|
||||
if (!channelId) {
|
||||
// 如果节目数据中直接包含 channel 信息
|
||||
if (content.channel) {
|
||||
this.setData({ domain: content.channel })
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// 如果已经加载过且 channelId 没变,跳过
|
||||
if (this.data.domain && this.data.domain.id === channelId) return
|
||||
|
||||
var self = this
|
||||
api.getChannelDetail(channelId).then(function (res) {
|
||||
if (res.code === 200 && res.data) {
|
||||
self.setData({ domain: res.data })
|
||||
}
|
||||
}).catch(function (err) {
|
||||
console.error('[Player] 获取频道信息失败:', err)
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 播放/暂停
|
||||
*/
|
||||
onTogglePlay() {
|
||||
app.togglePlay()
|
||||
},
|
||||
|
||||
/**
|
||||
* 进度条拖动中
|
||||
*/
|
||||
onSliderChanging(e) {
|
||||
this._isSeeking = true
|
||||
this.setData({
|
||||
currentTime: e.detail.value,
|
||||
currentTimeText: util.formatTime(e.detail.value)
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 进度条拖动完成 → 跳转播放
|
||||
*/
|
||||
onSliderChange(e) {
|
||||
this._isSeeking = false
|
||||
app.seekTo(e.detail.value)
|
||||
},
|
||||
|
||||
/**
|
||||
* 快退 15 秒
|
||||
*/
|
||||
onBackward() {
|
||||
const newTime = Math.max(0, this.data.currentTime - 15)
|
||||
app.seekTo(newTime)
|
||||
},
|
||||
|
||||
/**
|
||||
* 快进 15 秒
|
||||
*/
|
||||
onForward() {
|
||||
const newTime = Math.min(this.data.duration, this.data.currentTime + 15)
|
||||
app.seekTo(newTime)
|
||||
},
|
||||
|
||||
/**
|
||||
* 倍速设置(VIP 功能)
|
||||
*/
|
||||
onSpeed() {
|
||||
if (!this.data.isVip) {
|
||||
wx.showModal({
|
||||
title: '会员提示',
|
||||
content: '倍速播放是会员专属功能,是否前往开通?',
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
wx.navigateTo({ url: '/pages/vip/index' })
|
||||
}
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.setData({ showSpeedSheet: true })
|
||||
}
|
||||
},
|
||||
|
||||
onSpeedSelect(e) {
|
||||
const label = this.data.speedItems[e.detail.index].label
|
||||
const rate = parseFloat(label)
|
||||
app.setPlaybackRate(rate)
|
||||
this.setData({ showSpeedSheet: false, playbackRate: rate })
|
||||
},
|
||||
|
||||
onSpeedCancel() {
|
||||
this.setData({ showSpeedSheet: false })
|
||||
},
|
||||
|
||||
/**
|
||||
* 下载(VIP 功能)
|
||||
*/
|
||||
onDownload() {
|
||||
if (!this.data.isVip) {
|
||||
wx.showModal({
|
||||
title: '会员提示',
|
||||
content: '音频下载是会员专属功能,是否前往开通?',
|
||||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
wx.navigateTo({ url: '/pages/vip/index' })
|
||||
}
|
||||
}
|
||||
})
|
||||
} else {
|
||||
wx.showToast({ title: '下载功能开发中', icon: 'none' })
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* 查看文案
|
||||
*/
|
||||
onTranscript() {
|
||||
const content = this.data.activeContent
|
||||
if (content && content.content) {
|
||||
wx.showModal({
|
||||
title: '完整文案',
|
||||
content: content.content,
|
||||
showCancel: false
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* 点击中央 Banner:封面 ⇔ 文案切换
|
||||
*/
|
||||
onBannerTap() {
|
||||
this.setData({ showTranscript: !this.data.showTranscript })
|
||||
},
|
||||
|
||||
onLike() {
|
||||
const content = this.data.activeContent
|
||||
if (!content) return
|
||||
api.toggleLike({ contentId: content.id }).then(function (res) {
|
||||
wx.showToast({ title: res.code === 200 ? '已收藏 ♥' : '操作失败', icon: 'none' })
|
||||
}).catch(function () {
|
||||
wx.showToast({ title: '网络异常', icon: 'none' })
|
||||
})
|
||||
},
|
||||
|
||||
onShare() {
|
||||
wx.showToast({ title: '分享功能开发中', icon: 'none' })
|
||||
},
|
||||
|
||||
goBack() {
|
||||
wx.navigateBack()
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
"t-action-sheet": "tdesign-miniprogram/action-sheet/action-sheet"
|
||||
},
|
||||
"navigationStyle": "custom",
|
||||
"navigationBarTitleText": "正在播放"
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
<!-- 播放器详情页 -->
|
||||
<page-meta page-style="overflow:hidden; background:#1A1208;" />
|
||||
<view class="player-page">
|
||||
|
||||
<!-- 状态栏占位(custom 导航模式必须手动留出状态栏高度) -->
|
||||
<view style="height: {{statusBarHeight}}px; flex-shrink: 0;"></view>
|
||||
|
||||
<!-- 环境光背景 -->
|
||||
<view class="bg-glow"
|
||||
style="background: radial-gradient(ellipse at 50% -10%, {{domain.bgColor || '#FF9D42'}}44 0%, transparent 65%);">
|
||||
</view>
|
||||
|
||||
<!-- 顶部:返回 + 标题 + 分享 -->
|
||||
<view class="top-bar">
|
||||
<view class="top-btn tap-active" bindtap="goBack">
|
||||
<text class="top-back">‹</text>
|
||||
</view>
|
||||
<view class="top-title-wrap">
|
||||
<text class="top-label">正在播放</text>
|
||||
<text class="top-title">{{activeContent.title || '加载中...'}}</text>
|
||||
</view>
|
||||
<view class="top-btn tap-active" bindtap="onShare">
|
||||
<text class="top-share">↑</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 中央 Banner:封面 ↔ 文案 -->
|
||||
<view class="banner-area" bindtap="onBannerTap">
|
||||
|
||||
<!-- 封面视图(默认) -->
|
||||
<view class="banner-cover {{showTranscript ? 'banner-hidden' : ''}}">
|
||||
<!-- 涟漪声波(播放中才显示) -->
|
||||
<view class="ripple-wrap" wx:if="{{isPlaying}}">
|
||||
<view class="ripple-ring" style="animation-delay: 0s;"></view>
|
||||
<view class="ripple-ring" style="animation-delay: 0.7s;"></view>
|
||||
<view class="ripple-ring" style="animation-delay: 1.4s;"></view>
|
||||
</view>
|
||||
|
||||
<!-- 大 emoji,无卡片背景 -->
|
||||
<text class="cover-emoji {{isPlaying ? 'emoji-active' : ''}}">📻</text>
|
||||
|
||||
<!-- 频道名 -->
|
||||
<text class="cover-channel">{{domain.name}}</text>
|
||||
|
||||
<text class="banner-hint">点击查看文案</text>
|
||||
</view>
|
||||
|
||||
<!-- 文案视图 -->
|
||||
<view class="banner-transcript {{showTranscript ? '' : 'banner-hidden'}}">
|
||||
<scroll-view scroll-y enhanced show-scrollbar="{{false}}" class="transcript-scroll">
|
||||
<text class="transcript-content" wx:if="{{activeContent.content}}">{{activeContent.content}}</text>
|
||||
<view wx:else class="transcript-empty">
|
||||
<text class="transcript-empty-icon">📄</text>
|
||||
<text class="transcript-empty-text">暂无文案</text>
|
||||
</view>
|
||||
</scroll-view>
|
||||
<text class="banner-hint">点击返回封面</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 日期 + like 同行,进度条上方 -->
|
||||
<view class="date-like-row">
|
||||
<text class="date-text">{{displayDate}}</text>
|
||||
<view class="like-btn-inline tap-active" bindtap="onLike">
|
||||
<text class="like-icon">♡</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 进度条 -->
|
||||
<view class="progress-section">
|
||||
<slider
|
||||
class="progress-slider"
|
||||
min="0"
|
||||
max="{{duration}}"
|
||||
value="{{currentTime}}"
|
||||
activeColor="#FF9D42"
|
||||
backgroundColor="rgba(255,255,255,0.12)"
|
||||
block-size="14"
|
||||
block-color="#FF9D42"
|
||||
bindchange="onSliderChange"
|
||||
bindchanging="onSliderChanging"
|
||||
/>
|
||||
<view class="time-row">
|
||||
<text class="time-text">{{currentTimeText}}</text>
|
||||
<text class="time-text">{{durationText}}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 控制区:← 15s | 播放/暂停 | 15s → -->
|
||||
<view class="controls-row">
|
||||
<view class="skip-btn tap-active" bindtap="onBackward">
|
||||
<text class="skip-arrow">↺</text>
|
||||
<text class="skip-sec">15</text>
|
||||
</view>
|
||||
|
||||
<view class="play-btn tap-active" bindtap="onTogglePlay">
|
||||
<view wx:if="{{isPlaying}}" class="pause-group">
|
||||
<view class="pause-bar"></view>
|
||||
<view class="pause-bar"></view>
|
||||
</view>
|
||||
<text wx:else class="play-tri">▶</text>
|
||||
</view>
|
||||
|
||||
<view class="skip-btn tap-active" bindtap="onForward">
|
||||
<text class="skip-arrow">↻</text>
|
||||
<text class="skip-sec">15</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 倍速选择面板 -->
|
||||
<t-action-sheet
|
||||
visible="{{showSpeedSheet}}"
|
||||
items="{{speedItems}}"
|
||||
bind:selected="onSpeedSelect"
|
||||
bind:cancel="onSpeedCancel"
|
||||
/>
|
||||
</view>
|
||||
@@ -0,0 +1,322 @@
|
||||
/* 播放器 — 暖棕沉浸主题 */
|
||||
::-webkit-scrollbar { display: none !important; }
|
||||
|
||||
.player-page {
|
||||
height: 100vh;
|
||||
background: #1A1208;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* 环境光 */
|
||||
.bg-glow {
|
||||
position: absolute;
|
||||
top: 0; left: 0; right: 0;
|
||||
height: 60vh;
|
||||
pointer-events: none;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
/* ── 顶部栏 ── */
|
||||
.top-bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 16rpx 32rpx 12rpx;
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
}
|
||||
.top-btn {
|
||||
width: 72rpx;
|
||||
height: 72rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 50%;
|
||||
background: rgba(255,255,255,0.06);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.top-back {
|
||||
font-size: 48rpx;
|
||||
color: rgba(255,240,210,0.9);
|
||||
font-weight: 300;
|
||||
line-height: 1;
|
||||
margin-top: -4rpx;
|
||||
}
|
||||
.top-share {
|
||||
font-size: 32rpx;
|
||||
color: rgba(255,220,160,0.6);
|
||||
font-weight: 600;
|
||||
}
|
||||
.top-title-wrap {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
overflow: hidden;
|
||||
padding: 0 16rpx;
|
||||
}
|
||||
.top-label {
|
||||
display: block;
|
||||
font-size: 18rpx;
|
||||
color: rgba(255,200,120,0.45);
|
||||
letter-spacing: 2rpx;
|
||||
margin-bottom: 6rpx;
|
||||
}
|
||||
.top-title {
|
||||
display: block;
|
||||
font-size: 26rpx;
|
||||
font-weight: 700;
|
||||
color: rgba(255,240,210,0.95);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* ── 中央 Banner ── */
|
||||
.banner-area {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
padding: 0 40rpx;
|
||||
}
|
||||
|
||||
.banner-cover,
|
||||
.banner-transcript {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: opacity 0.35s ease, transform 0.35s ease;
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
.banner-hidden {
|
||||
opacity: 0;
|
||||
transform: scale(0.96);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* ── 涟漪声波 ── */
|
||||
.ripple-wrap {
|
||||
position: absolute;
|
||||
width: 300rpx;
|
||||
height: 300rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.ripple-ring {
|
||||
position: absolute;
|
||||
width: 220rpx;
|
||||
height: 220rpx;
|
||||
border-radius: 50%;
|
||||
border: 2rpx solid rgba(255, 157, 66, 0.5);
|
||||
animation: ripple-out 2.1s ease-out infinite;
|
||||
}
|
||||
@keyframes ripple-out {
|
||||
0% { transform: scale(0.6); opacity: 0.8; }
|
||||
100% { transform: scale(2.4); opacity: 0; }
|
||||
}
|
||||
|
||||
/* ── 大 Emoji(无卡片背景) ── */
|
||||
.cover-emoji {
|
||||
font-size: 180rpx;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
|
||||
transform: scale(0.9);
|
||||
filter: drop-shadow(0 20rpx 40rpx rgba(0,0,0,0.5));
|
||||
}
|
||||
.cover-emoji.emoji-active {
|
||||
transform: scale(1.05);
|
||||
}
|
||||
.cover-channel {
|
||||
font-size: 22rpx;
|
||||
font-weight: 600;
|
||||
color: rgba(255,200,120,0.45);
|
||||
letter-spacing: 2rpx;
|
||||
margin-top: 24rpx;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
/* 提示文字 */
|
||||
.banner-hint {
|
||||
display: block;
|
||||
margin-top: 20rpx;
|
||||
font-size: 20rpx;
|
||||
color: rgba(255,200,120,0.3);
|
||||
letter-spacing: 1rpx;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
/* ── 文案视图 ── */
|
||||
.banner-transcript {
|
||||
padding: 24rpx 48rpx 16rpx;
|
||||
flex-direction: column;
|
||||
}
|
||||
.transcript-scroll {
|
||||
flex: 1;
|
||||
width: 100%;
|
||||
max-height: 480rpx;
|
||||
background: rgba(255,200,120,0.05);
|
||||
border-radius: 32rpx;
|
||||
border: 1rpx solid rgba(255,200,120,0.12);
|
||||
padding: 32rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.transcript-content {
|
||||
font-size: 28rpx;
|
||||
line-height: 1.95;
|
||||
color: rgba(255,240,210,0.8);
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
.transcript-empty {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 40rpx 0;
|
||||
}
|
||||
.transcript-empty-icon { font-size: 60rpx; }
|
||||
.transcript-empty-text {
|
||||
font-size: 24rpx;
|
||||
color: rgba(255,200,120,0.4);
|
||||
margin-top: 12rpx;
|
||||
}
|
||||
|
||||
/* 日期 + like 同行 */
|
||||
.date-like-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 0 48rpx;
|
||||
margin-bottom: 4rpx;
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
}
|
||||
.date-text {
|
||||
font-size: 22rpx;
|
||||
color: rgba(255,200,120,0.4);
|
||||
letter-spacing: 1rpx;
|
||||
}
|
||||
.like-btn-inline {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 4rpx 0;
|
||||
}
|
||||
.like-icon {
|
||||
font-size: 40rpx;
|
||||
color: rgba(255,200,120,0.55);
|
||||
}
|
||||
|
||||
/* ── 进度条 + like 浮动 ── */
|
||||
.progress-section {
|
||||
padding: 0 48rpx;
|
||||
margin-bottom: 16rpx;
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
}
|
||||
/* like 按钮已内联至 time-row,旧绝对定位样式已移除 */
|
||||
|
||||
.progress-slider { margin: 0; }
|
||||
.time-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-top: 8rpx;
|
||||
}
|
||||
.time-text {
|
||||
font-size: 22rpx;
|
||||
color: rgba(255,200,120,0.4);
|
||||
font-family: 'Menlo', 'SF Mono', monospace;
|
||||
font-weight: 600;
|
||||
}
|
||||
/* like 按鈕内联在时间行中间 */
|
||||
.like-btn-inline {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 4rpx 16rpx;
|
||||
}
|
||||
.like-icon {
|
||||
font-size: 40rpx;
|
||||
color: rgba(255,200,120,0.55);
|
||||
}
|
||||
|
||||
/* ── 控制区 ── */
|
||||
.controls-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 64rpx;
|
||||
padding: 16rpx 48rpx 64rpx;
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
}
|
||||
.skip-btn {
|
||||
width: 96rpx;
|
||||
height: 96rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
}
|
||||
.skip-arrow {
|
||||
font-size: 76rpx;
|
||||
color: rgba(255,220,160,0.8);
|
||||
line-height: 1;
|
||||
}
|
||||
.skip-sec {
|
||||
position: absolute;
|
||||
font-size: 19rpx;
|
||||
font-weight: 800;
|
||||
color: rgba(255,220,160,0.8);
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -46%);
|
||||
letter-spacing: -1rpx;
|
||||
}
|
||||
.play-btn {
|
||||
width: 136rpx;
|
||||
height: 136rpx;
|
||||
border-radius: 50%;
|
||||
background: #FF9D42;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-shadow:
|
||||
0 16rpx 48rpx rgba(255, 157, 66, 0.5),
|
||||
0 0 0 12rpx rgba(255, 157, 66, 0.15);
|
||||
transition: transform 0.15s, box-shadow 0.15s;
|
||||
}
|
||||
.play-btn:active {
|
||||
transform: scale(0.92);
|
||||
box-shadow:
|
||||
0 8rpx 24rpx rgba(255, 157, 66, 0.4),
|
||||
0 0 0 8rpx rgba(255, 157, 66, 0.1);
|
||||
}
|
||||
.play-tri {
|
||||
font-size: 52rpx;
|
||||
color: #FFF8EE;
|
||||
margin-left: 8rpx;
|
||||
line-height: 1;
|
||||
}
|
||||
.pause-group {
|
||||
display: flex;
|
||||
gap: 12rpx;
|
||||
align-items: center;
|
||||
}
|
||||
.pause-bar {
|
||||
width: 10rpx;
|
||||
height: 44rpx;
|
||||
background: #FFF8EE;
|
||||
border-radius: 5rpx;
|
||||
}
|
||||
Reference in New Issue
Block a user