|
@@ -20,7 +20,12 @@
|
|
|
<div class="artricle-inner" :style="{background:bgColorList[activeIndex].contentInnerBg}">
|
|
|
<!-- 文章 -->
|
|
|
<div class="atricle-data">
|
|
|
- <normal-model :titleFontsize="wordFontsize+30" :wordFontsize="wordFontsize"></normal-model>
|
|
|
+ <normal-model :titleFontsize="wordFontsize+30" :wordFontsize="wordFontsize" :colorObj="bgColorList[activeIndex]" :style="{'padding':'0 40px'}"></normal-model>
|
|
|
+ <div class="article-btn">
|
|
|
+ <el-button type="text" class="btn-left" @click="handlePage('-')"><svg-icon icon-class="arrow-left-line"></svg-icon>上一页</el-button>
|
|
|
+ <el-button class="explain-video"><svg-icon icon-class="check-double-line"></svg-icon>已读</el-button>
|
|
|
+ <el-button type="text" class="btn-right" @click="handlePage('+')">下一页<svg-icon icon-class="arrow-right-line"></svg-icon></el-button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<!-- 词汇表 -->
|
|
|
<div class="glossary-box" :style="{borderTopColor:bgColorList[activeIndex].contentBg}">
|
|
@@ -91,7 +96,7 @@ export default {
|
|
|
},
|
|
|
data(){
|
|
|
return{
|
|
|
- wordFontsize: 14, // 文章文字大小
|
|
|
+ wordFontsize: 16, // 文章文字大小
|
|
|
bgColorList:[
|
|
|
{
|
|
|
type:'white',
|
|
@@ -528,6 +533,13 @@ export default {
|
|
|
handleChangeBgColor(index){
|
|
|
this.activeIndex = index
|
|
|
this.inityuan()
|
|
|
+ },
|
|
|
+ handlePage(type){
|
|
|
+ if(type==='-'){
|
|
|
+
|
|
|
+ }else{
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
created(){
|
|
@@ -581,7 +593,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
.atricle-data{
|
|
|
- padding: 160px 100px 40px 100px;
|
|
|
+ padding: 120px 100px 40px 100px;
|
|
|
}
|
|
|
.glossary-box{
|
|
|
border-top: 1px solid #F2F3F5;
|
|
@@ -666,6 +678,40 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+.article-btn{
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: space-between;
|
|
|
+ .btn-left,.btn-right{
|
|
|
+ color: #3459D2;
|
|
|
+ font-size: 16px;
|
|
|
+ line-height: 24px;
|
|
|
+ .svg-icon{
|
|
|
+ margin-right: 12px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .btn-right{
|
|
|
+ .svg-icon{
|
|
|
+ margin-right: 0;
|
|
|
+ margin-left: 12px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .explain-video{
|
|
|
+ font-weight: 400;
|
|
|
+ font-size: 16px;
|
|
|
+ line-height: 40px;
|
|
|
+ padding: 0;
|
|
|
+ color: rgba(255, 255, 255, 0.88);
|
|
|
+ width: 120px;
|
|
|
+ height: 40px;
|
|
|
+ background: #3459D2;
|
|
|
+ border-radius: 30px;
|
|
|
+ border: none;
|
|
|
+ .svg-icon{
|
|
|
+ margin-right: 24px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|
|
|
<style lang="scss">
|
|
|
.article-fontsize{
|