123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947 |
- <!-- -->
- <template>
- <div class="NNPE-ArticleView" v-if="curQue">
- <div
- class="aduioLine-box"
- v-if="
- curQue.mp3_list && curQue.mp3_list.length > 0 && curQue.mp3_list[0].url
- "
- >
- <AudioLine
- audioId="'answerAudio'"
- :mp3="curQue.mp3_list[0].url"
- :getCurTime="getCurTime"
- ref="audioLine"
- />
- </div>
- <template v-if="resArr.length > 0">
- <div class="NPC-sentences-list">
- <p class="notice" v-if="curQue.notice">{{ curQue.notice }}</p>
- <div
- :class="[
- 'NNPE-detail',
- item.isTitle ? 'NNPE-detail-title' : '',
- item.timeList.length > 0 &&
- curTime >= item.timeList[0].bg &&
- curTime <= item.timeList[item.timeList.length - 1].ed
- ? 'active'
- : '',
- ]"
- v-for="(item, index) in resArr"
- :key="'detail' + index"
- >
- <div :class="['article-content', isHasRemark ? 'hasRemark' : '']">
- <RoleChs :curRole="item.roleDetail" :type="1" />
- <div class="wordsList-box">
- <div
- class="roleDetail"
- v-if="item.roleDetail.detail.wordsList.length > 0"
- >
- <span class="pinyin">{{
- item.roleDetail.detail.wordsList | handlePinyin
- }}</span>
- <span class="chs">{{
- item.roleDetail.detail.wordsList | handleChs
- }}</span>
- </div>
- <div
- class="para-con"
- :style="{ background: item.roleDetail.color.bg }"
- >
- <div
- class="NNPE-words"
- v-for="(pItem, pIndex) in item.wordsList"
- :key="'wordsList' + pIndex"
- :class="[pItem.wordIndex == 0 ? 'textLeft' : 'textCenter']"
- >
- <template v-if="!pItem.width">
- <template v-if="pItem.isShow">
- <template
- v-if="
- item.wordsList[pIndex + 1] &&
- item.wordsList[pIndex + 1].chs &&
- chsFhList.indexOf(item.wordsList[pIndex + 1].chs) > -1
- "
- >
- <span class="NNPE-words-box">
- <span
- v-if="pyPosition == 'top'"
- class="NNPE-pinyin"
- :class="[
- pItem.className ? pItem.className : '',
- pItem.pinyin && noFont.indexOf(pItem.pinyin) > -1
- ? 'noFont'
- : '',
- ]"
- >{{ pItem.pinyin }}</span
- >
- <template v-if="!pItem.isHeng">
- <span
- class="NNPE-chs"
- :class="[
- item.timeList.length > 0 &&
- curTime >=
- item.timeList[pItem.sentIndex]
- .wordsResultList[pItem.wordIndex].wordBg &&
- curTime <= item.timeList[pItem.sentIndex].ed
- ? 'wordActive'
- : '',
- ]"
- >{{ pItem.chs }}</span
- >
- </template>
- <template v-else>
- <!-- <input
- v-model="pItem.answer"
- class="answer-input"
- /> -->
- <div class="answer-input" contenteditable="true">
- {{ pItem.answer }}
- </div>
- </template>
- <span
- v-if="pyPosition == 'bottom'"
- class="NNPE-pinyin"
- :class="[
- pItem.className ? pItem.className : '',
- noFont.indexOf(pItem.pinyin) > -1 ? 'noFont' : '',
- ]"
- >{{ pItem.pinyin }}</span
- >
- </span>
- <span class="NNPE-words-box">
- <span
- v-if="pyPosition == 'top'"
- class="NNPE-pinyin"
- :class="[
- noFont.indexOf(
- item.wordsList[pIndex + 1].pinyin
- ) > -1
- ? 'noFont'
- : '',
- ]"
- style="text-align: left"
- >{{ item.wordsList[pIndex + 1].pinyin }}</span
- >
- <span
- class="NNPE-chs"
- style="text-align: left"
- :class="[
- item.timeList.length > 0 &&
- curTime >=
- item.timeList[pItem.sentIndex].wordsResultList[
- pItem.wordIndex
- ].wordBg &&
- curTime <= item.timeList[pItem.sentIndex].ed
- ? 'wordActive'
- : '',
- ]"
- >{{ item.wordsList[pIndex + 1].chs }}</span
- >
- <span
- v-if="pyPosition == 'bottom'"
- class="NNPE-pinyin"
- :class="[
- noFont.indexOf(
- item.wordsList[pIndex + 1].pinyin
- ) > -1
- ? 'noFont'
- : '',
- ]"
- style="text-align: left"
- >{{ item.wordsList[pIndex + 1].pinyin }}</span
- >
- </span>
- </template>
- <!--下一个元素不是标点-->
- <template v-else>
- <span
- v-if="pyPosition == 'top'"
- class="NNPE-pinyin"
- :class="[
- pItem.padding ? 'padding' : '',
- pItem.className ? pItem.className : '',
- noFont.indexOf(item.wordsList[pIndex + 1].pinyin) >
- -1
- ? 'noFont'
- : '',
- ]"
- >{{ pItem.pinyin }}</span
- >
- <template v-if="!pItem.isHeng">
- <span
- v-if="pItem.chs != '#'"
- class="NNPE-chs"
- :class="[
- item.timeList.length > 0 &&
- curTime >=
- item.timeList[pItem.sentIndex].wordsResultList[
- pItem.wordIndex
- ].wordBg &&
- curTime <= item.timeList[pItem.sentIndex].ed
- ? 'wordActive'
- : '',
- pItem.padding ? 'padding' : '',
- ]"
- >{{ pItem.chs }}</span
- >
- </template>
- <template v-else>
- <!-- <input v-model="pItem.answer" class="answer-input" /> -->
- <div class="answer-input" contenteditable="true">
- {{ pItem.answer }}
- </div>
- </template>
- <span
- v-if="pyPosition == 'bottom'"
- class="NNPE-pinyin"
- :class="[
- pItem.padding ? 'padding' : '',
- pItem.className ? pItem.className : '',
- noFont.indexOf(item.wordsList[pIndex + 1].pinyin) >
- -1
- ? 'noFont'
- : '',
- ]"
- >{{ pItem.pinyin }}</span
- >
- </template>
- </template>
- </template>
- <template v-else>
- <span
- :style="{
- height: pItem.height + 'px',
- width: pItem.width + 'px',
- }"
- ></span>
- </template>
- </div>
- <div v-if="item.enwords" class="enwords">
- {{ item.enwords }}
- </div>
- </div>
- <div class="clearFix"></div>
- <div class="answer-box">
- <div class="input-record" v-if="item.isRecord">
- <Soundrecord
- @handleWav="handleWav"
- type="normal"
- class="normal-box"
- />
- </div>
- <template
- class="input-record"
- v-if="curQue.fn_list && curQue.fn_list[1].isFn"
- >
- <div class="judge-box">
- <a
- :class="[
- 'right-btn',
- Bookanswer[index] == 'right' ? 'active' : '',
- ]"
- @click="handleSelectJudge('right', index)"
- ></a>
- <a
- :class="[
- 'error-btn',
- Bookanswer[index] == 'error' ? 'active' : '',
- ]"
- @click="handleSelectJudge('error', index)"
- ></a>
- </div>
- </template>
- </div>
- </div>
- </div>
- <div
- class="remarkBox remark-top"
- v-if="
- item.remarkDetail &&
- (item.remarkDetail.chs || item.remarkDetail.en)
- "
- >
- <RemarkChs :remarkDetail="item.remarkDetail" />
- </div>
- </div>
- <!-- <div class="dia-article-record">
- <Soundrecord @handleWav="handleWav" type="promax" class="luyin-box" />
- </div> -->
- </div>
- </template>
- <template v-if="paraArr.length > 0">
- <div class="NPC-sentences-list">
- <p class="notice" v-if="curQue.notice">{{ curQue.notice }}</p>
- <div
- :class="['NNPE-detail', item.isTitle ? 'NNPE-detail-title' : '']"
- v-for="(item, index) in paraArr"
- :key="'detail' + index"
- >
- <div :class="['article-content', isHasRemark ? 'hasRemark' : '']">
- <RoleChs :curRole="item.roleDetail" :type="1" />
- <div class="wordsList-box">
- <div
- class="roleDetail"
- v-if="item.roleDetail.detail.wordsList.length > 0"
- >
- <span class="pinyin">{{
- item.roleDetail.detail.wordsList | handlePinyin
- }}</span>
- <span class="chs">{{
- item.roleDetail.detail.wordsList | handleChs
- }}</span>
- </div>
- <div
- class="para-con"
- :style="{ background: item.roleDetail.color.bg }"
- >
- <div
- class="NNPE-words"
- v-for="(pItem, pIndex) in item.wordsList"
- :key="'wordsList' + pIndex"
- >
- <template v-if="!pItem.isHeng">
- <span class="NNPE-para-pinyin padding">{{
- pItem.con
- }}</span>
- </template>
- <template v-else>
- <!-- <input v-model="pItem.answer" class="answer-input" /> -->
- <div class="answer-input" contenteditable="true">
- {{ pItem.answer }}
- </div>
- </template>
- </div>
- <div v-if="item.enwords" class="enwords">
- {{ item.enwords }}
- </div>
- </div>
- <div class="clearFix"></div>
- <div class="answer-box">
- <div class="input-record" v-if="item.isRecord">
- <Soundrecord
- @handleWav="handleWav"
- type="normal"
- class="normal-box"
- />
- </div>
- <template
- class="input-record"
- v-if="curQue.fn_list && curQue.fn_list[1].isFn"
- >
- <div class="judge-box">
- <a
- :class="[
- 'right-btn',
- Bookanswer[index] == 'right' ? 'active' : '',
- ]"
- @click="handleSelectJudge('right', index)"
- ></a>
- <a
- :class="[
- 'error-btn',
- Bookanswer[index] == 'error' ? 'active' : '',
- ]"
- @click="handleSelectJudge('error', index)"
- ></a>
- </div>
- </template>
- </div>
- </div>
- </div>
- <div
- class="remarkBox remark-top"
- v-if="
- item.remarkDetail &&
- (item.remarkDetail.chs || item.remarkDetail.en)
- "
- >
- <RemarkChs :remarkDetail="item.remarkDetail" />
- </div>
- </div>
- <!-- <div class="dia-article-record">
- <Soundrecord @handleWav="handleWav" type="promax" class="luyin-box" />
- </div> -->
- </div>
- </template>
- </div>
- </template>
- <script>
- import { timeStrToSen } from "@/utils/index";
- import AudioLine from "../AudioLine.vue";
- import RoleChs from "./RoleChs.vue";
- import RemarkChs from "./RemarkChs.vue";
- import Soundrecord from "../Soundrecord.vue";
- export default {
- name: "DialogueNormalModelChs",
- props: ["curQue", "pyPosition", "colorBox", "saveBookanswer", "listIndex"],
- components: {
- AudioLine,
- RoleChs,
- RemarkChs,
- Soundrecord,
- },
- filters: {
- handlePinyin(wordsList) {
- let str = "";
- wordsList.forEach((item, index) => {
- if (index < wordsList.length - 1) {
- str += item.pinyin + " ";
- } else {
- str += item.pinyin;
- }
- });
- return str;
- },
- handleChs(wordsList) {
- let str = "";
- wordsList.forEach((item, index) => {
- if (index < wordsList.length - 1) {
- str += item.chs + " ";
- } else {
- str += item.chs;
- }
- });
- return str;
- },
- },
- data() {
- return {
- resArr: [],
- curTime: 0, //单位s
- chsFhList: [",", "。", "“", ":", "》", "《", "?", "!", ";"],
- enFhList: [",", ".", ";", "?", "!", ":", ">", "<"],
- newWords: ["鱼", "辩礼义"],
- noFont: ["~", "!", "@", "#", "$", "%", "^", "&", "*", "(", ")", "/"],
- oldHz: "",
- hz: "",
- top: 0,
- left: 0,
- articleImg: {}, // 文章图片
- isHasRemark: false,
- paraArr: [],
- answer: [],
- };
- },
- computed: {
- Bookanswer: function () {
- let arr = [];
- this.curQue.detail.forEach((item) => {
- arr.push("");
- });
- return arr;
- },
- },
- watch: {},
- //方法集合
- methods: {
- // 判断题选择
- handleSelectJudge(obj, index) {
- let _this = this;
- this.$set(this.Bookanswer, index, obj);
- this.$forceUpdate();
- if (_this.saveBookanswer) {
- _this.saveBookanswer(this.Bookanswer, this.listIndex);
- }
- },
- handleWav() {},
- getCurTime(curTime) {
- this.curTime = curTime * 1000;
- },
- handleData() {
- let resArr = [];
- let reg = /_{2,}/g;
- let leg = this.curQue.detail.length;
- let curQue = JSON.parse(JSON.stringify(this.curQue));
- curQue.detail.forEach((dItem, dIndex) => {
- let isRecord = 0;
- let roleDetail = this.getRole(dItem);
- let remarkDetail = dItem.remark;
- if (remarkDetail && (remarkDetail.chs || remarkDetail.en)) {
- this.isHasRemark = true;
- }
- let paraArr = [];
- if (dItem.wordsList && dItem.wordsList.length > 0) {
- dItem.wordsList.forEach((sItem, sIndex) => {
- sItem.forEach((wItem, wIndex) => {
- this.mergeWordSymbol(wItem);
- let obj = {
- paraIndex: dIndex, //段落索引
- sentIndex: sIndex, //在段落中句子索引
- wordIndex: wIndex, //单词的索引
- pinyin: wItem.pinyin,
- chs: wItem.chs,
- isHeng: reg.test(wItem.chs),
- padding: true, //wItem.padding,
- className: wItem.className,
- isShow: wItem.isShow,
- isNewWord: this.newWords.indexOf(wItem.chs) > -1 ? true : false,
- };
- if (obj.isHeng) {
- isRecord = isRecord + 1;
- obj.answer = "";
- }
- paraArr.push(obj);
- });
- });
- let curSentencesLeg = dItem.sentences.length;
- let startLeg = dIndex == 0 ? 0 : curQue.detail[dIndex - 1].endLeg;
- let endLeg = startLeg + curSentencesLeg;
- dItem.endLeg = endLeg;
- let timeList = [];
- if (curQue.wordTime && curQue.wordTime.length > 0) {
- timeList = curQue.wordTime.slice(startLeg, endLeg);
- }
- let enwords =
- dItem.sentencesEn && dItem.sentencesEn.length > 0
- ? dItem.sentencesEn.join(" ")
- : "";
- let paraObj = {
- wordsList: paraArr,
- enwords: enwords,
- timeList: timeList,
- roleDetail: roleDetail,
- remarkDetail: remarkDetail,
- isRecord: isRecord > 0 ? true : false,
- };
- resArr.push(paraObj);
- }
- });
- this.resArr = resArr;
- console.log("Normal");
- console.log(this.resArr);
- // 循环文章图片
- if (curQue.img_list) {
- curQue.img_list.forEach((item) => {
- this.articleImg[item.imgNumber] = item.url;
- });
- }
- },
- handlePYData() {
- let pararArr = [];
- let curQue = JSON.parse(JSON.stringify(this.curQue));
- curQue.detail.forEach((dItem, dIndex) => {
- let para = dItem.para;
- let paraObj = this.handlePara(para);
- let roleDetail = this.getRole(dItem);
- let remarkDetail = dItem.remark;
- if (remarkDetail && (remarkDetail.chs || remarkDetail.en)) {
- this.isHasRemark = true;
- }
- let obj = {
- wordsList: paraObj.wordsList,
- roleDetail: roleDetail,
- remarkDetail: remarkDetail,
- isRecord: paraObj.isRecord,
- };
- pararArr.push(obj);
- });
- this.paraArr = pararArr;
- },
- //词和标点合一起
- mergeWordSymbol(wItem) {
- if (this.chsFhList.indexOf(wItem.chs) > -1) {
- wItem.isShow = false;
- } else {
- wItem.isShow = true;
- }
- },
- //获取角色
- getRole(dItem) {
- let roleIndex = dItem.roleIndex;
- let resObj = null;
- let roleList = JSON.parse(JSON.stringify(this.curQue.roleList));
- for (let i = 0; i < roleList.length; i++) {
- let item = roleList[i];
- if (item.id == roleIndex) {
- resObj = item;
- resObj.color = this.colorBox[i];
- break;
- }
- }
- return resObj;
- },
- //判断是否有padding
- judgePad(sItem, wItem, curIndex) {
- let leg = sItem.length;
- if (curIndex < leg - 1) {
- let nextIndex = curIndex + 1;
- let chs = sItem[nextIndex].chs;
- if (
- this.chsFhList.indexOf(chs) > -1 ||
- this.chsFhList.indexOf(wItem.chs) > -1
- ) {
- wItem.padding = false;
- } else {
- wItem.padding = true;
- }
- if (this.enFhList.indexOf(wItem.pinyin) > -1) {
- wItem.className = "textLeft";
- }
- }
- },
- //转化时间
- handleTimeList(list) {
- let listRes = [];
- list.forEach((item) => {
- let res = timeStrToSen(item);
- listRes.push(res);
- });
- return listRes;
- },
- //点击播放某个句子
- handleChangeTime(time) {
- this.curTime = time;
- this.$refs.audioLine.onTimeupdateTime(time / 1000);
- },
- //处理数组
- handlePara(para) {
- para = para.trim();
- para = para.replace(/\s+/g, " ");
- para = para.replace(/_{2,}/g, "^ ");
- let paraArr = para.split(/\s/g);
- let resArr = [];
- paraArr.forEach((item, index) => {
- let obj = {
- isHeng: false,
- con: item,
- };
- if (item == "^") {
- obj.isHeng = true;
- obj.answer = "";
- }
- resArr.push(obj);
- });
- let isRecord = /^/g.test(para);
- return { wordsList: resArr, isRecord: isRecord };
- },
- },
- //生命周期 - 创建完成(可以访问当前this实例)
- created() {},
- //生命周期 - 挂载完成(可以访问DOM元素)
- mounted() {
- if (this.curQue) {
- if (this.curQue.font == "cn" || !this.curQue.font) {
- this.handleData();
- } else {
- this.handlePYData();
- }
- }
- },
- beforeCreate() {}, //生命周期 - 创建之前
- beforeMount() {}, //生命周期 - 挂载之前
- beforeUpdate() {}, //生命周期 - 更新之前
- updated() {}, //生命周期 - 更新之后
- beforeDestroy() {}, //生命周期 - 销毁之前
- destroyed() {}, //生命周期 - 销毁完成
- activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
- };
- </script>
- <style lang='scss' scoped>
- //@import url(); 引入公共css类
- .NNPE-ArticleView {
- width: 100%;
- .clearFix {
- clear: both;
- overflow: hidden;
- }
- .NPC-sentences-list {
- .NPC-article-empty {
- display: flex;
- justify-content: flex-start;
- align-items: flex-start;
- > div {
- height: 24px;
- &.empty-left {
- width: 100%;
- box-sizing: border-box;
- &.hasRemark {
- width: 553px;
- box-sizing: border-box;
- border-right: 1px rgba(0, 0, 0, 0.1) solid;
- }
- }
- &.empty-right {
- flex: 1;
- }
- }
- &-bottom {
- > div {
- height: 40px;
- }
- }
- }
- .dia-article-record {
- width: 100%;
- border-top: 1px solid rgba(0, 0, 0, 0.1);
- .luyin-box {
- justify-content: start;
- padding: 8px 12px;
- height: 40px;
- width: 280px;
- justify-content: flex-start;
- }
- }
- }
- .NNPE-detail {
- clear: both;
- overflow: hidden;
- display: flex;
- justify-content: flex-start;
- align-items: flex-start;
- &.active {
- background: rgba(0, 0, 0, 0.06);
- }
- .article-content {
- width: 100%;
- box-sizing: border-box;
- padding: 8px 24px 8px 24px;
- display: flex;
- justify-content: flex-start;
- align-items: flex-start;
- &.hasRemark {
- width: 553px;
- border-right: 1px rgba(0, 0, 0, 0.1) solid;
- padding: 8px 0px 8px 23px;
- }
- &.paraLast {
- padding-bottom: 24px;
- }
- }
- .NNPE-words {
- float: left;
- &-box {
- float: left;
- > span {
- display: block;
- &.NNPE-pinyin {
- font-family: "GB-PINYINOK-B";
- font-weight: normal;
- font-size: 14px;
- line-height: 22px;
- color: #000000;
- height: 21px;
- &.noFont {
- font-family: initial;
- }
- &.textLeft {
- text-align: left;
- }
- }
- &.NNPE-chs {
- font-family: "FZJCGFKTK";
- font-size: 20px;
- line-height: 28px;
- color: #000000;
- &.active {
- background: rgba(60, 200, 99, 0.2);
- }
- &.wordActive {
- color: #de4444;
- }
- }
- &.padding {
- padding: 0 3px;
- }
- }
- }
- &.textLeft {
- text-align: left;
- }
- &.textCenter {
- text-align: center;
- }
- > span {
- display: block;
- &.NNPE-pinyin {
- font-family: "GB-PINYINOK-B";
- font-weight: normal;
- font-size: 14px;
- line-height: 22px;
- color: #000000;
- height: 21px;
- &.noFont {
- font-family: initial;
- }
- &.textLeft {
- text-align: left;
- }
- }
- &.NNPE-chs {
- font-family: "FZJCGFKTK";
- font-size: 20px;
- line-height: 28px;
- color: #000000;
- &.active {
- background: rgba(60, 200, 99, 0.2);
- }
- &.wordActive {
- color: #de4444;
- }
- }
- &.padding {
- padding: 0 3px;
- }
- }
- .answer-input {
- min-height: 31px;
- box-sizing: border-box;
- border: 0;
- border-bottom: 1px #000 solid;
- background: 0 0;
- min-width: 100px;
- outline: 0;
- text-align: left;
- font-family: "FZJCGFKTK";
- font-size: 20px;
- padding: 0 10px;
- box-sizing: border-box;
- color: #000000;
- line-height: 150%;
- }
- }
- .enwords {
- font-family: "robot";
- font-weight: normal;
- font-size: 14px;
- line-height: 22px;
- color: rgba(0, 0, 0, 0.85);
- }
- &.NNPE-detail-title {
- .wordsList-box {
- > div {
- display: flex;
- justify-content: center;
- }
- }
- }
- .index {
- width: 48px;
- box-sizing: border-box;
- padding: 8px;
- text-align: right;
- border-right: 1px solid rgba(0, 0, 0, 0.1);
- b {
- font-weight: 400;
- color: #000000;
- line-height: 1.5;
- }
- }
- .wordsList-box {
- width: 100%;
- padding: 0px 24px 0px 8px;
- clear: both;
- overflow: hidden;
- .roleDetail {
- height: 36px;
- display: flex;
- justify-content: flex-start;
- align-items: center;
- .pinyin {
- font-family: "GB-PINYINOK-B";
- font-size: 14px;
- line-height: 22px;
- color: rgba(0, 0, 0, 0.85);
- margin-right: 4px;
- }
- .chs {
- font-family: "FZJCGFKTK";
- font-size: 16px;
- line-height: 24px;
- color: rgba(0, 0, 0, 0.85);
- }
- }
- > .para-con {
- float: left;
- border: 1px solid rgba(0, 0, 0, 0.1);
- box-sizing: border-box;
- padding: 8px 12px 8px 12px;
- border-radius: 8px;
- }
- > img {
- width: 100%;
- display: block;
- }
- .input-record {
- margin-right: 8px;
- .mini-box {
- width: 64px;
- border: 1px solid rgba(0, 0, 0, 0.1);
- border-radius: 8px;
- padding: 0 12px;
- }
- .normal-box {
- width: 129px;
- border: 1px solid rgba(0, 0, 0, 0.1);
- border-radius: 8px;
- padding: 0 12px;
- }
- }
- }
- }
- .remarkBox {
- flex: 1;
- display: flex;
- align-items: center;
- justify-content: center;
- &.remark72 {
- padding-top: 72px;
- }
- &.remark-top {
- padding-top: 44px;
- }
- }
- .NNPE-para-pinyin {
- font-weight: normal;
- font-size: 20px;
- line-height: 28px;
- color: #000000;
- height: 28px;
- }
- }
- .judge-box {
- display: flex;
- justify-content: center;
- a {
- width: 32px;
- height: 32px;
- background: #fff url("../../../../assets/newImage/common/right-btn.png")
- center no-repeat;
- background-size: 24px;
- border-radius: 8px;
- border: 1px solid rgba(0, 0, 0, 0.1);
- &:hover,
- &.active {
- background-color: #e5fff0;
- border-color: #00c850;
- }
- }
- a.error-btn {
- background: #fff url("../../../../assets/newImage/common/error-btn.png")
- center no-repeat;
- background-size: 24px;
- margin-left: 4px;
- &:hover,
- &.active {
- background-color: #ffe5e5;
- border-color: #de4444;
- }
- }
- }
- .answer-box {
- display: flex;
- justify-content: flex-start;
- align-items: center;
- margin-top: 8px;
- }
- </style>
|