|
|
@@ -261,7 +261,7 @@
|
|
|
export default {
|
|
|
//import引入的组件需要注入到对象中才能使用
|
|
|
components: {},
|
|
|
- props: ['fontSize', 'sentenceTheme', 'data', 'activeIndex', 'mp3Url', 'multilingualTextList', 'property'],
|
|
|
+ props: ['fontSize', 'sentenceTheme', 'data', 'activeIndex', 'mp3Url', 'multilingualTextList', 'property', 'attrib'],
|
|
|
data() {
|
|
|
//这里存放数据
|
|
|
return {
|
|
|
@@ -435,6 +435,25 @@ export default {
|
|
|
},
|
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
|
|
created() {
|
|
|
+ if (this.attrib) {
|
|
|
+ this.themeList[0] = {
|
|
|
+ type: 'white',
|
|
|
+ bg: '#E5E6EB',
|
|
|
+ playBtnBg: this.attrib.topic_color, // 播放按钮背景色
|
|
|
+ rightBtnColor: 'rgba(0, 0, 0, 0.96)', // 右侧按钮颜色
|
|
|
+ contentBg: '#F7F8FA',
|
|
|
+ sentenceColor: 'rgba(0, 0, 0, 0.96)',
|
|
|
+ sentenceActiveColor: this.attrib.topic_color,
|
|
|
+ bottomBg: '#F2F3F5',
|
|
|
+ bottomBarActiveBtnBg: '#FFFFFF',
|
|
|
+ bottomBarColor: '#4E5969',
|
|
|
+ bottomBarActive: this.attrib.topic_color,
|
|
|
+ bottomBarBorder: '#E5E6EB',
|
|
|
+ themeBg: '#FFFFFF',
|
|
|
+ themeActiveBorder: '#E5E6EB',
|
|
|
+ boxBorder: this.attrib.topic_color, // 选中时高亮的外圈边框
|
|
|
+ };
|
|
|
+ }
|
|
|
this.handleData();
|
|
|
},
|
|
|
//生命周期 - 挂载完成(可以访问DOM元素)
|