|
@@ -6,7 +6,15 @@
|
|
|
<div class="main">
|
|
<div class="main">
|
|
|
<div class="NPC-ArticleView NPC-ArticleView-container">
|
|
<div class="NPC-ArticleView NPC-ArticleView-container">
|
|
|
<div class="ArticleView-header">
|
|
<div class="ArticleView-header">
|
|
|
- <a class="ArticleView-full" @click="fullScreen">黑板模式</a>
|
|
|
|
|
|
|
+ <a class="ArticleView-full" @click="fullScreen" title="全屏">
|
|
|
|
|
+ <svg-icon
|
|
|
|
|
+ icon-class="icon-full"
|
|
|
|
|
+ size="24"
|
|
|
|
|
+ :style="{
|
|
|
|
|
+ color: data.unified_attrib && data.unified_attrib.topic_color ? data.unified_attrib.topic_color : '',
|
|
|
|
|
+ }"
|
|
|
|
|
+ />
|
|
|
|
|
+ </a>
|
|
|
<div>
|
|
<div>
|
|
|
<div
|
|
<div
|
|
|
v-if="
|
|
v-if="
|
|
@@ -14,15 +22,22 @@
|
|
|
(tokenData && tokenData.user_type === 'APP')
|
|
(tokenData && tokenData.user_type === 'APP')
|
|
|
"
|
|
"
|
|
|
class="left"
|
|
class="left"
|
|
|
- :style="{ marginLeft: '104px' }"
|
|
|
|
|
|
|
+ :style="{ marginLeft: '40px' }"
|
|
|
@click="submit"
|
|
@click="submit"
|
|
|
|
|
+ title="文本分析"
|
|
|
>
|
|
>
|
|
|
<!-- <img src="@/assets/wbfx-icon.png" alt="" /> -->
|
|
<!-- <img src="@/assets/wbfx-icon.png" alt="" /> -->
|
|
|
- 文本分析
|
|
|
|
|
|
|
+ <svg-icon
|
|
|
|
|
+ icon-class="icon-wbfx"
|
|
|
|
|
+ size="24"
|
|
|
|
|
+ :style="{
|
|
|
|
|
+ color: data.unified_attrib && data.unified_attrib.topic_color ? data.unified_attrib.topic_color : '',
|
|
|
|
|
+ }"
|
|
|
|
|
+ />
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="right">
|
|
<div class="right">
|
|
|
- <template v-if="data.property.is_enable_new_word === 'true'">
|
|
|
|
|
|
|
+ <!-- <template v-if="data.property.is_enable_new_word === 'true'">
|
|
|
<el-switch
|
|
<el-switch
|
|
|
v-model="showPhrases"
|
|
v-model="showPhrases"
|
|
|
style="display: block"
|
|
style="display: block"
|
|
@@ -54,7 +69,40 @@
|
|
|
inactive-text="取词"
|
|
inactive-text="取词"
|
|
|
@change="handleSwitchChange('showPhrases', 'showPractice')"
|
|
@change="handleSwitchChange('showPhrases', 'showPractice')"
|
|
|
/>
|
|
/>
|
|
|
- </template>
|
|
|
|
|
|
|
+ </template> -->
|
|
|
|
|
+ <a
|
|
|
|
|
+ v-if="data.property.is_enable_new_word === 'true'"
|
|
|
|
|
+ @click="handleSwitchChange('showPractice', 'showWord', 'showPhrases')"
|
|
|
|
|
+ :style="{
|
|
|
|
|
+ color:
|
|
|
|
|
+ showPhrases && data.unified_attrib && data.unified_attrib.topic_color
|
|
|
|
|
+ ? data.unified_attrib.topic_color
|
|
|
|
|
+ : '',
|
|
|
|
|
+ }"
|
|
|
|
|
+ ><svg-icon icon-class="icon-article-ci" size="24" />本课生词</a
|
|
|
|
|
+ >
|
|
|
|
|
+ <a
|
|
|
|
|
+ v-if="data.property.is_enable_read === 'true'"
|
|
|
|
|
+ @click="handleSwitchChange('showPhrases', 'showWord', 'showPractice')"
|
|
|
|
|
+ :style="{
|
|
|
|
|
+ color:
|
|
|
|
|
+ showPractice && data.unified_attrib && data.unified_attrib.topic_color
|
|
|
|
|
+ ? data.unified_attrib.topic_color
|
|
|
|
|
+ : '',
|
|
|
|
|
+ }"
|
|
|
|
|
+ ><svg-icon icon-class="icon-article-practice" size="24" />语音练习</a
|
|
|
|
|
+ >
|
|
|
|
|
+ <a
|
|
|
|
|
+ v-if="data.property.is_enable_word === 'true'"
|
|
|
|
|
+ @click="handleSwitchChange('showPhrases', 'showPractice', 'showWord')"
|
|
|
|
|
+ :style="{
|
|
|
|
|
+ color:
|
|
|
|
|
+ showWord && data.unified_attrib && data.unified_attrib.topic_color
|
|
|
|
|
+ ? data.unified_attrib.topic_color
|
|
|
|
|
+ : '',
|
|
|
|
|
+ }"
|
|
|
|
|
+ ><svg-icon icon-class="icon-article-phrase" size="24" />取词</a
|
|
|
|
|
+ >
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div ref="ArticleViewbody" class="ArticleView-body">
|
|
<div ref="ArticleViewbody" class="ArticleView-body">
|
|
@@ -323,9 +371,10 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
// 切换开关
|
|
// 切换开关
|
|
|
- handleSwitchChange(obj1, obj2) {
|
|
|
|
|
|
|
+ handleSwitchChange(obj1, obj2, obj3) {
|
|
|
this[obj1] = false;
|
|
this[obj1] = false;
|
|
|
this[obj2] = false;
|
|
this[obj2] = false;
|
|
|
|
|
+ this[obj3] = !this[obj3];
|
|
|
this.showPreview = false;
|
|
this.showPreview = false;
|
|
|
},
|
|
},
|
|
|
handleObj(list) {
|
|
handleObj(list) {
|
|
@@ -619,13 +668,14 @@ export default {
|
|
|
top: 0;
|
|
top: 0;
|
|
|
left: 0;
|
|
left: 0;
|
|
|
z-index: 1;
|
|
z-index: 1;
|
|
|
- padding-left: 24px;
|
|
|
|
|
font-size: 16px;
|
|
font-size: 16px;
|
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
|
line-height: 24px;
|
|
line-height: 24px;
|
|
|
color: #000;
|
|
color: #000;
|
|
|
- background: url('@/assets/full-screen-red.png') left center no-repeat;
|
|
|
|
|
- background-size: 20px 20px;
|
|
|
|
|
|
|
+ cursor: pointer;
|
|
|
|
|
+
|
|
|
|
|
+ // background: url('@/assets/full-screen-red.png') left center no-repeat;
|
|
|
|
|
+ // background-size: 20px 20px;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.ArticleView-header {
|
|
.ArticleView-header {
|
|
@@ -640,13 +690,15 @@ export default {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
justify-content: center;
|
|
|
- padding-left: 24px;
|
|
|
|
|
|
|
+
|
|
|
|
|
+ // padding-left: 24px;
|
|
|
font-size: 16px;
|
|
font-size: 16px;
|
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
|
line-height: 24px;
|
|
line-height: 24px;
|
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
|
- background: url('@/assets/wbfx-icon.png') left center no-repeat;
|
|
|
|
|
- background-size: 20px;
|
|
|
|
|
|
|
+
|
|
|
|
|
+ // background: url('@/assets/wbfx-icon.png') left center no-repeat;
|
|
|
|
|
+ // background-size: 20px;
|
|
|
|
|
|
|
|
img {
|
|
img {
|
|
|
width: 20px;
|
|
width: 20px;
|
|
@@ -657,6 +709,15 @@ export default {
|
|
|
|
|
|
|
|
.right {
|
|
.right {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
|
|
+ gap: 24px;
|
|
|
|
|
+
|
|
|
|
|
+ a {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ gap: 4px;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ color: rgba(0, 0, 0, 65%);
|
|
|
|
|
+ cursor: pointer;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.setting-fontsize {
|
|
.setting-fontsize {
|