diff --git a/subPages/home/AudioControls.vue b/subPages/home/AudioControls.vue new file mode 100644 index 0000000..012b774 --- /dev/null +++ b/subPages/home/AudioControls.vue @@ -0,0 +1,1182 @@ + + + + + \ No newline at end of file diff --git a/subPages/home/book.vue b/subPages/home/book.vue index 6d03229..00f3627 100644 --- a/subPages/home/book.vue +++ b/subPages/home/book.vue @@ -17,7 +17,6 @@ - - - - - - 获取第{{currentPage}}页音频 - - - - - - - 正在加载第{{currentPage}}页音频... - - - - - - {{ formatTime(currentTime) }} - - - - {{ formatTime(totalTime) }} - - - - - - 循环 - - - - 上一页 - - - - - - - - 下一页 - - - - - {{ playbackRateSupported ? playSpeed + 'x' : '不支持' }} - - - - + + @@ -280,7 +228,12 @@ @@ -2247,149 +1960,5 @@ export default { line-height: 48rpx; } -/* 音频控制栏样式 */ -.audio-controls { - background: #fff; - padding: 20rpx 40rpx; - border-bottom: 1rpx solid #eee; - transition: transform 0.3s ease; - position: relative; - z-index: 10; - &.audio-hidden { - transform: translateY(100%); - - } -} -.audio-time { - display: flex; - align-items: center; - margin-bottom: 20rpx; -} - -.time-text { - font-size: 28rpx; - color: #999; - min-width: 80rpx; -} - -.progress-container { - flex: 1; - margin: 0 20rpx; -} - -.progress-bar { - position: relative; - height: 6rpx; - background: #f0f0f0; - border-radius: 3rpx; -} - -.progress-fill { - position: absolute; - left: 0; - top: 0; - height: 100%; - background: #06DADC; - border-radius: 3rpx; - transition: width 0.1s ease; -} - -.progress-thumb { - position: absolute; - top: 50%; - width: 16rpx; - height: 16rpx; - background: #06DADC; - border-radius: 50%; - transform: translate(-50%, -50%); - transition: left 0.1s ease; -} - -.audio-controls-row { - display: flex; - align-items: center; - justify-content: space-between; -} - -.control-btn { - display: flex; - // flex-direction: column; - align-items: center; - - padding: 10rpx; - gap: 8rpx; -} - -.control-btn.disabled { - pointer-events: none; - opacity: 0.6; -} - -.control-text { - font-size: 28rpx; - color: #4A4A4A; - // margin-top: 8rpx; -} - -.play-btn { - display: flex; - align-items: center; - justify-content: center; - padding: 10rpx; -} - -/* 音频加载状态样式 */ -.audio-loading-container { - background: #fff; - padding: 40rpx; - border-bottom: 1rpx solid #eee; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - gap: 20rpx; - position: relative; - z-index: 10; -} - -.loading-text { - font-size: 28rpx; - color: #999; -} - -/* 获取音频按钮样式 */ -.audio-get-button-container { - background: rgba(255, 255, 255, 0.95); - backdrop-filter: blur(10px); - padding: 30rpx; - border-radius: 20rpx; - border: 2rpx solid #E5E5E5; - transition: all 0.3s ease; - position: relative; - z-index: 10; -} - -.get-audio-btn { - display: flex; - align-items: center; - justify-content: center; - gap: 16rpx; - padding: 20rpx 40rpx; - background: linear-gradient(135deg, #06DADC 0%, #04B8BA 100%); - border-radius: 50rpx; - box-shadow: 0 8rpx 20rpx rgba(6, 218, 220, 0.3); - transition: all 0.3s ease; -} - -.get-audio-btn:active { - transform: scale(0.95); - box-shadow: 0 4rpx 10rpx rgba(6, 218, 220, 0.2); -} - -.get-audio-text { - font-size: 32rpx; - color: #FFFFFF; - font-weight: 500; -} \ No newline at end of file