articlePeruseDetail.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817
  1. <template>
  2. <div class="bookStore" :style="{background:bgColorList[activeIndex].contentBg}" v-loading="loading" v-if="peruseDetail">
  3. <Header :LoginNavIndex="1"/>
  4. <div class="navBar" :class="['navBar-'+bgColorList[activeIndex].type]" :style="{background:bgColorList[activeIndex].navBg}">
  5. <div class="navBar-left">
  6. <a class="goback" @click="$router.go(-1)"><i class="el-icon-arrow-left"></i> 第 {{peruseDetail.batch}} 期</a>
  7. <div class="border"></div>
  8. <p class="article-title">{{peruseDetail.cn_title}}</p>
  9. </div>
  10. <div class="navBar-right">
  11. <el-input-number class="article-fontsize" v-model="wordFontsize" :step="2" step-strictly :min="12" :max="24" :style="{borderColor:bgColorList[activeIndex].boxBorder}"></el-input-number>
  12. <ul class="article-color" :style="{borderColor:bgColorList[activeIndex].boxBorder}">
  13. <li :class="['color-item',activeIndex===indexC?'active':'']" v-for="(itemC,indexC) in bgColorList" :key="indexC" @click="handleChangeBgColor(indexC)" :style="{borderColor:activeIndex===indexC?itemC.border_active:''}">
  14. <a :style="{background:itemC.border,borderColor:activeIndex===indexC?itemC.borderColor:''}"></a>
  15. </li>
  16. </ul>
  17. </div>
  18. </div>
  19. <div class="article-box">
  20. <div class="artricle-inner" :style="{background:bgColorList[activeIndex].contentInnerBg}">
  21. <div class="article-top">
  22. <span class="preparation" :style="{color:bgColorList[activeIndex].sourceColor}">导读</span>
  23. <h3 :style="{color:bgColorList[activeIndex].contentColor}">{{peruseDetail.en_title+' '+peruseDetail.cn_title}}</h3>
  24. <label v-if="peruseDetail.label" :style="{background:tagBg[0],color:tagColor[0]}">{{ '# ' + peruseDetail.label}}</label>
  25. <p :style="{color:bgColorList[activeIndex].sourceColor}">{{peruseDetail.introduction}}</p>
  26. </div>
  27. <div class="article-content" :style="{borderColor:bgColorList[activeIndex].boxBorder}">
  28. <div class="tabs-box">
  29. <a :class="[tabsIndex===0?'active':'']" @click="handleChangeTabs(0)">原文</a>
  30. <a :class="[tabsIndex===1?'active':'']" @click="handleChangeTabs(1)">讲解</a>
  31. </div>
  32. <div v-for="(item,index) in peruseDetail.content.article" :key="item.sectionId">
  33. <div class="article-en" :class="[index===0?'article-en-title':'',tabsIndex===0?'original':'']" :style="{color:index===0?bgColorList[activeIndex].titleColor:bgColorList[activeIndex].contentColor,fontSize:index===0?(wordFontsize+16)+'px':wordFontsize+'px',lineHeight:index===0?(wordFontsize+24)+'px':(wordFontsize+8)+'px'}" v-html="item.sentenceStyle"></div>
  34. <div class="article-cn" :class="[index===0?'article-cn-title':'']" v-if="translateFlag" :style="{color:index===0?bgColorList[activeIndex].sourceColor:bgColorList[activeIndex].contentColor,fontSize:wordFontsize+'px',lineHeight:(wordFontsize+8)+'px'}">{{item.chArticle}}</div>
  35. <div class="voice-box" v-if="tabsIndex===1">
  36. </div>
  37. <div class="backgroundImg" v-if="index===0&&peruseDetail.content.backgroundImg">
  38. <el-image style="width: 100%; height: 100%" :src="peruseDetail.content.backgroundImg" fit="contain"></el-image>
  39. </div>
  40. </div>
  41. </div>
  42. <div class="article-bottom">
  43. <div class="left">
  44. <span :class="['support',support?'active':'']" @click="changeStatus('support')"><svg-icon icon-class="support"></svg-icon>2847</span>
  45. <span :class="['oppose',oppose?'active':'']" @click="changeStatus('oppose')"><svg-icon icon-class="oppose"></svg-icon></span>
  46. </div>
  47. <div class="center">
  48. <el-button type="text" class="btn-left" @click="handlePage('-')"><svg-icon icon-class="arrow-left-line"></svg-icon>上一篇</el-button>
  49. <el-button type="text" class="btn-right" @click="handlePage('+')">下一篇<svg-icon icon-class="arrow-right-line"></svg-icon></el-button>
  50. </div>
  51. <div class="right">
  52. <template v-if="noRead">
  53. <span class="support" @click="changeStatus('noRead')"><svg-icon icon-class="no-read"></svg-icon>标记为已读</span>
  54. </template>
  55. <template v-else>
  56. <span class="support readed" @click="changeStatus('noRead')"><svg-icon icon-class="readed"></svg-icon>已读</span>
  57. </template>
  58. </div>
  59. </div>
  60. </div>
  61. </div>
  62. <a class="translate" :class="[translateFlag?'active':'']" @click="changeTranslate"><svg-icon icon-class="translate" class="wrapper"></svg-icon></a>
  63. <div
  64. class="words-notes"
  65. ref="wordcarden"
  66. v-if="wordsNotes"
  67. >
  68. <a class="close-btn" @click="wordsNotes=!wordsNotes">
  69. <i class="el-icon-close"></i>
  70. </a>
  71. <h4>{{wordDetail.phrase}}</h4>
  72. <span v-if="wordDetail.symbol" class="symbol">
  73. /{{wordDetail.symbol}}/
  74. </span>
  75. <label>{{wordType[wordDetail.type]}}</label>
  76. <template v-for="(itemw,index) in wordDetail.explainDetailsList">
  77. <div class="explain" v-html="itemw.content" :key="index"></div>
  78. </template>
  79. </div>
  80. </div>
  81. </template>
  82. <script>
  83. import Header from "../../components/Header.vue";
  84. import NavBar from "../../components/common/NavBar.vue"
  85. import { getLogin } from "@/api/ajax";
  86. export default {
  87. name: 'articleDetail',
  88. computed: {
  89. },
  90. components: {
  91. Header,
  92. NavBar
  93. },
  94. data(){
  95. return{
  96. wordFontsize: 16, // 文章文字大小
  97. bgColorList:[
  98. {
  99. type:'white',
  100. contentBg:'#F2F3F5',
  101. contentInnerBg:'#FFFFFF',
  102. navBg:'#FFFFFF',
  103. border:'#E5E6EB',
  104. bg:'#FFFFFF',
  105. border_active:'#3459D2',
  106. boxBorder:'#E5E6EB',
  107. titleColor:'#1F2C5C',
  108. sourceColor:'#929CA8',
  109. contentColor:'#2F3742',
  110. btnColor:'#3459D2',
  111. glossaryTitle:'#2F3742',
  112. glossarySubtitle:'#4E5969',
  113. glossaryBg:'#F7F8FA',
  114. newWordColor:'#175DFF',
  115. newWordOtherColor:'#667180',
  116. newWordStar:'#FFB224',
  117. newWordType:{
  118. 'daochu':{
  119. text:'导出',
  120. color:'#F5319D',
  121. bg:'#FFE8F1'
  122. },
  123. 'xuanbi':{
  124. text:'选必',
  125. color:'#175DFF',
  126. bg:'#D9E2FC'
  127. }
  128. },
  129. phraseColor:'#ED5F00',
  130. phraseOhterColor:'#2F3742',
  131. annotationTitle:'#4E5969',
  132. annotationOhter:'#667180',
  133. statisticTitle:'#2F3742',
  134. statisticValue:'#3459D2',
  135. menuBg:'#EEF3FF',
  136. audiobg:'#FFFFFF',
  137. audioBorder:'#EBEBEB'
  138. },
  139. {
  140. type:'darkGreen',
  141. contentBg:'#C2C9C6',
  142. contentInnerBg:'#DFE4E2',
  143. navBg:'#236E55',
  144. border:'#5BB99A',
  145. bg:'#FFFFFF',
  146. border_active:'#FFFFFF',
  147. boxBorder:'#1B5441',
  148. titleColor:'#1F2C5C',
  149. sourceColor:'#929CA8',
  150. contentColor:'#2F3742',
  151. btnColor:'#3459D2',
  152. glossaryTitle:'#393F3C',
  153. glossarySubtitle:'#66736D',
  154. glossaryBg:'#D7DCDA',
  155. newWordColor:'#175DFF',
  156. newWordOtherColor:'#667180',
  157. newWordStar:'#FFB224',
  158. newWordType:{
  159. 'daochu':{
  160. text:'导出',
  161. color:'#F5319D',
  162. bg:'#FFE8F1'
  163. },
  164. 'xuanbi':{
  165. text:'选必',
  166. color:'#175DFF',
  167. bg:'#D9E2FC'
  168. }
  169. },
  170. phraseColor:'#ED5F00',
  171. phraseOhterColor:'#2F3742',
  172. statisticTitle:'#393F3C',
  173. statisticValue:'#299772',
  174. menuBg:'#E9F7F2',
  175. audiobg:'#ECEFED',
  176. audioBorder:'#DFE4E2'
  177. },
  178. {
  179. type:'darkBlue',
  180. contentBg:'#1C2129',
  181. contentInnerBg:'#2F3742',
  182. navBg:'#2F3742',
  183. border:'#1F2C5C',
  184. bg:'#1F2C5C',
  185. border_active:'#FFFFFF',
  186. boxBorder:'#1C2129',
  187. titleColor:'#5373E7',
  188. sourceColor:'#929CA8',
  189. contentColor:'#C1C5CD',
  190. btnColor:'#5373E7',
  191. glossaryTitle:'#929CA8',
  192. glossarySubtitle:'#929CA8',
  193. glossaryBg:'#3E4855',
  194. newWordColor:'#8DA4EF',
  195. newWordOtherColor:'#929CA8',
  196. newWordStar:'#816C00',
  197. newWordType:{
  198. 'daochu':{
  199. text:'导出',
  200. color:'#801D45',
  201. bg:'#F04F88'
  202. },
  203. 'xuanbi':{
  204. text:'选必',
  205. color:'#0A2E81',
  206. bg:'#5E89EF'
  207. }
  208. },
  209. phraseColor:'#ED5F00',
  210. phraseOhterColor:'#929CA8',
  211. statisticTitle:'#D0D3D9',
  212. statisticValue:'#5373E7',
  213. menuBg:'#EEF3FF',
  214. audiobg:'#3E4855',
  215. audioBorder:'#2F3742'
  216. },
  217. {
  218. type:'armyGreen',
  219. contentBg:'#2A2F2C',
  220. contentInnerBg:'#393F3C',
  221. navBg:'#393F3C',
  222. border:'#13392E',
  223. bg:'#13392E',
  224. border_active:'#FFFFFF',
  225. boxBorder:'#2A2F2C',
  226. titleColor:'#30A47D',
  227. sourceColor:'#99A29E',
  228. contentColor:'#C1C5CD',
  229. btnColor:'#30A47D',
  230. glossaryTitle:'#99A29E',
  231. glossarySubtitle:'#99A29E',
  232. glossaryBg:'#4A524E',
  233. newWordColor:'#8DA4EF',
  234. newWordOtherColor:'#99A29E',
  235. newWordStar:'#816C00',
  236. newWordType:{
  237. 'daochu':{
  238. text:'导出',
  239. color:'#801D45',
  240. bg:'#F04F88'
  241. },
  242. 'xuanbi':{
  243. text:'选必',
  244. color:'#0A2E81',
  245. bg:'#5E89EF'
  246. }
  247. },
  248. phraseColor:'#ED5F00',
  249. phraseOhterColor:'#99A29E',
  250. statisticTitle:'#D0D3D9',
  251. statisticValue:'#30A47D',
  252. menuBg:'#EEF3FF',
  253. audiobg:'#4A524E',
  254. audioBorder:'#393F3C'
  255. }
  256. ],
  257. activeIndex:0, // 选择主题色的索引
  258. peruseId: this.$route.query.peruseId?this.$route.query.peruseId:'',
  259. peruseDetail: null,
  260. loading: false,
  261. tagBg:['#C9EBFF'], // 标签背景色
  262. tagColor:['#006DAA'], // 标签字体颜色
  263. translateFlag: false,
  264. noRead: true, // 未读
  265. support: false, // 点赞
  266. oppose: false, // 不支持
  267. knowledgeList: [],
  268. wordDetail: null,
  269. wordsNotes: false,
  270. wordType:{
  271. '1':'基础词汇和固定搭配',
  272. '2':'高阶词汇和固定搭配',
  273. '3':'难句解析'
  274. },
  275. tabsIndex: 1,
  276. }
  277. },
  278. methods: {
  279. // 切换主题颜色
  280. handleChangeBgColor(index){
  281. this.activeIndex = index
  282. },
  283. // 获取精读详情
  284. getPeruseDetail(){
  285. this.loading = true
  286. let MethodName = "/PaperServer/Client/Iread/GetIreadDetail";
  287. let data = {
  288. id: this.peruseId
  289. }
  290. getLogin(MethodName, data)
  291. .then((res) => {
  292. if(res.status===1){
  293. this.peruseDetail = res.data
  294. this.peruseDetail.content.article.forEach(item=>{
  295. item.sentenceStyle = item.enArticle
  296. })
  297. if(res.data.content.knowledgeList&&res.data.content.knowledgeList.length>0){
  298. this.handleWords(res.data.content.knowledgeList)
  299. this.knowledgeList = res.data.content.knowledgeList
  300. }
  301. this.loading = false
  302. }
  303. })
  304. .catch(() => {
  305. this.loading = false
  306. });
  307. },
  308. handlePage(type){
  309. if(type==='-'){
  310. }else{
  311. }
  312. },
  313. changeStatus(flag){
  314. this[flag] = !this[flag]
  315. },
  316. // 处理生词、短语、注释
  317. handleWords(list){
  318. let arr = JSON.parse(JSON.stringify(list))
  319. this.peruseDetail.content.article.forEach((itema,indexa)=>{
  320. let arrs = itema.enArticle.split(' ')
  321. itema.enArticle.split(' ').forEach((iteme,indexe)=>{
  322. arr.forEach(item =>{
  323. if(item.knowList&&item.knowList.length>0){
  324. for(let i = 0; i < item.knowList.length; i++){
  325. if(item.knowList[i].articleId===itema.sectionId){
  326. let positionArr = item.knowList[i].position.split(',')
  327. if(positionArr.indexOf(indexe.toString())>-1){
  328. let id = item.knowList[i].id
  329. arrs[indexe] = `<b class="word-phrase" style="cursor:pointer" onclick="showWordDetail('${id}')">${iteme}</b>`
  330. }
  331. }
  332. }
  333. }
  334. })
  335. })
  336. itema.sentenceStyle = arrs.join(' ')
  337. })
  338. },
  339. // 获取卡片详情
  340. getWordDetail(id){
  341. for(let i = 0; i< this.knowledgeList.length; i++){
  342. if(this.knowledgeList[i].knowList&&this.knowledgeList[i].knowList.length>0){
  343. for(let j = 0; j< this.knowledgeList[i].knowList.length; j++){
  344. if(this.knowledgeList[i].knowList[j].id === id){
  345. this.wordDetail = this.knowledgeList[i].knowList[j]
  346. this.wordsNotes = true
  347. return
  348. }
  349. }
  350. }
  351. }
  352. },
  353. changeTranslate(){
  354. if(this.tabsIndex===0){
  355. this.$message.warning('原文不支持译文')
  356. return
  357. }
  358. this.translateFlag = !this.translateFlag
  359. },
  360. handleChangeTabs(val){
  361. this.tabsIndex = val
  362. this.translateFlag = false
  363. this.wordsNotes = false
  364. }
  365. },
  366. created(){
  367. if(this.peruseId){
  368. this.getPeruseDetail()
  369. }
  370. },
  371. mounted(){
  372. let _this = this
  373. window.showWordDetail = function(id){
  374. if(_this.tabsIndex===0){
  375. return
  376. }
  377. _this.getWordDetail(id)
  378. }
  379. }
  380. }
  381. </script>
  382. <style lang="scss" scoped>
  383. .bookStore{
  384. min-height: calc(100vh - 64px);
  385. padding-bottom: 10px;
  386. .navBar-right{
  387. display: flex;
  388. align-items: center;
  389. }
  390. .article-color{
  391. display: flex;
  392. width: 132px;
  393. height: 32px;
  394. justify-content: space-between;
  395. align-items: center;
  396. border: 1px solid #E5E6EB;
  397. border-radius: 40px;
  398. margin-left: 12px;
  399. padding: 4px;
  400. .color-item{
  401. padding: 2px;
  402. border: 2px solid transparent;
  403. border-radius: 50%;
  404. a{
  405. width: 16px;
  406. height: 16px;
  407. border-radius: 50%;
  408. display: block;
  409. border: 1px solid transparent;
  410. padding: 0;
  411. }
  412. }
  413. }
  414. .article-box{
  415. padding: 90px 0;
  416. .artricle-inner{
  417. width: 1000px;
  418. margin: 0 auto;
  419. }
  420. .article-top{
  421. padding: 16px 24px 24px;
  422. .preparation{
  423. color:#929CA8;
  424. font-size: 14px;
  425. font-weight: 400;
  426. line-height: 22px;
  427. }
  428. h3{
  429. color:#2F3742;
  430. font-size: 16px;
  431. font-weight: 500;
  432. line-height: 24px;
  433. margin: 8px 0;
  434. }
  435. label{
  436. margin: 0 8px 8px 0;
  437. border-radius: 2px;
  438. padding: 0 8px;
  439. font-weight: 400;
  440. font-size: 12px;
  441. line-height: 20px;
  442. display: inline-block;
  443. }
  444. p{
  445. color:#929CA8;
  446. font-size: 14px;
  447. font-weight: 400;
  448. line-height: 22px;
  449. margin: 0;
  450. word-break: break-word;
  451. }
  452. }
  453. .article-content{
  454. border-top: 1px dashed #E5E6EB;
  455. padding: 80px 120px 40px 120px;
  456. .article-en,.article-cn{
  457. color:#2F3742;
  458. font-size: 16px;
  459. font-weight: 400;
  460. line-height: 24px;
  461. word-break: break-word;
  462. text-indent: 2em;
  463. &.active{
  464. color: #5E89EF;
  465. }
  466. &.original{
  467. margin-bottom: 24px;
  468. }
  469. }
  470. .article-en-title{
  471. color:rgba(0, 0, 0, 0.88);
  472. font-size: 32px;
  473. font-weight: 500;
  474. line-height: 40px;
  475. text-align: center;
  476. text-indent: 0;
  477. }
  478. .article-cn-title{
  479. color:rgba(0, 0, 0, 0.48);
  480. font-size: 16px;
  481. font-weight: 500;
  482. line-height: 24px;
  483. text-align: center;
  484. text-indent: 0;
  485. margin-top: 4px;
  486. }
  487. .voice-box{
  488. padding: 4px 16px 4px 4px;
  489. border-radius: 40px;
  490. border: 1px solid #E5E6EB;
  491. background:#F2F3F5;
  492. width: 191px;
  493. margin: 24px 0;
  494. }
  495. }
  496. .article-bottom{
  497. padding: 16px;
  498. background: #F7F8FA;
  499. display: flex;
  500. justify-content: space-between;
  501. align-items: center;
  502. .right{
  503. width: 145px;
  504. margin-right: -8px;
  505. text-align: right;
  506. }
  507. .support{
  508. padding: 8px 16px;
  509. border-radius: 20px;
  510. background: #E5E6EB;
  511. margin-right: 8px;
  512. color:rgba(0, 0, 0, 0.88);
  513. font-size: 16px;
  514. font-weight: 400;
  515. line-height: 24px;
  516. cursor: pointer;
  517. .svg-icon{
  518. margin-right: 8px;
  519. color: rgba(23, 93, 255, 1);
  520. }
  521. &.active{
  522. background: rgba(48, 110, 255, 1);
  523. color: #fff;
  524. .svg-icon{
  525. color: #fff;
  526. }
  527. }
  528. }
  529. .oppose{
  530. padding: 12px;
  531. border-radius: 20px;
  532. background: #E5E6EB;
  533. height: 40px;
  534. font-size: 16px;
  535. line-height: 16px;
  536. display: inline-block;
  537. cursor: pointer;
  538. .svg-icon{
  539. width: 16px;
  540. height: 16px;
  541. }
  542. &.active{
  543. background: rgba(48, 110, 255, 1);
  544. .svg-icon{
  545. color: #fff;
  546. }
  547. }
  548. }
  549. .btn-left,.btn-right{
  550. color: #3459D2;
  551. font-size: 16px;
  552. line-height: 24px;
  553. padding: 0;
  554. .svg-icon{
  555. margin-right: 12px;
  556. }
  557. }
  558. .btn-right{
  559. .svg-icon{
  560. margin-right: 0;
  561. margin-left: 12px;
  562. }
  563. }
  564. .readed{
  565. background: rgba(231, 238, 255, 1);
  566. color: rgba(23, 93, 255, 1);
  567. }
  568. }
  569. .backgroundImg{
  570. width: 100%;
  571. height: 258px;
  572. margin-bottom: 24px;
  573. }
  574. }
  575. }
  576. .translate{
  577. position: fixed;
  578. z-index: 1;
  579. bottom: 200px;
  580. left: 50%;
  581. margin-left: 400px;
  582. padding: 12px;
  583. border-radius: 8px;
  584. background: #4F4F4F;
  585. box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.10), 0px 8px 10px 1px rgba(0, 0, 0, 0.06), 0px 3px 14px 2px rgba(0, 0, 0, 0.05);
  586. .svg-icon{
  587. width: 24px;
  588. height: 24px;
  589. color: #fff;
  590. }
  591. &.active{
  592. background: #175DFF;
  593. box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.12), 0px 4px 5px 0px rgba(0, 0, 0, 0.08), 0px 1px 10px 0px rgba(0, 0, 0, 0.05);
  594. }
  595. }
  596. .words-notes{
  597. border-radius: 4px;
  598. border: 1px solid rgba(0, 0, 0, 0.08);
  599. background: #F7F7F7;
  600. box-shadow: 0px 8px 10px -5px rgba(0, 0, 0, 0.08), 0px 16px 24px 2px rgba(0, 0, 0, 0.04), 0px 6px 30px 5px rgba(0, 0, 0, 0.05);
  601. padding: 16px 24px;
  602. width: 302px;
  603. position: fixed;
  604. left: 50%;
  605. top: 50%;
  606. margin-top: -150px;
  607. margin-left: -151px;
  608. max-height: 480px;
  609. overflow: auto;
  610. .close-btn{
  611. position: absolute;
  612. width: 24px;
  613. height: 24px;
  614. right: 4px;
  615. top: 4px;
  616. padding: 4px;
  617. cursor: pointer;
  618. color: rgba(153, 153, 153, 1);
  619. }
  620. h4{
  621. color: #000;
  622. font-size: 24px;
  623. font-weight: 700;
  624. line-height: 32px;
  625. margin: 0;
  626. }
  627. .symbol{
  628. color:rgba(0, 0, 0, 0.64);
  629. font-size: 14px;
  630. font-weight: 400;
  631. line-height: 22px;
  632. display: block;
  633. margin-top: 8px;
  634. }
  635. label{
  636. border-radius: 4px;
  637. background: #CAEFCE;
  638. padding: 2px 4px;
  639. margin: 8px 0;
  640. color:rgba(0, 0, 0, 0.48);
  641. font-size: 16px;
  642. font-weight: 400;
  643. line-height: 24px;
  644. display: inline-block;
  645. }
  646. .explain{
  647. color:rgba(0, 0, 0, 0.88);
  648. font-size: 14px;
  649. font-weight: 400;
  650. line-height: 22px;
  651. p{
  652. margin: 4px 0;
  653. }
  654. }
  655. }
  656. .tabs-box{
  657. display: flex;
  658. padding-bottom: 16px;
  659. justify-content: center;
  660. a{
  661. font-size: 14px;
  662. line-height: 22px;
  663. color: #4E5969;
  664. border-radius: 100px;
  665. padding: 5px 16px;
  666. margin-right: 12px;
  667. width: 108px;
  668. text-align: center;
  669. &:hover{
  670. background: #F2F3F5;
  671. }
  672. &.active{
  673. background: #F2F3F5;
  674. font-weight: 500;
  675. color: #165DFF;
  676. }
  677. }
  678. }
  679. </style>
  680. <style lang="scss">
  681. .article-fontsize{
  682. width: 144px;
  683. height: 32px;
  684. line-height: 30px;
  685. border: 1px solid #E5E6EB;
  686. border-radius: 40px;
  687. overflow: hidden;
  688. .el-input{
  689. height: 30px;
  690. }
  691. .el-input-number__decrease, .el-input-number__increase{
  692. height: 30px;
  693. border: none;
  694. background: transparent;
  695. color: #D9E2FC;
  696. }
  697. .el-input-number__decrease{
  698. border-right: 1px solid #1B5441;
  699. }
  700. .el-input-number__increase{
  701. border-left: 1px solid #1B5441;
  702. }
  703. .el-input__inner{
  704. height: 30px;
  705. border: none;
  706. line-height: 30px;
  707. background: transparent;
  708. color: #D9E2FC;
  709. }
  710. }
  711. .navBar{
  712. border-color: transparent;
  713. &-white{
  714. border-color: #EBEBEB;
  715. .el-input-number__decrease, .el-input-number__increase,.el-input__inner{
  716. color: #1C2129;
  717. }
  718. .el-input-number__decrease{
  719. border-right: 1px solid #E5E6EB;
  720. }
  721. .el-input-number__increase{
  722. border-left: 1px solid #E5E6EB;
  723. }
  724. .goback{
  725. color: #1D2129;
  726. }
  727. .border{
  728. background: #E5E6EB;
  729. height: 16px;
  730. margin-top: 2px;
  731. }
  732. .article-title{
  733. color: #86909C;
  734. }
  735. }
  736. &-darkGreen{
  737. .el-input-number__decrease{
  738. border-right: 1px solid #1B5441;
  739. }
  740. .el-input-number__increase{
  741. border-left: 1px solid #1B5441;
  742. }
  743. .goback{
  744. color: #E9F7F2;
  745. }
  746. .border{
  747. background: #1B5441;
  748. height: 16px;
  749. margin-top: 2px;
  750. }
  751. .article-title{
  752. color: #CCEBE1;
  753. }
  754. }
  755. &-darkBlue{
  756. .el-input-number__decrease{
  757. border-right: 1px solid #1C2129;
  758. }
  759. .el-input-number__increase{
  760. border-left: 1px solid #1C2129;
  761. }
  762. .goback{
  763. color: #E9F7F2;
  764. }
  765. .border{
  766. background: #667180;
  767. height: 16px;
  768. margin-top: 2px;
  769. }
  770. .article-title{
  771. color: #D9E2FC;
  772. }
  773. }
  774. &-armyGreen{
  775. .el-input-number__decrease{
  776. border-right: 1px solid #2A2F2C;
  777. }
  778. .el-input-number__increase{
  779. border-left: 1px solid #2A2F2C;
  780. }
  781. .goback{
  782. color: #E9F7F2;
  783. }
  784. .border{
  785. background: #99A29E;
  786. height: 16px;
  787. margin-top: 2px;
  788. }
  789. .article-title{
  790. color: #D9E2FC;
  791. }
  792. }
  793. }
  794. .words-notes{
  795. .explain{
  796. p{
  797. margin: 4px 0;
  798. }
  799. }
  800. }
  801. .article-en{
  802. &.original{
  803. b{
  804. font-weight: 400;
  805. cursor: initial !important;
  806. }
  807. }
  808. }
  809. </style>