|
@@ -26,27 +26,27 @@
|
|
|
<inner-text-search :titleFontsize="48" :wordFontsize="wordFontsize" :colorObj="bgColorList[activeIndex]" :articleType="articleType" :style="{'padding':'0 40px'}" v-if="menuType==='search'" :articleInfo="articleInfo" ref="innerTextSearchs" :likeSentencelist="likeSentencelist" :likeWord="likeWordList"></inner-text-search>
|
|
|
<lexical-type :titleFontsize="48" :wordFontsize="wordFontsize" :colorObj="bgColorList[activeIndex]" :articleType="articleType" :style="{'padding':'0 40px'}" v-if="menuType==='filtrate'" :articleInfo="articleInfo" ref="lexicalType" :likeSentencelist="likeSentencelist" :likeWord="likeWordList"></lexical-type>
|
|
|
<notes-model :titleFontsize="48" :wordFontsize="wordFontsize" :colorObj="bgColorList[activeIndex]" :articleType="articleType" :style="{'padding':'0 40px'}" v-if="menuType==='notebook'" :articleInfo="articleInfo" :likeSentencelist="likeSentencelist" :likeWord="likeWordList"></notes-model>
|
|
|
- <div class="article-btn" v-if="this.$route.query.iss_id&&menuType!=='practice'">
|
|
|
- <div class="left">
|
|
|
- <span :class="['support colloct-article',!noRead?'active':'']" @click="changeStatus('noRead')"><svg-icon icon-class="like-line" :style="{marginRight:articleNumber?'8px':'0px'}"></svg-icon>{{articleNumber?articleNumber:''}}</span>
|
|
|
- <!-- <span :class="['oppose',oppose?'active':'']" @click="changeStatus('oppose')"><svg-icon icon-class="oppose"></svg-icon></span> -->
|
|
|
- </div>
|
|
|
- <div class="center">
|
|
|
- <el-button type="text" class="btn-left" :class="[activeArticleIndex===0?'not-allow':'']" @click="handlePage('-')"><svg-icon icon-class="arrow-left-line"></svg-icon>上一篇</el-button>
|
|
|
- <el-button type="text" class="btn-right" :class="[activeArticleIndex===issueChnTanList.length-1?'not-allow':'']" @click="handlePage('+')">下一篇<svg-icon icon-class="arrow-right-line"></svg-icon></el-button>
|
|
|
- </div>
|
|
|
- <div class="right">
|
|
|
- <template v-if="support">
|
|
|
- <span class="support" @click="handleReadArticle"><svg-icon icon-class="no-read"></svg-icon>标记为已读</span>
|
|
|
- </template>
|
|
|
- <template v-else>
|
|
|
- <span class="support readed"><svg-icon icon-class="readed"></svg-icon>已读</span>
|
|
|
- </template>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+ <div class="article-btn" v-if="this.$route.query.iss_id&&menuType!=='practice'" :style="{background:bgColorList[activeIndex].glossaryBg}">
|
|
|
+ <div class="left">
|
|
|
+ <span :class="['support colloct-article',!noRead?'active':'']" @click="changeStatus('noRead')"><svg-icon icon-class="like-line" :style="{marginRight:articleNumber?'8px':'0px'}"></svg-icon>{{articleNumber?articleNumber:''}}</span>
|
|
|
+ <!-- <span :class="['oppose',oppose?'active':'']" @click="changeStatus('oppose')"><svg-icon icon-class="oppose"></svg-icon></span> -->
|
|
|
+ </div>
|
|
|
+ <div class="center">
|
|
|
+ <el-button type="text" class="btn-left" :class="[activeArticleIndex===0?'not-allow':'']" @click="handlePage('-')" :style="{color: bgColorList[activeIndex].btnColor}"><svg-icon icon-class="arrow-left-line"></svg-icon>上一篇</el-button>
|
|
|
+ <el-button type="text" class="btn-right" :class="[activeArticleIndex===issueChnTanList.length-1?'not-allow':'']" @click="handlePage('+')" :style="{color: bgColorList[activeIndex].btnColor}">下一篇<svg-icon icon-class="arrow-right-line"></svg-icon></el-button>
|
|
|
+ </div>
|
|
|
+ <div class="right">
|
|
|
+ <template v-if="support">
|
|
|
+ <span class="support" @click="handleReadArticle" :style="{color: bgColorList[activeIndex].btnColor}"><svg-icon icon-class="no-read"></svg-icon>标记为已读</span>
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <span class="support readed" :style="{color: bgColorList[activeIndex].btnColor}"><svg-icon icon-class="readed" :style="{color: bgColorList[activeIndex].btnColor}"></svg-icon>已读</span>
|
|
|
+ </template>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 词汇表 -->
|
|
|
- <div class="glossary-box" :style="{borderTopColor:bgColorList[activeIndex].contentBg}" v-if="menuType!=='practice'">
|
|
|
+ <div class="glossary-box" v-if="menuType!=='practice'">
|
|
|
<div class="title" :style="{color:bgColorList[activeIndex].glossaryTitle}">
|
|
|
<h2>词汇表</h2>
|
|
|
<a @click="showGlossary=!showGlossary">{{showGlossary?'收起':'展开'}}</a>
|
|
@@ -69,44 +69,49 @@
|
|
|
</el-collapse-transition>
|
|
|
<div class="title" :style="{color:bgColorList[activeIndex].glossaryTitle,marginTop:'40px'}">
|
|
|
<h2>详细统计</h2>
|
|
|
+ <a @click="showWordInfo=!showWordInfo">{{showWordInfo?'收起':'展开'}}</a>
|
|
|
</div>
|
|
|
- <h4 :style="{color:bgColorList[activeIndex].glossarySubtitle}">词汇信息</h4>
|
|
|
- <div class="word-info" v-if="articleInfo.art_corpus_data&&articleInfo.art_corpus_data.artStatInfo">
|
|
|
- <div :style="{background:bgColorList[activeIndex].glossaryBg}">
|
|
|
- <label :style="{color:bgColorList[activeIndex].statisticTitle}">文章长度</label>
|
|
|
- <span :style="{color:bgColorList[activeIndex].statisticValue}">{{articleInfo.art_corpus_data.artStatInfo.wc}}</span>
|
|
|
- </div>
|
|
|
- <div :style="{background:bgColorList[activeIndex].glossaryBg}">
|
|
|
- <label :style="{color:bgColorList[activeIndex].statisticTitle}">词汇数量</label>
|
|
|
- <span :style="{color:bgColorList[activeIndex].statisticValue}">{{articleInfo.art_corpus_data.artStatInfo.wdc}}</span>
|
|
|
- </div>
|
|
|
- <div :style="{background:bgColorList[activeIndex].glossaryBg}">
|
|
|
- <label :style="{color:bgColorList[activeIndex].statisticTitle}">平均词长</label>
|
|
|
- <span :style="{color:bgColorList[activeIndex].statisticValue}">{{articleInfo.art_corpus_data.artStatInfo.avgWordLen}}</span>
|
|
|
- </div>
|
|
|
- <div :style="{background:bgColorList[activeIndex].glossaryBg}">
|
|
|
- <label :style="{color:bgColorList[activeIndex].statisticTitle}">词汇密度</label>
|
|
|
- <span :style="{color:bgColorList[activeIndex].statisticValue}">{{articleInfo.art_corpus_data.artStatInfo.vocabDensity}}</span>
|
|
|
- </div>
|
|
|
- <div :style="{background:bgColorList[activeIndex].glossaryBg}">
|
|
|
- <label :style="{color:bgColorList[activeIndex].statisticTitle}">词汇难度</label>
|
|
|
- <span :style="{color:bgColorList[activeIndex].statisticValue}">{{articleInfo.art_corpus_data.artStatInfo.vocabHardLevel}}</span>
|
|
|
+ <el-collapse-transition >
|
|
|
+ <div v-if="showWordInfo">
|
|
|
+ <h4 :style="{color:bgColorList[activeIndex].glossarySubtitle}">词汇信息</h4>
|
|
|
+ <div class="word-info" v-if="articleInfo.art_corpus_data&&articleInfo.art_corpus_data.artStatInfo">
|
|
|
+ <div :style="{background:bgColorList[activeIndex].glossaryBg}">
|
|
|
+ <label :style="{color:bgColorList[activeIndex].statisticTitle}">文章长度</label>
|
|
|
+ <span :style="{color:bgColorList[activeIndex].statisticValue}">{{articleInfo.art_corpus_data.artStatInfo.wc}}</span>
|
|
|
+ </div>
|
|
|
+ <div :style="{background:bgColorList[activeIndex].glossaryBg}">
|
|
|
+ <label :style="{color:bgColorList[activeIndex].statisticTitle}">词汇数量</label>
|
|
|
+ <span :style="{color:bgColorList[activeIndex].statisticValue}">{{articleInfo.art_corpus_data.artStatInfo.wdc}}</span>
|
|
|
+ </div>
|
|
|
+ <div :style="{background:bgColorList[activeIndex].glossaryBg}">
|
|
|
+ <label :style="{color:bgColorList[activeIndex].statisticTitle}">平均词长</label>
|
|
|
+ <span :style="{color:bgColorList[activeIndex].statisticValue}">{{articleInfo.art_corpus_data.artStatInfo.avgWordLen}}</span>
|
|
|
+ </div>
|
|
|
+ <div :style="{background:bgColorList[activeIndex].glossaryBg}">
|
|
|
+ <label :style="{color:bgColorList[activeIndex].statisticTitle}">词汇密度</label>
|
|
|
+ <span :style="{color:bgColorList[activeIndex].statisticValue}">{{articleInfo.art_corpus_data.artStatInfo.vocabDensity}}</span>
|
|
|
+ </div>
|
|
|
+ <div :style="{background:bgColorList[activeIndex].glossaryBg}">
|
|
|
+ <label :style="{color:bgColorList[activeIndex].statisticTitle}">词汇难度</label>
|
|
|
+ <span :style="{color:bgColorList[activeIndex].statisticValue}">{{articleInfo.art_corpus_data.artStatInfo.vocabHardLevel}}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <h4 :style="{color:bgColorList[activeIndex].glossarySubtitle}">词汇分布</h4>
|
|
|
+ <div class="echarts-box" v-if="articleInfo&&articleInfo.art_corpus_data&&articleInfo.art_corpus_data.artStatInfo&&articleInfo.art_corpus_data.artStatInfo.vocabVlLevelItems">
|
|
|
+ <ul class="echarts-type">
|
|
|
+ <li v-for="(itemE,indexE) in articleInfo.art_corpus_data.artStatInfo.vocabVlLevelItems" :key="indexE"
|
|
|
+ @mouseover="gaolangbzt(indexE, 'shanxing_main')"
|
|
|
+ @mouseout="closegaolangbzt(indexE, 'shanxing_main')"
|
|
|
+ :style="{background:bgColorList[activeIndex].type==='white'?itemE.bg:bgColorList[activeIndex].type==='darkGreen'?itemE.darkGreenBg:itemE.darkBg,color:bgColorList[activeIndex].type==='white'?itemE.color:bgColorList[activeIndex].type==='darkGreen'?itemE.darkGreenColor:itemE.darkColor,borderColor:bgColorList[activeIndex].type==='white'?itemE.border:bgColorList[activeIndex].type==='darkGreen'?itemE.darkGreenBorder:itemE.darkBorder}">
|
|
|
+ <span class="name">{{itemE.vlCnName}}</span>
|
|
|
+ <span class="number">{{itemE.value}}</span>
|
|
|
+ <span class="percent">{{itemE.vocabPercentStr}}</span>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ <div id="shanxing_main" style="height: 360px"></div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <h4 :style="{color:bgColorList[activeIndex].glossarySubtitle}">词汇分布</h4>
|
|
|
- <div class="echarts-box" v-if="articleInfo&&articleInfo.art_corpus_data&&articleInfo.art_corpus_data.artStatInfo&&articleInfo.art_corpus_data.artStatInfo.vocabVlLevelItems">
|
|
|
- <ul class="echarts-type">
|
|
|
- <li v-for="(itemE,indexE) in articleInfo.art_corpus_data.artStatInfo.vocabVlLevelItems" :key="indexE"
|
|
|
- @mouseover="gaolangbzt(indexE, 'shanxing_main')"
|
|
|
- @mouseout="closegaolangbzt(indexE, 'shanxing_main')"
|
|
|
- :style="{background:bgColorList[activeIndex].type==='white'?itemE.bg:bgColorList[activeIndex].type==='darkGreen'?itemE.darkGreenBg:itemE.darkBg,color:bgColorList[activeIndex].type==='white'?itemE.color:bgColorList[activeIndex].type==='darkGreen'?itemE.darkGreenColor:itemE.darkColor,borderColor:bgColorList[activeIndex].type==='white'?itemE.border:bgColorList[activeIndex].type==='darkGreen'?itemE.darkGreenBorder:itemE.darkBorder}">
|
|
|
- <span class="name">{{itemE.vlCnName}}</span>
|
|
|
- <span class="number">{{itemE.value}}</span>
|
|
|
- <span class="percent">{{itemE.vocabPercentStr}}</span>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
- <div id="shanxing_main" style="height: 360px"></div>
|
|
|
- </div>
|
|
|
+ </el-collapse-transition>
|
|
|
</div>
|
|
|
<!-- 右侧菜单 -->
|
|
|
<div class="mene-right" :style="{background:bgColorList[activeIndex].contentInnerBg,borderColor:bgColorList[activeIndex].glossaryBg}">
|
|
@@ -493,6 +498,7 @@ export default {
|
|
|
],
|
|
|
activeIndex:0, // 选择主题色的索引
|
|
|
showGlossary: true, // 是否展开词汇表
|
|
|
+ showWordInfo: true,
|
|
|
wordList:[
|
|
|
{
|
|
|
src: '.',
|
|
@@ -686,6 +692,18 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
|
+ showWordInfo:{
|
|
|
+ handler(val, oldVal) {
|
|
|
+ const _this = this;
|
|
|
+ if (val) {
|
|
|
+ setTimeout(() => {
|
|
|
+ _this.inityuan()
|
|
|
+ }, 100);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // 深度观察监听
|
|
|
+ deep: true,
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
inityuan() {
|
|
@@ -1297,7 +1315,7 @@ export default {
|
|
|
padding: 120px 100px 40px 100px;
|
|
|
}
|
|
|
.glossary-box{
|
|
|
- border-top: 1px solid #F2F3F5;
|
|
|
+ // border-top: 1px solid #F2F3F5;
|
|
|
padding: 40px;
|
|
|
.title{
|
|
|
display: flex;
|
|
@@ -1383,6 +1401,8 @@ export default {
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
align-items: center;
|
|
|
+ padding: 16px;
|
|
|
+ background: #F7F8FA;
|
|
|
.right{
|
|
|
width: 150px;
|
|
|
margin-right: -8px;
|