|
@@ -2,36 +2,42 @@
|
|
|
<template>
|
|
|
<div class="NPC-ArticleView NPC-ArticleView-container">
|
|
|
<div class="ArticleView-header">
|
|
|
- <el-switch
|
|
|
- style="display: block"
|
|
|
- v-model="showPhrases"
|
|
|
- :active-color="activeColor"
|
|
|
- inactive-color="rgba(0,0,0,0.1)"
|
|
|
- active-text=""
|
|
|
- inactive-text="本课生词"
|
|
|
- @change="handleSwitchChange('showPractice', 'showWord')"
|
|
|
- >
|
|
|
- </el-switch>
|
|
|
- <el-switch
|
|
|
- style="display: block"
|
|
|
- v-model="showPractice"
|
|
|
- :active-color="activeColor"
|
|
|
- inactive-color="rgba(0,0,0,0.1)"
|
|
|
- active-text=""
|
|
|
- inactive-text="语音练习"
|
|
|
- @change="handleSwitchChange('showPhrases', 'showWord')"
|
|
|
- >
|
|
|
- </el-switch>
|
|
|
- <el-switch
|
|
|
- style="display: block"
|
|
|
- v-model="showWord"
|
|
|
- :active-color="activeColor"
|
|
|
- inactive-color="rgba(0,0,0,0.1)"
|
|
|
- active-text=""
|
|
|
- inactive-text="取词"
|
|
|
- @change="handleSwitchChange('showPhrases', 'showPractice')"
|
|
|
- >
|
|
|
- </el-switch>
|
|
|
+ <template v-if="curQue.checkList.indexOf(1) > -1">
|
|
|
+ <el-switch
|
|
|
+ style="display: block"
|
|
|
+ v-model="showPhrases"
|
|
|
+ :active-color="activeColor"
|
|
|
+ inactive-color="rgba(0,0,0,0.1)"
|
|
|
+ active-text=""
|
|
|
+ inactive-text="本课生词"
|
|
|
+ @change="handleSwitchChange('showPractice', 'showWord')"
|
|
|
+ >
|
|
|
+ </el-switch>
|
|
|
+ </template>
|
|
|
+ <template v-if="curQue.checkList.indexOf(2) > -1">
|
|
|
+ <el-switch
|
|
|
+ style="display: block"
|
|
|
+ v-model="showPractice"
|
|
|
+ :active-color="activeColor"
|
|
|
+ inactive-color="rgba(0,0,0,0.1)"
|
|
|
+ active-text=""
|
|
|
+ inactive-text="语音练习"
|
|
|
+ @change="handleSwitchChange('showPhrases', 'showWord')"
|
|
|
+ >
|
|
|
+ </el-switch>
|
|
|
+ </template>
|
|
|
+ <template v-if="curQue.checkList.indexOf(3) > -1">
|
|
|
+ <el-switch
|
|
|
+ style="display: block"
|
|
|
+ v-model="showWord"
|
|
|
+ :active-color="activeColor"
|
|
|
+ inactive-color="rgba(0,0,0,0.1)"
|
|
|
+ active-text=""
|
|
|
+ inactive-text="取词"
|
|
|
+ @change="handleSwitchChange('showPhrases', 'showPractice')"
|
|
|
+ >
|
|
|
+ </el-switch>
|
|
|
+ </template>
|
|
|
<!-- <div class="setting-fontsize">
|
|
|
<a @click="handleFontsize('-')"
|
|
|
><img src="../../../../assets/newImage/common/btn-reduce.png"
|