| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850 |
- <!-- eslint-disable vue/no-v-html -->
- <template>
- <div class="article-preview" :style="getAreaStyle()">
- <SerialNumberPosition v-if="isEnable(data.property.sn_display_mode)" :property="data.property" />
- <div class="main">
- <div class="NPC-ArticleView NPC-ArticleView-container">
- <div class="ArticleView-header">
- <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
- v-if="
- (tokenData && tokenData.popedom_code_list && tokenData.popedom_code_list.indexOf(2100001) != -1) ||
- (tokenData && tokenData.user_type === 'APP')
- "
- class="left"
- :style="{ marginLeft: '40px' }"
- @click="submit"
- title="文本分析"
- >
- <!-- <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 class="right">
- <!-- <template v-if="data.property.is_enable_new_word === 'true'">
- <el-switch
- v-model="showPhrases"
- style="display: block"
- :active-color="bookInfo.theme_color"
- inactive-color="rgba(0,0,0,0.1)"
- active-text=""
- inactive-text="本课生词"
- @change="handleSwitchChange('showPractice', 'showWord')"
- />
- </template>
- <template v-if="data.property.is_enable_read === 'true'">
- <el-switch
- v-model="showPractice"
- style="display: block"
- :active-color="bookInfo.theme_color"
- inactive-color="rgba(0,0,0,0.1)"
- active-text=""
- inactive-text="语音练习"
- @change="handleSwitchChange('showPhrases', 'showWord')"
- />
- </template>
- <template v-if="data.property.is_enable_word === 'true'">
- <el-switch
- v-model="showWord"
- style="display: block"
- :active-color="bookInfo.theme_color"
- inactive-color="rgba(0,0,0,0.1)"
- active-text=""
- inactive-text="取词"
- @change="handleSwitchChange('showPhrases', 'showPractice')"
- />
- </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 ref="ArticleViewbody" class="ArticleView-body">
- <NormalModelChs
- v-if="!showPhrases && !showPractice && !showWord"
- :cur-que="data"
- :title-fontsize="titleFontsize"
- :word-fontsize="wordFontsize"
- :body-left="bodyLeft"
- :body-width="bodyWidth"
- :attrib="data.unified_attrib"
- :no-font="noFont"
- :config="config"
- :NNPEAnnotationList="NNPEAnnotationList"
- :col-length="colLength"
- :multilingual="showLang && getLang() ? getLang() : ''"
- @changeConfig="changeConfig"
- />
- <PhraseModel
- v-if="showPhrases"
- :cur-que="data"
- :title-fontsize="titleFontsize"
- :word-fontsize="wordFontsize"
- :NNPENewWordList="NNPENewWordList"
- :attrib="data.unified_attrib"
- :no-font="noFont"
- :body-left="bodyLeft"
- :config="config"
- :TaskModel="isJudgingRightWrong ? 'ANSWER' : ''"
- :NNPEAnnotationList="NNPEAnnotationList"
- :col-length="colLength"
- :NpcNewWordMp3="NpcNewWordMp3"
- :multilingual="showLang && getLang() ? getLang() : ''"
- @changeConfig="changeConfig"
- />
- <Practice
- v-if="showPractice"
- :cur-que="data"
- :title-fontsize="titleFontsize"
- :word-fontsize="wordFontsize"
- :attrib="data.unified_attrib"
- :no-font="noFont"
- :NNPENewWordList="NNPENewWordList"
- :config="config"
- :TaskModel="isJudgingRightWrong ? 'ANSWER' : ''"
- :col-length="colLength"
- :NpcNewWordMp3="NpcNewWordMp3"
- :is-full="isFull"
- :multilingual="showLang && getLang() ? getLang() : ''"
- @changeConfig="changeConfig"
- />
- <WordModel
- v-if="showWord"
- :cur-que="data"
- :title-fontsize="titleFontsize"
- :word-fontsize="wordFontsize"
- :body-left="bodyLeft"
- :body-width="bodyWidth"
- :NNPENewWordList="NNPENewWordList"
- :attrib="data.unified_attrib"
- :no-font="noFont"
- :config="config"
- :TaskModel="isJudgingRightWrong ? 'ANSWER' : ''"
- :col-length="colLength"
- :multilingual="showLang && getLang() ? getLang() : ''"
- @changeConfig="changeConfig"
- />
- </div>
- <div :id="'screen-' + mathNum" class="voice-full-screen">
- <Voicefullscreen
- v-if="isFull && resObj"
- :theme-color="bookInfo.theme_color"
- :cur-que="data"
- :sent-list="resObj.sentList"
- :sent-index="0"
- :mp3="data.mp3_list && data.mp3_list[0] ? data.mp3_list[0].url : ''"
- :no-font="noFont"
- :NNPENewWordList="NNPENewWordList"
- :is-full="isFull"
- :config="config"
- :TaskModel="isJudgingRightWrong ? 'ANSWER' : ''"
- :NpcNewWordMp3="NpcNewWordMp3"
- :attrib="data.unified_attrib"
- @handleWav="handleWav"
- @changePinyin="changePinyins"
- @changeEN="changeENs"
- @exitFullscreen="exitFullscreen"
- @changeIsFull="changeIsFull"
- />
- </div>
- </div>
- <template
- v-if="data.new_word_list && data.new_word_list.new_word_list && data.new_word_list.new_word_list.length > 0"
- >
- <NewWordPreview :new-data="data.new_word_list" />
- </template>
- <template
- v-if="
- data.other_word_list && data.other_word_list.new_word_list && data.other_word_list.new_word_list.length > 0
- "
- >
- <NewWordPreview :new-data="data.other_word_list" />
- </template>
- <template v-if="data.notes_list && data.notes_list.option && data.notes_list.option.length > 0">
- <NotesPreview :notes-data="data.notes_list" />
- </template>
- </div>
- </div>
- </template>
- <script>
- import { getArticleData } from '@/views/book/courseware/data/dialogueArticle';
- import PreviewMixin from '../common/PreviewMixin';
- import PhraseModel from './PhraseModelChs.vue';
- import NormalModelChs from './NormalModelChs.vue';
- import Practice from './Practicechs.vue'; // 语音练习模式
- import WordModel from './WordModelChs.vue'; // 语音练习模式
- import Voicefullscreen from '../article/Voicefullscreen.vue';
- import { getToken } from '@/utils/auth';
- import { analysSubmit, GetFileURLMap } from '@/api/app';
- import NewWordPreview from '../new_word/NewWordPreview.vue';
- import NotesPreview from '../notes/NotesPreview.vue';
- export default {
- name: 'DialogueArticlePreview',
- components: {
- NormalModelChs,
- Practice,
- WordModel,
- PhraseModel,
- Voicefullscreen,
- NewWordPreview,
- NotesPreview,
- },
- mixins: [PreviewMixin],
- inject: ['bookInfo'],
- data() {
- return {
- data: getArticleData(),
- showPreview: true, // 全文预览
- showPhrases: false, // 显示单词和短语
- showPractice: false, // 语音练习
- showWord: false, // 取词
- titleFontsize: 20, // 标题字号初始值
- wordFontsize: 16, // 文章内容字号初始值
- bodyLeft: 0,
- bodyWidth: 0,
- noFont: ['~', '!', '@', '#', '$', '%', '^', '&', '*', '(', ')', '/'],
- config: {
- isShowEN: false,
- isHasEN: false,
- isShowPY: false,
- isHasPY: false,
- },
- userAnswer: {
- normalModel: {
- recordList: [],
- },
- writeModel: {}, // 生词/取词模式
- practiceModel: {}, // 练习模式
- wordModel: {
- recordList: [],
- },
- },
- tokenData: getToken(),
- mathNum: Math.random().toString(36).substr(2),
- isFull: false,
- resObj: null,
- chsFhList: [',', '。', '”', ':', '》', '?', '!', ';', '、'],
- highWords: null,
- highWordsArr: [],
- highIndex: 0,
- newWordList: [],
- NNPEAnnotationList: [],
- NNPENewWordList: [],
- NpcNewWordMp3: [],
- colLength: 1,
- multilingualTextList: {},
- };
- },
- computed: {},
- watch: {
- showLang: {
- handler(val) {
- if (val) {
- this.data.multilingual.forEach((item) => {
- let trans_arr = item.translation ? item.translation.split('\n') : [];
- this.data.detail.forEach((items) => {
- let items_trans_arr = [];
- if (items && !items.hasOwnProperty('multilingualTextList')) {
- this.$set(items, 'multilingualTextList', {});
- }
- if (items.para) {
- items_trans_arr = trans_arr.splice(0, items.sentences.length);
- }
- this.$set(items.multilingualTextList, item.type, items_trans_arr);
- });
- });
- }
- },
- deep: true,
- immediate: true,
- },
- 'data.detail.length': {
- handler(val) {
- if (val) {
- this.handleData();
- let _this = this;
- // if (!this.isJudgingRightWrong) {
- // let userAnswer = JSON.parse(JSON.stringify(_this.userAnswer));
- // _this.$set(this.data, 'Bookanswer', userAnswer);
- // }
- _this.$nextTick(() => {
- _this.bodyLeft = _this.$refs.ArticleViewbody.getBoundingClientRect().left;
- });
- for (let i = 0; i < this.data.detail.length; i++) {
- let enStr = this.data.detail[i].sentencesEn ? this.data.detail[i].sentencesEn.join('') : '';
- if (enStr) {
- this.config.isShowEN = false;
- this.config.isHasEN = true;
- }
- let pinyin = this.handleObj(this.data.detail[i].wordsList);
- if (pinyin && this.isEnable(this.data.property.view_pinyin)) {
- this.config.isShowPY = true;
- this.config.isHasPY = true;
- }
- if (enStr && pinyin) {
- break;
- }
- }
- }
- },
- deep: true,
- immediate: true,
- },
- },
- created() {},
- methods: {
- changeConfig(obj) {
- this.config[obj] = !this.config[obj];
- },
- changeIsFull() {
- this.isFull = false;
- },
- // 拼音的显示和隐藏
- changePinyins() {
- if (this.config.isHasPY) {
- this.changeConfig('isShowPY');
- }
- },
- // 英文的显示和隐藏
- changeENs() {
- if (this.config.isHasEN) {
- this.changeConfig('isShowEN');
- }
- },
- // 处理字体大小
- handleFontsize(symbol) {
- if (symbol == '+') {
- if (this.wordFontsize < 24) {
- this.titleFontsize += 2;
- this.wordFontsize += 2;
- }
- } else if (symbol == '-') {
- if (this.wordFontsize > 12) {
- this.titleFontsize -= 2;
- this.wordFontsize -= 2;
- }
- }
- },
- // 切换开关
- handleSwitchChange(obj1, obj2, obj3) {
- this[obj1] = false;
- this[obj2] = false;
- this[obj3] = !this[obj3];
- this.showPreview = false;
- },
- handleObj(list) {
- let pinyin = '';
- list.forEach((item) => {
- item.forEach((items) => {
- if (items.pinyin) pinyin += items.pinyin;
- });
- });
- return pinyin;
- },
- submit() {
- let loading = this.$loading({
- lock: true,
- text: 'Loading',
- spinner: 'el-icon-loading',
- background: 'rgba(0, 0, 0, 0.7)',
- });
- analysSubmit({
- app_user_id: '',
- text: this.data.content,
- })
- .then((res) => {
- window.open(`${window.location.origin}/GCLS-TC/#/textanalysis/Result?id=${res.record.id}&type=文本分析`);
- loading.close();
- })
- .catch((res) => {
- loading.close();
- });
- },
- // 语音全屏
- fullScreen() {
- this.pauseAudio();
- this.pauseVideo();
- this.isFull = true;
- this.goFullscreen();
- },
- pauseAudio() {
- let audio = document.getElementsByTagName('audio');
- if (audio && audio.length > 0 && window.location.href.indexOf('GCLS-Learn') == -1 && audio.forEach) {
- audio.forEach((item) => {
- item.pause();
- });
- }
- },
- pauseVideo() {
- let video = document.getElementsByTagName('video');
- if (video && video.length > 0 && window.location.href.indexOf('GCLS-Learn') == -1 && video.forEach) {
- video.forEach((item) => {
- item.pause();
- });
- }
- },
- goFullscreen() {
- let id = `screen-${this.mathNum}`;
- let element = document.getElementById(id);
- if (element.requestFullscreen) {
- element.requestFullscreen();
- } else if (element.msRequestFullscreen) {
- element.msRequestFullscreen();
- } else if (element.mozRequestFullScreen) {
- element.mozRequestFullScreen();
- } else if (element.webkitRequestFullscreen) {
- element.webkitRequestFullscreen();
- }
- },
- exitFullscreen() {
- this.isFull = false;
- if (document.exitFullscreen) {
- document.exitFullscreen();
- } else if (document.msExitFullscreen) {
- document.msExitFullscreen();
- } else if (document.mozCancelFullScreen) {
- document.mozCancelFullScreen();
- } else if (document.webkitExitFullscreen) {
- document.webkitExitFullscreen();
- }
- },
- handleData() {
- if (this.data.new_word_list) {
- this.$set(this.data.new_word_list, 'unified_attrib', this.data.unified_attrib);
- }
- if (this.data.other_word_list) {
- this.$set(this.data.other_word_list, 'unified_attrib', this.data.unified_attrib);
- }
- if (this.data.notes_list) {
- this.$set(this.data.notes_list, 'unified_attrib', this.data.unified_attrib);
- }
- if (this.showLang) {
- this.data.multilingual.forEach((item) => {
- let trans_arr = item.translation ? item.translation.split('\n') : [];
- this.data.detail.forEach((items) => {
- let items_trans_arr = [];
- if (!items.hasOwnProperty('multilingualTextList')) {
- this.$set(items, 'multilingualTextList', {});
- }
- if (items.para) {
- items_trans_arr = trans_arr.splice(0, items.sentences.length);
- }
- this.$set(items.multilingualTextList, item.type, items_trans_arr);
- });
- });
- }
- let userAnswer = JSON.parse(JSON.stringify(this.userAnswer));
- this.$set(this.data, 'Bookanswer', userAnswer);
- if (this.data.mp3_list && this.data.mp3_list.length > 0) {
- GetFileURLMap({ file_id_list: [this.data.mp3_list[0].file_id] }).then(({ url_map }) => {
- this.data.mp3_list[0].url = url_map[this.data.mp3_list[0].file_id];
- });
- }
- this.NNPENewWordList = (
- this.data.new_word_list_other_component_input ? this.data.new_word_list_other_component_input : []
- )
- .concat(
- this.data.new_word_list && this.data.new_word_list.new_word_list ? this.data.new_word_list.new_word_list : [],
- )
- .concat(
- this.data.other_word_list && this.data.other_word_list.new_word_list
- ? this.data.other_word_list.new_word_list
- : [],
- );
- this.NNPEAnnotationList = this.data.notes_list && this.data.notes_list.option ? this.data.notes_list.option : [];
- let resArr = [];
- let sentArrTotal = [];
- let timeArr = [];
- let curQue = JSON.parse(JSON.stringify(this.data));
- let wordTimeList = curQue.wordTime;
- let dhaspinyin = false; // 每段是否有拼音
- let dhaspinyinArr = [];
- curQue.detail.forEach((dItem, dIndex) => {
- dhaspinyin = false;
- dItem.wordsList.forEach((sItem, sIndex) => {
- let sentArr = [];
- let sentence = dItem.sentences[sIndex];
- sItem.forEach((wItem, wIndex) => {
- let startIndex = wIndex == 0 ? 0 : sentArr[wIndex - 1].startIndex + sentArr[wIndex - 1].chs.length;
- let endIndex = wIndex == 0 ? wItem.chs.length : sentArr[wIndex - 1].endIndex + wItem.chs.length;
- // this.judgePad(sItem, wItem, wIndex);
- this.mergeWordSymbol(wItem);
- let words = '';
- if (this.newWordList.length > 0) {
- if (!this.highWords) {
- this.findLightWord(wItem, wIndex, sentence, sItem);
- words = this.highWords ? this.highWords.words : '';
- } else if (wIndex > this.highWords.endIndex - 1) {
- this.highWords = null;
- this.findLightWord(wItem, wIndex, sentence, sItem);
- words = this.highWords ? this.highWords.words : '';
- } else {
- words = this.highWords ? this.highWords.words : '';
- }
- }
- let obj = {
- paraIndex: dIndex, // 段落索引
- sentIndex: sIndex, // 在段落中句子索引
- wordIndex: wIndex, // 单词的索引
- pinyin: wItem.pinyin,
- chs: wItem.chs,
- padding: true,
- className: wItem.className,
- isShow: wItem.isShow,
- startIndex,
- endIndex,
- leg: wItem.chs.length,
- timeList: [],
- words,
- config: {
- fontFamily: wItem.fontFamily,
- },
- };
- sentArr.push(obj);
- if (wItem.pinyin) dhaspinyin = true;
- });
- let objs = {
- sentArr,
- enwords: dItem.sentencesEn && dItem.sentencesEn[sIndex] && dItem.sentencesEn[sIndex].replace(/\'/g, '’'),
- };
- sentArrTotal.push(sentArr);
- resArr.push(objs);
- });
- timeArr.push(dItem.timeList);
- if (this.isEnable(curQue.property.view_pinyin)) {
- dhaspinyinArr.push(dhaspinyin);
- }
- });
- if (wordTimeList && wordTimeList.length > 0) {
- this.mergeWordTime(sentArrTotal, wordTimeList);
- }
- let timeList = [];
- timeArr.forEach((item) => {
- item.forEach((aItem) => {
- if (timeList.indexOf(aItem) < 0) {
- timeList.push(aItem);
- }
- });
- });
- this.resObj = {
- sentList: resArr,
- timeList,
- dhaspinyinArr,
- };
- },
- mergeWordTime(resArr, wordTimeList) {
- resArr.forEach((item, index) => {
- let wordsResultList = wordTimeList[index].wordsResultList;
- item.forEach((wItem) => {
- let startIndex = wItem.startIndex;
- let endIndex = wItem.endIndex;
- wItem.timeList = wordsResultList.slice(startIndex, endIndex);
- });
- });
- },
- findLightWord(wItem, startIndex, sentence, sItem) {
- let endIndex = 0;
- let words = '';
- this.newWordList.forEach((item) => {
- if (item.length == 1) {
- if (item == wItem.chs && !wItem.banLight) {
- words = wItem.chs;
- endIndex = startIndex + 1;
- }
- } else if (item[0] == wItem.chs && sentence.indexOf(item) > -1) {
- let index = null;
- let chsStr = '';
- for (let i = startIndex; i < sItem.length + 1; i++) {
- index = i;
- if (chsStr.length == item.length) {
- break;
- } else {
- chsStr += sItem[i] ? sItem[i].chs : '';
- }
- }
- if (chsStr == item && !wItem.banLight) {
- words = item;
- endIndex = index;
- }
- } else if (wItem.new_word && wItem.new_word == item && !wItem.banLight) {
- words = item;
- endIndex = startIndex + 1;
- }
- });
- if (words) {
- this.highWords = { words, endIndex };
- } else {
- this.highWords = null;
- }
- },
- // 词和标点合一起
- mergeWordSymbol(wItem) {
- if (this.chsFhList.indexOf(wItem.chs) > -1) {
- wItem.isShow = false;
- } else {
- wItem.isShow = true;
- }
- },
- handleWav(list, tmIndex) {
- tmIndex = tmIndex || 0;
- this.data.Bookanswer.practiceModel[tmIndex] = {
- recordList: [],
- };
- this.$set(this.data.Bookanswer.practiceModel[tmIndex], 'recordList', list);
- },
- handleNewword() {
- let NewWordList = [];
- this.NNPENewWordList.forEach((wItem) => {
- // item.forEach((wItem) => {
- if (wItem.new_word) {
- NewWordList.push(wItem.new_word);
- } else if (wItem.detail && wItem.detail.sentence) {
- NewWordList.push(wItem.detail.sentence);
- }
- // });
- });
- this.newWordList = JSON.parse(JSON.stringify(NewWordList));
- },
- },
- };
- </script>
- <style lang="scss" scoped>
- @use '@/styles/mixin.scss' as *;
- .article-preview {
- @include preview-base;
- .main {
- display: grid;
- row-gap: 24px;
- align-items: center;
- }
- .NPC-ArticleView {
- width: 100%;
- .ArticleView-full {
- position: absolute;
- top: 0;
- left: 0;
- z-index: 1;
- font-size: 16px;
- font-weight: bold;
- line-height: 24px;
- color: #000;
- cursor: pointer;
- // background: url('@/assets/full-screen-red.png') left center no-repeat;
- // background-size: 20px 20px;
- }
- .ArticleView-header {
- position: relative;
- display: flex;
- align-items: center;
- justify-content: space-between;
- height: 24px;
- margin-bottom: 16px;
- .left {
- display: flex;
- align-items: center;
- justify-content: center;
- // padding-left: 24px;
- font-size: 16px;
- font-weight: bold;
- line-height: 24px;
- cursor: pointer;
- // background: url('@/assets/wbfx-icon.png') left center no-repeat;
- // background-size: 20px;
- img {
- width: 20px;
- height: 20px;
- margin-right: 4px;
- }
- }
- .right {
- display: flex;
- gap: 24px;
- a {
- display: flex;
- gap: 4px;
- align-items: center;
- color: rgba(0, 0, 0, 65%);
- cursor: pointer;
- }
- }
- .setting-fontsize {
- display: flex;
- margin-left: 24px;
- a {
- box-sizing: border-box;
- display: block;
- width: 24px;
- height: 24px;
- border: 1px solid rgba(0, 0, 0, 10%);
- border-radius: 4px;
- }
- img {
- width: 100%;
- }
- > img {
- width: 24px;
- margin: 0 8px;
- }
- }
- }
- .ArticleView-body {
- box-sizing: border-box;
- background: #fff;
- border: 1px solid rgba(0, 0, 0, 10%);
- border-radius: 8px;
- .aduioLine-box {
- width: 100%;
- border-bottom: 1px solid rgba(0, 0, 0, 10%);
- &-bottom {
- border-top: 1px solid rgba(0, 0, 0, 10%);
- border-bottom: none;
- }
- }
- }
- }
- }
- </style>
- <style lang="scss">
- .NPC-ArticleView {
- .ArticleView-header {
- .el-switch {
- margin-left: 24px;
- }
- .el-switch__core {
- width: 44px !important;
- height: 24px;
- border-radius: 20px;
- }
- .el-switch__core::after {
- top: 3px;
- left: 3px;
- }
- .el-switch.is-checked .el-switch__core::after {
- left: 100%;
- margin-left: -19px;
- }
- .el-switch__label {
- color: #000;
- }
- .el-switch__label.is-active {
- color: rgba($color: #000, $alpha: 30%);
- }
- .el-switch__label--left {
- margin-right: 8px;
- }
- }
- .pinyin-16 {
- cursor: pointer;
- // background: url('@/assets/icon/pinyin-16-normal-red.png') no-repeat left top;
- // background-size: 100% 100%;
- // &.disabled {
- // background: url('@/assets/icon/pinyin-16-disable-Black.png') no-repeat left top;
- // background-size: 100% 100%;
- // }
- }
- .EN-16 {
- cursor: pointer;
- // background: url('@/assets/icon/EN-16-normal-red.png') no-repeat left top;
- // background-size: 100% 100%;
- // &.disabled {
- // background: url('@/assets/icon/EN-16-disable-Black.png') no-repeat left top;
- // background-size: 100% 100%;
- // }
- }
- }
- .ArticleView-body {
- .aduioLine-box {
- width: 100%;
- border-bottom: 1px solid rgba(0, 0, 0, 10%);
- &-bottom {
- border-top: 1px solid rgba(0, 0, 0, 10%);
- border-bottom: none;
- }
- }
- }
- </style>
|