|
@@ -6,7 +6,7 @@
|
|
padding: showSlider ? '4px 16px' : '',
|
|
padding: showSlider ? '4px 16px' : '',
|
|
width: showSlider ? '230px' : '',
|
|
width: showSlider ? '230px' : '',
|
|
justifyContent: showSlider && !showProgress ? 'space-between' : 'center',
|
|
justifyContent: showSlider && !showProgress ? 'space-between' : 'center',
|
|
- backgroundColor: backgroundColor,
|
|
|
|
|
|
+ backgroundColor: themeColor ? '' : bookInfo.theme_color,
|
|
}"
|
|
}"
|
|
@click="playAudio"
|
|
@click="playAudio"
|
|
>
|
|
>
|
|
@@ -69,11 +69,6 @@ export default {
|
|
type: Boolean,
|
|
type: Boolean,
|
|
default: true,
|
|
default: true,
|
|
},
|
|
},
|
|
- // 播放背景色
|
|
|
|
- backgroundColor: {
|
|
|
|
- type: String,
|
|
|
|
- default: '',
|
|
|
|
- },
|
|
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -93,6 +88,7 @@ export default {
|
|
audio_allTime: null, // 展示总时间
|
|
audio_allTime: null, // 展示总时间
|
|
};
|
|
};
|
|
},
|
|
},
|
|
|
|
+ inject: ['bookInfo'],
|
|
computed: {
|
|
computed: {
|
|
iconClass() {
|
|
iconClass() {
|
|
return this.audio.paused ? 'audio' : 'audio-stop';
|
|
return this.audio.paused ? 'audio' : 'audio-stop';
|