articleDetail.vue 51 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421
  1. <template>
  2. <div class="bookStore" :style="{background:bgColorList[activeIndex].contentBg}" v-if="articleInfo" :v-loading="loading">
  3. <Header :LoginNavIndex="LoginNavIndex"/>
  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> 第 {{articleInfo.iss_no}} 期</a>
  7. <div class="border"></div>
  8. <p class="article-title">{{articleInfo.art_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. <!-- 文章 -->
  22. <div class="atricle-data">
  23. <normal-model :titleFontsize="wordFontsize+30" :wordFontsize="wordFontsize" :colorObj="bgColorList[activeIndex]" :articleType="articleType" :style="{'padding':'0 40px'}" v-if="menuType==='original'" :articleInfo="articleInfo"></normal-model>
  24. <phrase-model :titleFontsize="wordFontsize+30" :wordFontsize="wordFontsize" :colorObj="bgColorList[activeIndex]" :articleType="articleType" :style="{'padding':'0 40px'}" v-if="menuType==='newWord'" :articleInfo="articleInfo" :likePhraseList="likePhraseList" :likeWord="likeWordList" @changeLike="changeLike"></phrase-model>
  25. <div class="article-btn" v-if="this.$route.query.iss_id">
  26. <div class="left">
  27. <span :class="['support colloct-article',!noRead?'active':'']" @click="changeStatus('noRead')"><svg-icon icon-class="like-line" :style="{marginRight:articleNumber?'8px':'0px'}"></svg-icon>{{articleNumber?articleNumber:''}}</span>
  28. <!-- <span :class="['oppose',oppose?'active':'']" @click="changeStatus('oppose')"><svg-icon icon-class="oppose"></svg-icon></span> -->
  29. </div>
  30. <div class="center">
  31. <el-button type="text" class="btn-left" :class="[activeArticleIndex===0?'not-allow':'']" @click="handlePage('-')"><svg-icon icon-class="arrow-left-line"></svg-icon>上一篇</el-button>
  32. <el-button type="text" class="btn-right" :class="[activeArticleIndex===issueChnTanList.length-1?'not-allow':'']" @click="handlePage('+')">下一篇<svg-icon icon-class="arrow-right-line"></svg-icon></el-button>
  33. </div>
  34. <div class="right">
  35. <!-- <template v-if="noRead">
  36. <span class="support" @click="handleReadArticle"><svg-icon icon-class="no-read"></svg-icon>标记为已读</span>
  37. </template>
  38. <template v-else>
  39. <span class="support readed"><svg-icon icon-class="readed"></svg-icon>已读</span>
  40. </template> -->
  41. </div>
  42. </div>
  43. </div>
  44. <!-- 词汇表 -->
  45. <div class="glossary-box" :style="{borderTopColor:bgColorList[activeIndex].contentBg}">
  46. <div class="title" :style="{color:bgColorList[activeIndex].glossaryTitle}">
  47. <h2>词汇表</h2>
  48. <a @click="showGlossary=!showGlossary">{{showGlossary?'收起':'展开'}}</a>
  49. </div>
  50. <el-collapse-transition >
  51. <div v-if="showGlossary">
  52. <template v-if="articleInfo.art_voc_data.length>0">
  53. <h4 :style="{color:bgColorList[activeIndex].glossarySubtitle}">生词</h4>
  54. <new-word-list class="newWord-list" :list="articleInfo.art_voc_data" :style="{background:bgColorList[activeIndex].glossaryBg}" :colorObj="bgColorList[activeIndex]" :likeWordList="likeWordList" @changeLike="changeLike" ref="newWordList"></new-word-list>
  55. </template>
  56. <template v-if="articleInfo.art_phrase_data.length>0">
  57. <h4 :style="{color:bgColorList[activeIndex].glossarySubtitle}">短语</h4>
  58. <phrase-list class="newWord-list" :list="articleInfo.art_phrase_data" :style="{background:bgColorList[activeIndex].glossaryBg}" :colorObj="bgColorList[activeIndex]" :likePhraseList="likePhraseList" @changeLike="changeLike" ref="phraseList"></phrase-list>
  59. </template>
  60. <template v-if="articleInfo.art_explain_data.length>0">
  61. <h4 :style="{color:bgColorList[activeIndex].glossarySubtitle}">注释</h4>
  62. <annotation-list class="newWord-list" :list="articleInfo.art_explain_data" :style="{background:bgColorList[activeIndex].glossaryBg}" :colorObj="bgColorList[activeIndex]"></annotation-list>
  63. </template>
  64. </div>
  65. </el-collapse-transition>
  66. <div class="title" :style="{color:bgColorList[activeIndex].glossaryTitle,marginTop:'40px'}">
  67. <h2>详细统计</h2>
  68. </div>
  69. <h4 :style="{color:bgColorList[activeIndex].glossarySubtitle}">词汇信息</h4>
  70. <div class="word-info" v-if="articleInfo.art_corpus_data&&articleInfo.art_corpus_data.artStatInfo">
  71. <div :style="{background:bgColorList[activeIndex].glossaryBg}">
  72. <label :style="{color:bgColorList[activeIndex].statisticTitle}">文章长度</label>
  73. <span :style="{color:bgColorList[activeIndex].statisticValue}">{{articleInfo.art_corpus_data.artStatInfo.wc}}</span>
  74. </div>
  75. <div :style="{background:bgColorList[activeIndex].glossaryBg}">
  76. <label :style="{color:bgColorList[activeIndex].statisticTitle}">词汇数量</label>
  77. <span :style="{color:bgColorList[activeIndex].statisticValue}">{{articleInfo.art_corpus_data.artStatInfo.wdc}}</span>
  78. </div>
  79. <div :style="{background:bgColorList[activeIndex].glossaryBg}">
  80. <label :style="{color:bgColorList[activeIndex].statisticTitle}">平均词长</label>
  81. <span :style="{color:bgColorList[activeIndex].statisticValue}">{{articleInfo.art_corpus_data.artStatInfo.avgWordLen}}</span>
  82. </div>
  83. <div :style="{background:bgColorList[activeIndex].glossaryBg}">
  84. <label :style="{color:bgColorList[activeIndex].statisticTitle}">词汇密度</label>
  85. <span :style="{color:bgColorList[activeIndex].statisticValue}">{{articleInfo.art_corpus_data.artStatInfo.vocabDensity}}</span>
  86. </div>
  87. <div :style="{background:bgColorList[activeIndex].glossaryBg}">
  88. <label :style="{color:bgColorList[activeIndex].statisticTitle}">词汇难度</label>
  89. <span :style="{color:bgColorList[activeIndex].statisticValue}">{{articleInfo.art_corpus_data.artStatInfo.vocabHardLevel}}</span>
  90. </div>
  91. </div>
  92. <h4 :style="{color:bgColorList[activeIndex].glossarySubtitle}">词汇分布</h4>
  93. <div class="echarts-box" v-if="articleInfo&&articleInfo.art_corpus_data&&articleInfo.art_corpus_data.artStatInfo&&articleInfo.art_corpus_data.artStatInfo.vocabVlLevelItems">
  94. <ul class="echarts-type">
  95. <li v-for="(itemE,indexE) in articleInfo.art_corpus_data.artStatInfo.vocabVlLevelItems" :key="indexE"
  96. @mouseover="gaolangbzt(indexE, 'shanxing_main')"
  97. @mouseout="closegaolangbzt(indexE, 'shanxing_main')"
  98. :style="{background:bgColorList[activeIndex].type==='white'?itemE.bg:bgColorList[activeIndex].type==='darkGreen'?itemE.darkGreenBg:itemE.darkBg,color:bgColorList[activeIndex].type==='white'?itemE.color:bgColorList[activeIndex].type==='darkGreen'?itemE.darkGreenColor:itemE.darkColor,borderColor:bgColorList[activeIndex].type==='white'?itemE.border:bgColorList[activeIndex].type==='darkGreen'?itemE.darkGreenBorder:itemE.darkBorder}">
  99. <span class="name">{{itemE.vlCnName}}</span>
  100. <span class="number">{{itemE.value}}</span>
  101. <span class="percent">{{itemE.vocabPercentStr}}</span>
  102. </li>
  103. </ul>
  104. <div id="shanxing_main" style="height: 360px"></div>
  105. </div>
  106. </div>
  107. <!-- 右侧菜单 -->
  108. <div class="mene-right" :style="{background:bgColorList[activeIndex].contentInnerBg,borderColor:bgColorList[activeIndex].glossaryBg}">
  109. <menu-right :colorObj="bgColorList[activeIndex]" @changeArticleType="changeArticleType"></menu-right>
  110. </div>
  111. </div>
  112. </div>
  113. <div class="share-box" v-if="menuFeature==='share'" v-loading="shareLoading">
  114. <div class="share-box-top">
  115. <h5>分享</h5>
  116. <i class="el-icon-close" @click="handleCloseShare"></i>
  117. </div>
  118. <template v-if="shareSrc">
  119. <img :src="shareSrc" />
  120. </template>
  121. <template v-else>
  122. <el-skeleton style="width: 240px" :loading="true" animated>
  123. <template slot="template">
  124. <el-skeleton-item
  125. variant="image"
  126. style="width: 380px; height: 532px;"
  127. />
  128. </template>
  129. </el-skeleton>
  130. </template>
  131. <div class="share-box-bottom">
  132. <el-button type="primary" @click="downLoadImg(shareSrc)" size="small">下载图片</el-button>
  133. <el-button @click="CopyToClipboard('copyDownUrl')" size="small" type="primary" plain>复制链接</el-button>
  134. <span id="copyDownUrl">{{share_url}}</span>
  135. </div>
  136. </div>
  137. </div>
  138. </template>
  139. <script>
  140. import Header from "../../components/Header.vue";
  141. import NavBar from "../../components/common/NavBar.vue"
  142. import NewWordList from './components/NewWordList.vue';
  143. import PhraseList from './components/PhraseList.vue';
  144. import AnnotationList from './components/AnnotationList.vue'
  145. import NormalModel from "./components/NormalModel.vue"
  146. import PhraseModel from "./components/PhraseModel.vue"
  147. import MenuRight from "./components/MenuRight.vue"
  148. import * as echarts from "echarts";
  149. import { getLogin } from "@/api/ajax";
  150. import { getToken } from '@/utils/auth'
  151. export default {
  152. name: 'articleDetail',
  153. computed: {
  154. },
  155. components: {
  156. Header,
  157. NavBar,
  158. NewWordList,
  159. PhraseList,
  160. AnnotationList,
  161. NormalModel,
  162. MenuRight,
  163. PhraseModel
  164. },
  165. data(){
  166. return{
  167. config: this.$route.query.headerConfig?decodeURIComponent(this.$route.query.headerConfig):'',
  168. LoginNavIndex: 0,
  169. wordFontsize: 18, // 文章文字大小
  170. bgColorList:[
  171. {
  172. type:'white',
  173. contentBg:'#F2F3F5',
  174. contentInnerBg:'#FFFFFF',
  175. navBg:'#FFFFFF',
  176. border:'#E5E6EB',
  177. bg:'#FFFFFF',
  178. border_active:'#3459D2',
  179. boxBorder:'#E5E6EB',
  180. titleColor:'#1F2C5C',
  181. sourceColor:'#929CA8',
  182. contentColor:'#2F3742',
  183. btnColor:'#3459D2',
  184. glossaryTitle:'#2F3742',
  185. glossarySubtitle:'#4E5969',
  186. glossaryBg:'#F7F8FA',
  187. newWordColor:'#175DFF',
  188. newWordOtherColor:'#667180',
  189. newWordStar:'#FFB224',
  190. newWordType:{
  191. 'L0':{
  192. color:'#5B7217',
  193. bg:'#F1FCE3'
  194. },
  195. 'L1':{
  196. color:'#3D9A50',
  197. bg:'#EFFCEF'
  198. },
  199. 'L2':{
  200. color:'#0081F1',
  201. bg:'#E7F3FF'
  202. },
  203. 'L3':{
  204. color:'#3459D2',
  205. bg:'#EEF3FF'
  206. },
  207. 'LA':{
  208. color:'#E03177',
  209. bg:'#FFECF5'
  210. },
  211. 'LB':{
  212. color:'#CD2B31',
  213. bg:'#FFE8E8'
  214. },
  215. 'LC':{
  216. color:'#4A524E',
  217. bg:'#DFE4E2'
  218. },
  219. 'LD':{
  220. color:'#504F57',
  221. bg:'#C1C5CD'
  222. }
  223. },
  224. phraseColor:'#ED5F00',
  225. phraseOhterColor:'#2F3742',
  226. annotationTitle:'#4E5969',
  227. annotationOhter:'#667180',
  228. statisticTitle:'#2F3742',
  229. statisticValue:'#3459D2',
  230. menuBg:'#EEF3FF',
  231. audiobg:'#FFFFFF',
  232. audioBorder:'#EBEBEB'
  233. },
  234. {
  235. type:'darkGreen',
  236. contentBg:'#C2C9C6',
  237. contentInnerBg:'#DFE4E2',
  238. navBg:'#236E55',
  239. border:'#5BB99A',
  240. bg:'#FFFFFF',
  241. border_active:'#FFFFFF',
  242. boxBorder:'#1B5441',
  243. titleColor:'#1F2C5C',
  244. sourceColor:'#929CA8',
  245. contentColor:'#2F3742',
  246. btnColor:'#3459D2',
  247. glossaryTitle:'#393F3C',
  248. glossarySubtitle:'#66736D',
  249. glossaryBg:'#D7DCDA',
  250. newWordColor:'#175DFF',
  251. newWordOtherColor:'#667180',
  252. newWordStar:'#FFB224',
  253. newWordType:{
  254. 'L0':{
  255. color:'#5B7217',
  256. bg:'#F1FCE3'
  257. },
  258. 'L1':{
  259. color:'#3D9A50',
  260. bg:'#EFFCEF'
  261. },
  262. 'L2':{
  263. color:'#0081F1',
  264. bg:'#E7F3FF'
  265. },
  266. 'L3':{
  267. color:'#3459D2',
  268. bg:'#EEF3FF'
  269. },
  270. 'LA':{
  271. color:'#E03177',
  272. bg:'#FFECF5'
  273. },
  274. 'LB':{
  275. color:'#CD2B31',
  276. bg:'#FFE8E8'
  277. },
  278. 'LC':{
  279. color:'#4A524E',
  280. bg:'#DFE4E2'
  281. },
  282. 'LD':{
  283. color:'#504F57',
  284. bg:'#C1C5CD'
  285. }
  286. },
  287. phraseColor:'#ED5F00',
  288. phraseOhterColor:'#2F3742',
  289. statisticTitle:'#393F3C',
  290. statisticValue:'#299772',
  291. menuBg:'#E9F7F2',
  292. audiobg:'#ECEFED',
  293. audioBorder:'#DFE4E2'
  294. },
  295. {
  296. type:'darkBlue',
  297. contentBg:'#1C2129',
  298. contentInnerBg:'#2F3742',
  299. navBg:'#2F3742',
  300. border:'#1F2C5C',
  301. bg:'#1F2C5C',
  302. border_active:'#FFFFFF',
  303. boxBorder:'#1C2129',
  304. titleColor:'#5373E7',
  305. sourceColor:'#929CA8',
  306. contentColor:'#C1C5CD',
  307. btnColor:'#5373E7',
  308. glossaryTitle:'#929CA8',
  309. glossarySubtitle:'#929CA8',
  310. glossaryBg:'#3E4855',
  311. newWordColor:'#8DA4EF',
  312. newWordOtherColor:'#929CA8',
  313. newWordStar:'#816C00',
  314. newWordType:{
  315. 'L0':{
  316. color:'rgba(255, 255, 255, 0.64)',
  317. bg:'#5B7217'
  318. },
  319. 'L1':{
  320. color:'rgba(255, 255, 255, 0.64)',
  321. bg:'#2F6E3B'
  322. },
  323. 'L2':{
  324. color:'rgba(255, 255, 255, 0.64)',
  325. bg:'#006793'
  326. },
  327. 'L3':{
  328. color:'rgba(255, 255, 255, 0.64)',
  329. bg:'#AE1955'
  330. },
  331. 'LA':{
  332. color:'rgba(255, 255, 255, 0.64)',
  333. bg:'#AE1955'
  334. },
  335. 'LB':{
  336. color:'rgba(255, 255, 255, 0.64)',
  337. bg:'#8F2025'
  338. },
  339. 'LC':{
  340. color:'rgba(255, 255, 255, 0.64)',
  341. bg:'#4A524E'
  342. },
  343. 'LD':{
  344. color:'rgba(255, 255, 255, 0.64)',
  345. bg:'#2F3742'
  346. }
  347. },
  348. phraseColor:'#ED5F00',
  349. phraseOhterColor:'#929CA8',
  350. statisticTitle:'#D0D3D9',
  351. statisticValue:'#5373E7',
  352. menuBg:'#EEF3FF',
  353. audiobg:'#3E4855',
  354. audioBorder:'#2F3742'
  355. },
  356. {
  357. type:'armyGreen',
  358. contentBg:'#2A2F2C',
  359. contentInnerBg:'#393F3C',
  360. navBg:'#393F3C',
  361. border:'#13392E',
  362. bg:'#13392E',
  363. border_active:'#FFFFFF',
  364. boxBorder:'#2A2F2C',
  365. titleColor:'#30A47D',
  366. sourceColor:'#99A29E',
  367. contentColor:'#C1C5CD',
  368. btnColor:'#30A47D',
  369. glossaryTitle:'#99A29E',
  370. glossarySubtitle:'#99A29E',
  371. glossaryBg:'#4A524E',
  372. newWordColor:'#8DA4EF',
  373. newWordOtherColor:'#99A29E',
  374. newWordStar:'#816C00',
  375. newWordType:{
  376. 'L0':{
  377. color:'rgba(255, 255, 255, 0.64)',
  378. bg:'#5B7217'
  379. },
  380. 'L1':{
  381. color:'rgba(255, 255, 255, 0.64)',
  382. bg:'#2F6E3B'
  383. },
  384. 'L2':{
  385. color:'rgba(255, 255, 255, 0.64)',
  386. bg:'#006793'
  387. },
  388. 'L3':{
  389. color:'rgba(255, 255, 255, 0.64)',
  390. bg:'#AE1955'
  391. },
  392. 'LA':{
  393. color:'rgba(255, 255, 255, 0.64)',
  394. bg:'#AE1955'
  395. },
  396. 'LB':{
  397. color:'rgba(255, 255, 255, 0.64)',
  398. bg:'#8F2025'
  399. },
  400. 'LC':{
  401. color:'rgba(255, 255, 255, 0.64)',
  402. bg:'#4A524E'
  403. },
  404. 'LD':{
  405. color:'rgba(255, 255, 255, 0.64)',
  406. bg:'#2F3742'
  407. }
  408. },
  409. phraseColor:'#ED5F00',
  410. phraseOhterColor:'#99A29E',
  411. statisticTitle:'#D0D3D9',
  412. statisticValue:'#30A47D',
  413. menuBg:'#EEF3FF',
  414. audiobg:'#4A524E',
  415. audioBorder:'#393F3C'
  416. }
  417. ],
  418. activeIndex:0, // 选择主题色的索引
  419. showGlossary: true, // 是否展开词汇表
  420. wordList:[
  421. {
  422. src: '.',
  423. word:'cremation',
  424. symbol:'/krəˈmeɪʃn/',
  425. paraList:[
  426. {
  427. cixing:'n.',
  428. shiyi:'火葬;火化'
  429. }
  430. ],
  431. type:'daochu',
  432. rate:3
  433. },
  434. {
  435. src: '.',
  436. word:'thrive',
  437. symbol:'/θraɪv/',
  438. paraList:[
  439. {
  440. cixing:'v.',
  441. shiyi:'茁壮成长,兴旺,繁荣;(尤指在别人觉得困难的时候)以……为乐,可以出色应对'
  442. }
  443. ],
  444. type:'xuanbi',
  445. rate:4
  446. },
  447. {
  448. src: '.',
  449. word:'diversify',
  450. symbol:'/daɪˈvɜːsɪfaɪ/',
  451. paraList:[
  452. {
  453. cixing:'v.',
  454. shiyi:'(使)多样化,(使)不同;扩大经营范围,增加……的品种;(投资)多元化;'
  455. },
  456. {
  457. cixing:'n.',
  458. shiyi:"兽医;<美,非正式>老兵;兽医诊所(vet's)"
  459. }
  460. ],
  461. type:'daochu',
  462. rate:2
  463. },
  464. ],
  465. phraseList:[
  466. {
  467. word:'send off',
  468. paraList:[
  469. '送行'
  470. ]
  471. },
  472. {
  473. word:'more than',
  474. paraList:[
  475. '多于'
  476. ]
  477. },
  478. {
  479. word:'according to',
  480. paraList:[
  481. '根据'
  482. ]
  483. },
  484. {
  485. word:'In addition to',
  486. paraList:[
  487. '除了……之外'
  488. ]
  489. },
  490. ],
  491. annotationList:[
  492. {
  493. prefix:'visiting team',
  494. para:'时区。全球划分为24个时区。相邻两个时区的时问相差1小时。出国旅行的人,必须随时调整自己的手表,才能和当地时间相一致。凡向西走,每过一个时区,就要把表拨慢1小时;凡向东走,每过一个时区,就要把表拨快1小时。'
  495. },
  496. {
  497. prefix:'jet–lagged',
  498. para:'有时差反应的,有时差感的。人体症状多表现为疲劳、方向感减弱和失眠、往往会影响人们最初几天的活动。'
  499. }
  500. ],
  501. vocabularyType:{
  502. L0:{
  503. bg:'#F2FCE3',
  504. color:'#5B7217',
  505. darkBg:'#5B7217',
  506. border:'#F2FCE3',
  507. darkColor:'rgba(255, 255, 255, 0.64)',
  508. darkBorder:'rgba(255, 255, 255, 0.08)',
  509. darkGreenBg:'#F2FCE3',
  510. darkGreenColor:'#5B7217',
  511. darkGreenBorder:'#F2FCE3'
  512. },
  513. L1:{
  514. bg:'#EFFCEF',
  515. color:'#3D9A50',
  516. darkBg:'#2F6E3B',
  517. darkColor:'rgba(255, 255, 255, 0.64)',
  518. darkBorder:'rgba(255, 255, 255, 0.08)',
  519. darkGreenBg:'#EFFCEF',
  520. darkGreenColor:'#3D9A50',
  521. darkGreenBorder:'#EFFCEF'
  522. },
  523. L2:{
  524. bg:'#E7EEFF',
  525. color:'#175DFF',
  526. darkBg:'#006793',
  527. darkColor:'rgba(255, 255, 255, 0.64)',
  528. darkBorder:'rgba(255, 255, 255, 0.08)',
  529. darkGreenBg:'#E7F3FF',
  530. darkGreenColor:'#0081F1',
  531. darkGreenBorder:'#E7F3FF'
  532. },
  533. L3:{
  534. bg:'#EEF3FF',
  535. color:'#3459D2',
  536. darkBg:'#2C49AA',
  537. darkColor:'rgba(255, 255, 255, 0.64)',
  538. darkBorder:'rgba(255, 255, 255, 0.08)',
  539. darkGreenBg:'#EEF3FF',
  540. darkGreenColor:'#3459D2',
  541. darkGreenBorder:'#EEF3FF'
  542. },
  543. LA:{
  544. bg:'#FFECF5',
  545. color:'#E03177',
  546. darkBg:'#AE1955',
  547. darkColor:'rgba(255, 255, 255, 0.64)',
  548. darkBorder:'rgba(255, 255, 255, 0.08)',
  549. darkGreenBg:'#FFECF5',
  550. darkGreenColor:'#E03177',
  551. darkGreenBorder:'#FFECF5'
  552. },
  553. LB:{
  554. bg:'#FFE8E8',
  555. color:'#CD2B31',
  556. darkBg:'#8F2025',
  557. darkColor:'rgba(255, 255, 255, 0.64)',
  558. darkBorder:'rgba(255, 255, 255, 0.08)',
  559. darkGreenBg:'#FFE8E8',
  560. darkGreenColor:'#CD2B31',
  561. darkGreenBorder:'#FFE8E8'
  562. },
  563. LC:{
  564. bg:'#DFE4E2',
  565. color:'#4A524E',
  566. border:'rgba(0, 0, 0, 0.08)',
  567. darkBg:'#4A524E',
  568. darkColor:'rgba(255, 255, 255, 0.64)',
  569. darkBorder:'rgba(255, 255, 255, 0.08)',
  570. darkGreenBg:'#DFE4E2',
  571. darkGreenColor:'#4A524E',
  572. darkGreenBorder:'rgba(0, 0, 0, 0.08)'
  573. },
  574. LD:{
  575. bg:'#C1C5CD',
  576. color:'#504F57',
  577. darkBg:'#2F3742',
  578. darkColor:'rgba(255, 255, 255, 0.64)',
  579. darkBorder:'rgba(255, 255, 255, 0.08)',
  580. darkGreenBg:'#C1C5CD',
  581. darkGreenColor:'#504F57',
  582. darkGreenBorder:'#C1C5CD'
  583. }
  584. },
  585. articleType:this.$route.query.type?this.$route.query.type*1:1,
  586. articleId:this.$route.query.id?this.$route.query.id:'',
  587. noRead: true, // 未读
  588. support: false, // 点赞
  589. oppose: false, // 不支持
  590. timer: null,
  591. readLength: 0,
  592. articleInfo: null,
  593. loading: false,
  594. menuType: 'original',
  595. menuFeature: '', // 功能
  596. shareSrc: '', // 分享图片
  597. share_url: '', // 分享链接
  598. shareLoading: false,
  599. likeWordList: [], // 收藏短语list
  600. likePhraseList: [],
  601. likeSentencelist: [],
  602. issueChnList:[], // 报刊文章目录
  603. issueChnTanList: [], //文章摊平
  604. userMessage: getToken()?JSON.parse(getToken()):null,
  605. activeArticleIndex: 0,
  606. articleNumber: 0
  607. }
  608. },
  609. methods: {
  610. inityuan() {
  611. if(this.articleInfo&&this.articleInfo.art_corpus_data&&this.articleInfo.art_corpus_data.artStatInfo&&this.articleInfo.art_corpus_data.artStatInfo.vocabVlLevelItems){
  612. var chartDom = document.getElementById("shanxing_main");
  613. var myChart = echarts.init(chartDom);
  614. var option;
  615. let newdata = JSON.parse(JSON.stringify(this.articleInfo.art_corpus_data.artStatInfo.vocabVlLevelItems));
  616. newdata.forEach((item) => {
  617. let percent = item.vocabPercent / 100;
  618. if (percent % 1 == 0) {
  619. item.name = item.vlCnName + " " + percent + "%";
  620. } else {
  621. item.name = item.vlCnName + " " + percent.toFixed(2) + "%";
  622. }
  623. });
  624. option = {
  625. color:this.bgColorList[this.activeIndex].type==='white'?this.articleInfo.vl_id==='VL26'?['#90C62F','#55B467','#F04F88','#F2555A','#D7DCDA','#99A29E']:['#90C62F','#55B467','#5FD4F4','#5373E7','#F04F88','#F2555A','#D7DCDA','#99A29E']:this.bgColorList[this.activeIndex].type==='darkGreen'?this.articleInfo.vl_id==='VL26'?['#90C62F','#55B467','#5FD4F4','#5373E7','#F04F88','#F2555A','#D7DCDA','#99A29E']:['#90C62F','#55B467','#F04F88','#F2555A','#D7DCDA','#99A29E']:this.articleInfo.vl_id==='VL26'?['#5B7217','#2F6E3B','#006793','#2C49AA','#AE1955','#F2555A','#4A524E','#2F3742']:['#5B7217','#2F6E3B','#AE1955','#F2555A','#4A524E','#2F3742'],
  626. series: [
  627. {
  628. name: "Access From",
  629. type: "pie",
  630. radius: ["50%", "90%"],
  631. data: newdata,
  632. itemStyle: {
  633. borderColor: "rgba(255, 255, 255, 0.24)",
  634. borderWidth: 1,
  635. },
  636. top: 50,
  637. emphasis: {
  638. itemStyle: {
  639. shadowBlur: 10,
  640. shadowOffsetX: 0,
  641. shadowColor: "rgba(0, 0, 0, 0.5)",
  642. },
  643. },
  644. },
  645. ],
  646. xAxis: {
  647. show: false, //不显示坐标轴线、坐标轴刻度线和坐标轴上的文字
  648. axisTick: {
  649. show: false, //不显示坐标轴刻度线
  650. },
  651. axisLine: {
  652. show: false, //不显示坐标轴线
  653. },
  654. axisLabel: {
  655. show: false, //不显示坐标轴上的文字
  656. },
  657. },
  658. };
  659. option && myChart.setOption(option);
  660. }
  661. },
  662. // 鼠标进入
  663. gaolangbzt(index, id) {
  664. var compareChart = echarts.getInstanceByDom(document.getElementById(id));
  665. compareChart.dispatchAction({
  666. type: "highlight",
  667. seriesIndex: 0,
  668. dataIndex: index,
  669. });
  670. },
  671. // 鼠标移出
  672. closegaolangbzt(index, id) {
  673. var compareChart = echarts.getInstanceByDom(document.getElementById(id));
  674. compareChart.dispatchAction({
  675. type: "downplay",
  676. seriesIndex: 0,
  677. dataIndex: index,
  678. });
  679. },
  680. // 切换主题颜色
  681. handleChangeBgColor(index){
  682. this.activeIndex = index
  683. this.inityuan()
  684. },
  685. handlePage(type){
  686. if(type==='-'){
  687. if(this.activeArticleIndex!==0){
  688. if(!this.issueChnTanList[this.activeArticleIndex-1].canRead){
  689. return
  690. }
  691. this.activeArticleIndex --
  692. this.$router.replace({
  693. path: "/articleDetail",
  694. query: {
  695. headerConfig: this.$route.query.headerConfig?this.$route.query.headerConfig:'',
  696. id: this.issueChnTanList[this.activeArticleIndex].id,
  697. iss_id: this.$route.query.iss_id
  698. },
  699. })
  700. }else{
  701. return
  702. }
  703. }else{
  704. if(this.activeArticleIndex!==this.issueChnTanList.length-1){
  705. if(!this.issueChnTanList[this.activeArticleIndex+1].canRead){
  706. return
  707. }
  708. this.activeArticleIndex ++
  709. this.$router.replace({
  710. path: "/articleDetail",
  711. query: {
  712. headerConfig: this.$route.query.headerConfig?this.$route.query.headerConfig:'',
  713. id: this.issueChnTanList[this.activeArticleIndex].id,
  714. iss_id: this.$route.query.iss_id
  715. },
  716. })
  717. }else{
  718. return
  719. }
  720. }
  721. location.reload()
  722. },
  723. getArticleDetail(){
  724. this.loading = true
  725. let this_ = this;
  726. let MethodName = "/PaperServer/Client/Article/GetArticleDetail";
  727. let data = {
  728. id: this.articleId,
  729. }
  730. getLogin(MethodName, data)
  731. .then((res) => {
  732. this.loading = false
  733. if(res.status===1){
  734. this.articleInfo = res.data
  735. if(this.articleInfo&&this.articleInfo.art_corpus_data&&this.articleInfo.art_corpus_data.artStatInfo&&this.articleInfo.art_corpus_data.artStatInfo.vocabVlLevelItems){
  736. this.articleInfo.art_corpus_data.artStatInfo.vocabVlLevelItems.forEach(item=>{
  737. item.value = item.vocabCount
  738. item = Object.assign(item, this.vocabularyType[item.vlId])
  739. })
  740. this.articleInfo.art_voc_data.forEach(item=>{
  741. item.collect = false
  742. })
  743. }
  744. setTimeout(() => {
  745. this_.inityuan()
  746. }, 100);
  747. }
  748. })
  749. .catch(() => {
  750. this.loading = false
  751. });
  752. getLogin('/ShopServer/Client/CollectManager/GetMyCollectIntegrateInfo_Article', {
  753. article_id: this.articleId,
  754. })
  755. .then((res) => {
  756. if(res.status===1){
  757. this.noRead = res.is_collect_article === 'false'
  758. this.articleNumber = res.collect_person_count
  759. if(!this.noRead){
  760. clearInterval(this_.timer);
  761. this_.timer = null;
  762. }
  763. this.likeWordList = []
  764. res.word_list.forEach(item=>{
  765. this.likeWordList.push(item.word)
  766. })
  767. this.likePhraseList = []
  768. res.phrase_list.forEach(item=>{
  769. this.likePhraseList.push(item.phrase)
  770. })
  771. this.likeSentencelist = []
  772. res.sentence_list.forEach(item=>{
  773. this.likeSentencelist.push(item.sentence_id)
  774. })
  775. }
  776. })
  777. .catch(() => {
  778. this.loading = false
  779. });
  780. },
  781. handleReadArticle(){
  782. let this_ = this;
  783. clearInterval(this_.timer);
  784. this_.timer = null;
  785. let MethodName = "/ShopServer/Client/ReadingRecordManager/AddReadingRecord_Article";
  786. let data = {
  787. goods_type: 21,
  788. article_id: this.articleId,
  789. duration: this.readLength
  790. }
  791. getLogin(MethodName, data)
  792. .then((res) => {
  793. if(res.status===1){
  794. this.noRead = false
  795. }
  796. })
  797. .catch(() => {
  798. });
  799. },
  800. changeStatus(flag){
  801. if(this[flag]){
  802. let MethodName = "/ShopServer/Client/CollectManager/AddCollect_Article";
  803. let data = {
  804. article_id: this.articleId
  805. }
  806. getLogin(MethodName, data)
  807. .then((res) => {
  808. if(res.status===1){
  809. this[flag] = !this[flag]
  810. this.articleNumber++
  811. this.$message({
  812. message: "收藏成功",
  813. type: "success",
  814. });
  815. }
  816. })
  817. .catch(() => {
  818. });
  819. // let datas = {
  820. // sentence_id: this.articleInfo.art_sound_srt_data?this.articleInfo.art_sound_srt_data.sents[1].id:this.articleInfo.art_corpus_data.sentList[1].id,
  821. // audio_file_id: this.articleInfo.art_sound_srt_data?this.articleInfo.art_sound_srt_data.mp3:'',
  822. // audio_begin_time: this.articleInfo.art_sound_srt_data?this.articleInfo.art_sound_srt_data.sents[1].s:null,
  823. // audio_end_time: this.articleInfo.art_sound_srt_data?this.articleInfo.art_sound_srt_data.sents[1].e:null
  824. // }
  825. // getLogin('/ShopServer/Client/CollectManager/AddCollect_Sentence', datas)
  826. // .then((res) => {
  827. // if(res.status===1){
  828. // }
  829. // })
  830. // .catch(() => {
  831. // });
  832. }else{
  833. let MethodName = "/ShopServer/Client/CollectManager/CancelCollect_Article"
  834. getLogin(MethodName, {
  835. article_id: this.articleId
  836. })
  837. .then((res) => {
  838. if(res.status===1){
  839. this[flag] = !this[flag]
  840. this.articleNumber--
  841. this.$message({
  842. message: "取消收藏",
  843. type: "success",
  844. });
  845. }
  846. })
  847. .catch(() => {
  848. this.loading = false
  849. });
  850. }
  851. },
  852. changeArticleType(type,e){
  853. if(type==='print'||type==='share'||type==='list'||type==='cloud'){
  854. if(type==='share'){
  855. if(this.userMessage){
  856. this.handleCreateShare()
  857. this.menuFeature = type
  858. }else{
  859. this.$message.error('请先登录')
  860. }
  861. }else{
  862. this.menuFeature = type
  863. }
  864. }else{
  865. this.menuType = type
  866. this.menuFeature = ''
  867. }
  868. },
  869. handleCloseShare(){
  870. this.menuFeature = ''
  871. },
  872. CopyToClipboard(element) {
  873. var doc = document,
  874. text = doc.getElementById(element),
  875. range,
  876. selection;
  877. if (doc.body.createTextRange) {
  878. range = doc.body.createTextRange();
  879. range.moveToElementText(text);
  880. range.select();
  881. } else if (window.getSelection) {
  882. selection = window.getSelection();
  883. range = doc.createRange();
  884. range.selectNodeContents(text);
  885. selection.removeAllRanges();
  886. selection.addRange(range);
  887. }
  888. document.execCommand("copy");
  889. this.$message({
  890. message: "复制成功",
  891. type: "success",
  892. });
  893. window.getSelection().removeAllRanges();
  894. },
  895. downLoadImg(base64URL){
  896. const a = document.createElement('a');
  897. a.download = '分享图片';
  898. const mimeType = base64URL.match(/:(.*?);/)[1];
  899. const byteCharacters = atob(base64URL.split(',')[1]);
  900. const byteNumbers = new Array(byteCharacters.length);
  901. for (let i = 0; i < byteCharacters.length; i++) {
  902. byteNumbers[i] = byteCharacters.charCodeAt(i);
  903. }
  904. const byteArray = new Uint8Array(byteNumbers);
  905. const blob = new Blob([byteArray], {type: mimeType});
  906. a.href = URL.createObjectURL(blob);
  907. document.body.appendChild(a);
  908. a.click();
  909. document.body.removeChild(a);
  910. },
  911. // 创建分享
  912. handleCreateShare(){
  913. this.shareLoading = true
  914. let MethodName = "/ShopServer/Client/ShareManager/CreateShareRecord";
  915. let data = {
  916. goods_type: 21,
  917. goods_id: this.articleId
  918. }
  919. getLogin(MethodName, data)
  920. .then((res) => {
  921. this.shareLoading = false
  922. if(res.status===1){
  923. this.share_url = res.share_url
  924. this.shareSrc = 'data:image/jpeg;base64,'+res.image_content_base64
  925. }
  926. })
  927. .catch(() => {
  928. this.shareLoading = false
  929. });
  930. },
  931. changeLike(type,list){
  932. this[type] = list
  933. if(type==='likePhraseList'){
  934. this.$refs.phraseList.handleData()
  935. }else if(type==='likeWordList'){
  936. this.$refs.newWordList.handleData()
  937. }
  938. },
  939. // 报刊信息
  940. getIssueDetail(){
  941. this.issueChnTanList = []
  942. this.issueChnList = []
  943. let articleindex = 0
  944. let MethodName = '/PaperServer/Client/Issue/GetIssueBriefInfo'
  945. let data = {
  946. id: this.$route.query.iss_id
  947. }
  948. getLogin(MethodName, data)
  949. .then((res) => {
  950. if(res.status===1){
  951. let issueChnList = res.data.chn_art_data
  952. if(this.userMessage){
  953. getLogin('/ShopServer/Client/BookshelfQuery/GetGoodsBuyStatus', {
  954. goods_type: 2,
  955. goods_id: this.$route.query.iss_id
  956. })
  957. .then((res) => {
  958. if(res.status===1){
  959. let isBuy = res.buy_info.is_buy==='true'
  960. issueChnList.forEach((item,index)=>{
  961. item.canRead = isBuy||index===0
  962. item.arts.forEach(items=>{
  963. if(items.id===this.$route.query.id){
  964. this.activeArticleIndex = articleindex
  965. }
  966. this.issueChnTanList.push({
  967. id: items.id,
  968. canRead: isBuy||index===0
  969. })
  970. articleindex ++
  971. })
  972. })
  973. }
  974. })
  975. .catch(() => {
  976. });
  977. }
  978. }
  979. })
  980. .catch(() => {
  981. });
  982. }
  983. },
  984. created(){
  985. if(this.config){
  986. let arr = this.config.split('&&&')
  987. this.LoginNavIndex = arr[0] * 1
  988. this.userBg = arr[1] ? arr[1] : 'rgba(0, 0, 0, 0.24)'
  989. this.headerBorder = arr[2] ? arr[2] : '#5C5C5C'
  990. this.headerBg = arr[3] ? arr[3] : '#1F1F1F'
  991. this.previousPage = arr[4] ? arr[4] : '商城'
  992. }
  993. if(this.articleId){
  994. this.getArticleDetail()
  995. }
  996. if(this.$route.query.iss_id){
  997. this.getIssueDetail()
  998. }
  999. },
  1000. mounted(){
  1001. let this_ = this;
  1002. this_.timer = null;
  1003. this_.readLength = 0
  1004. this_.timer = setInterval(() => {
  1005. this_.readLength++;
  1006. }, 1000);
  1007. }
  1008. }
  1009. </script>
  1010. <style lang="scss" scoped>
  1011. .bookStore{
  1012. min-height: calc(100vh - 64px);
  1013. .navBar-right{
  1014. display: flex;
  1015. align-items: center;
  1016. }
  1017. .article-color{
  1018. display: flex;
  1019. width: 132px;
  1020. height: 32px;
  1021. justify-content: space-between;
  1022. align-items: center;
  1023. border: 1px solid #E5E6EB;
  1024. border-radius: 40px;
  1025. margin-left: 12px;
  1026. padding: 4px;
  1027. .color-item{
  1028. padding: 2px;
  1029. border: 2px solid transparent;
  1030. border-radius: 50%;
  1031. a{
  1032. width: 16px;
  1033. height: 16px;
  1034. border-radius: 50%;
  1035. display: block;
  1036. border: 1px solid transparent;
  1037. padding: 0;
  1038. }
  1039. }
  1040. }
  1041. .article-box{
  1042. position: relative;
  1043. padding: 80px 0;
  1044. .artricle-inner{
  1045. width: 1000px;
  1046. margin: 0 auto;
  1047. border-radius: 8px;
  1048. }
  1049. .mene-right{
  1050. position: fixed;
  1051. right: calc((100% - 1000px)/2 - 196px);
  1052. top: 144px;
  1053. width: 176px;
  1054. background: #FFFFFF;
  1055. border: 1px solid #E5E6EB;
  1056. border-radius: 8px;
  1057. padding: 4px;
  1058. }
  1059. }
  1060. .atricle-data{
  1061. padding: 120px 100px 40px 100px;
  1062. }
  1063. .glossary-box{
  1064. border-top: 1px solid #F2F3F5;
  1065. padding: 40px;
  1066. .title{
  1067. display: flex;
  1068. justify-content: space-between;
  1069. h2{
  1070. margin: 0;
  1071. font-weight: 400;
  1072. font-size: 24px;
  1073. line-height: 32px;
  1074. }
  1075. a{
  1076. font-weight: 400;
  1077. font-size: 16px;
  1078. line-height: 24px;
  1079. }
  1080. }
  1081. h4{
  1082. margin: 24px 0 8px 0;
  1083. font-weight: 400;
  1084. font-size: 12px;
  1085. line-height: 20px;
  1086. }
  1087. }
  1088. .newWord-list{
  1089. padding: 2px 4px;
  1090. }
  1091. .word-info{
  1092. display: flex;
  1093. justify-content: space-between;
  1094. >div{
  1095. width: 178px;
  1096. height: 64px;
  1097. border-radius: 4px;
  1098. padding: 8px 12px;
  1099. label{
  1100. display: block;
  1101. font-weight: 400;
  1102. font-size: 12px;
  1103. line-height: 20px;
  1104. margin-bottom: 4px;
  1105. }
  1106. span{
  1107. font-weight: 400;
  1108. font-size: 16px;
  1109. line-height: 24px;
  1110. }
  1111. }
  1112. }
  1113. .echarts-box{
  1114. display: flex;
  1115. .echarts-type{
  1116. width: 232px;
  1117. flex-shrink: 0;
  1118. li{
  1119. height: 38px;
  1120. border-radius: 4px;
  1121. margin-bottom: 8px;
  1122. font-size: 14px;
  1123. line-height: 20px;
  1124. display: flex;
  1125. padding: 8px 12px;
  1126. cursor: pointer;
  1127. border: 1px solid transparent;
  1128. .name{
  1129. flex: 1;
  1130. }
  1131. .number{
  1132. width: 40px;
  1133. text-align: right;
  1134. }
  1135. .percent{
  1136. width: 80px;
  1137. text-align: right;
  1138. }
  1139. }
  1140. }
  1141. #shanxing_main{
  1142. flex: 1;
  1143. }
  1144. }
  1145. }
  1146. .article-btn{
  1147. display: flex;
  1148. justify-content: space-between;
  1149. align-items: center;
  1150. .right{
  1151. width: 145px;
  1152. margin-right: -8px;
  1153. text-align: right;
  1154. }
  1155. .support{
  1156. padding: 8px 16px;
  1157. border-radius: 20px;
  1158. background: #E5E6EB;
  1159. margin-right: 8px;
  1160. color:rgba(0, 0, 0, 0.88);
  1161. font-size: 16px;
  1162. font-weight: 400;
  1163. line-height: 24px;
  1164. cursor: pointer;
  1165. .svg-icon{
  1166. margin-right: 8px;
  1167. color: rgba(23, 93, 255, 1);
  1168. }
  1169. &.active{
  1170. background: rgba(48, 110, 255, 1);
  1171. color: #fff;
  1172. .svg-icon{
  1173. color: #fff;
  1174. }
  1175. }
  1176. }
  1177. .colloct-article{
  1178. .svg-icon{
  1179. color: rgba(242, 85, 90, 1);
  1180. }
  1181. &.active{
  1182. background: rgba(242, 85, 90, 1);
  1183. }
  1184. }
  1185. .oppose{
  1186. padding: 12px;
  1187. border-radius: 20px;
  1188. background: #E5E6EB;
  1189. height: 40px;
  1190. font-size: 16px;
  1191. line-height: 16px;
  1192. display: inline-block;
  1193. cursor: pointer;
  1194. .svg-icon{
  1195. width: 16px;
  1196. height: 16px;
  1197. }
  1198. &.active{
  1199. background: rgba(48, 110, 255, 1);
  1200. .svg-icon{
  1201. color: #fff;
  1202. }
  1203. }
  1204. }
  1205. .btn-left,.btn-right{
  1206. color: #3459D2;
  1207. font-size: 16px;
  1208. line-height: 24px;
  1209. padding: 0;
  1210. .svg-icon{
  1211. margin-right: 12px;
  1212. }
  1213. &.not-allow{
  1214. color: #5E89EF;
  1215. cursor: not-allowed;
  1216. }
  1217. }
  1218. .btn-right{
  1219. .svg-icon{
  1220. margin-right: 0;
  1221. margin-left: 12px;
  1222. }
  1223. }
  1224. .readed{
  1225. background: rgba(231, 238, 255, 1);
  1226. color: rgba(23, 93, 255, 1);
  1227. cursor: initial;
  1228. }
  1229. }
  1230. .share-box{
  1231. padding: 24px;
  1232. width: 428px;
  1233. height: 702px;
  1234. position: fixed;
  1235. top: 50%;
  1236. left: 50%;
  1237. z-index: 999;
  1238. margin-top: -351px;
  1239. margin-left: -214px;
  1240. border-radius: 8px;
  1241. border: 1px solid #D0D3D9;
  1242. background: #FFF;
  1243. 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);
  1244. &-top{
  1245. display: flex;
  1246. justify-content: space-between;
  1247. align-items: center;
  1248. h5{
  1249. color: #000;
  1250. font-size: 24px;
  1251. font-weight: 400;
  1252. line-height: 32px;
  1253. margin: 0;
  1254. }
  1255. .el-icon-close{
  1256. color: rgba(47, 55, 66, 1);
  1257. cursor: pointer;
  1258. }
  1259. }
  1260. img{
  1261. width: 380px;
  1262. height: 532px;
  1263. border-radius: 16px;
  1264. margin: 24px 0;
  1265. }
  1266. #copyDownUrl{
  1267. width: 0;
  1268. height: 0;
  1269. opacity: 0;
  1270. }
  1271. &-bottom{
  1272. .el-button{
  1273. width: 184px;
  1274. height: 48px;
  1275. color: #FFF;
  1276. font-size: 16px;
  1277. font-weight: 400;
  1278. line-height: 24px;
  1279. border-radius: 8px;
  1280. &.is-plain{
  1281. color: rgba(23, 93, 255, 1);
  1282. border-color: rgba(23, 93, 255, 1);
  1283. &:hover{
  1284. background: rgba(231, 238, 255, 1);
  1285. }
  1286. &:focus{
  1287. color: rgba(23, 93, 255, 1);
  1288. border-color: rgba(23, 93, 255, 1);
  1289. background: rgba(231, 238, 255, 1);
  1290. }
  1291. }
  1292. }
  1293. }
  1294. }
  1295. </style>
  1296. <style lang="scss">
  1297. .article-fontsize{
  1298. width: 144px;
  1299. height: 32px;
  1300. line-height: 30px;
  1301. border: 1px solid #E5E6EB;
  1302. border-radius: 40px;
  1303. overflow: hidden;
  1304. .el-input{
  1305. height: 30px;
  1306. }
  1307. .el-input-number__decrease, .el-input-number__increase{
  1308. height: 30px;
  1309. border: none;
  1310. background: transparent;
  1311. color: #D9E2FC;
  1312. }
  1313. .el-input-number__decrease{
  1314. border-right: 1px solid #1B5441;
  1315. }
  1316. .el-input-number__increase{
  1317. border-left: 1px solid #1B5441;
  1318. }
  1319. .el-input__inner{
  1320. height: 30px;
  1321. border: none;
  1322. line-height: 30px;
  1323. background: transparent;
  1324. color: #D9E2FC;
  1325. }
  1326. }
  1327. .navBar{
  1328. border-color: transparent;
  1329. &-white{
  1330. border-color: #EBEBEB;
  1331. .el-input-number__decrease, .el-input-number__increase,.el-input__inner{
  1332. color: #1C2129;
  1333. }
  1334. .el-input-number__decrease{
  1335. border-right: 1px solid #E5E6EB;
  1336. }
  1337. .el-input-number__increase{
  1338. border-left: 1px solid #E5E6EB;
  1339. }
  1340. .goback{
  1341. color: #1D2129;
  1342. }
  1343. .border{
  1344. background: #E5E6EB;
  1345. height: 16px;
  1346. margin-top: 2px;
  1347. }
  1348. .article-title{
  1349. color: #86909C;
  1350. }
  1351. }
  1352. &-darkGreen{
  1353. .el-input-number__decrease{
  1354. border-right: 1px solid #1B5441;
  1355. }
  1356. .el-input-number__increase{
  1357. border-left: 1px solid #1B5441;
  1358. }
  1359. .goback{
  1360. color: #E9F7F2;
  1361. }
  1362. .border{
  1363. background: #1B5441;
  1364. height: 16px;
  1365. margin-top: 2px;
  1366. }
  1367. .article-title{
  1368. color: #CCEBE1;
  1369. }
  1370. }
  1371. &-darkBlue{
  1372. .el-input-number__decrease{
  1373. border-right: 1px solid #1C2129;
  1374. }
  1375. .el-input-number__increase{
  1376. border-left: 1px solid #1C2129;
  1377. }
  1378. .goback{
  1379. color: #E9F7F2;
  1380. }
  1381. .border{
  1382. background: #667180;
  1383. height: 16px;
  1384. margin-top: 2px;
  1385. }
  1386. .article-title{
  1387. color: #D9E2FC;
  1388. }
  1389. }
  1390. &-armyGreen{
  1391. .el-input-number__decrease{
  1392. border-right: 1px solid #2A2F2C;
  1393. }
  1394. .el-input-number__increase{
  1395. border-left: 1px solid #2A2F2C;
  1396. }
  1397. .goback{
  1398. color: #E9F7F2;
  1399. }
  1400. .border{
  1401. background: #99A29E;
  1402. height: 16px;
  1403. margin-top: 2px;
  1404. }
  1405. .article-title{
  1406. color: #D9E2FC;
  1407. }
  1408. }
  1409. }
  1410. </style>