articleDetail.vue 67 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287
  1. <template>
  2. <div
  3. class="bookStore"
  4. :style="{ background: bgColorList[activeIndex].contentBg }"
  5. v-if="articleInfo"
  6. :v-loading="loading"
  7. >
  8. <Header :LoginNavIndex="LoginNavIndex" />
  9. <div
  10. class="navBar"
  11. :class="['navBar-' + bgColorList[activeIndex].type]"
  12. :style="{ background: bgColorList[activeIndex].navBg }"
  13. >
  14. <div class="navBar-left">
  15. <a class="goback" @click="$router.go(-1)"
  16. ><i class="el-icon-arrow-left"></i> 第 {{ articleInfo.iss_no }} 期</a
  17. >
  18. <div class="border"></div>
  19. <p class="article-title">{{ articleInfo.art_title }}</p>
  20. </div>
  21. <div class="navBar-right">
  22. <el-input-number
  23. class="article-fontsize"
  24. v-model="wordFontsize"
  25. :step="2"
  26. step-strictly
  27. :min="12"
  28. :max="28"
  29. :style="{ borderColor: bgColorList[activeIndex].boxBorder }"
  30. ></el-input-number>
  31. <ul
  32. class="article-color"
  33. :style="{ borderColor: bgColorList[activeIndex].boxBorder }"
  34. >
  35. <li
  36. :class="['color-item', activeIndex === indexC ? 'active' : '']"
  37. v-for="(itemC, indexC) in bgColorList"
  38. :key="indexC"
  39. @click="handleChangeBgColor(indexC)"
  40. :style="{
  41. borderColor: activeIndex === indexC ? itemC.border_active : '',
  42. }"
  43. >
  44. <a
  45. :style="{
  46. background: itemC.border,
  47. borderColor: activeIndex === indexC ? itemC.borderColor : '',
  48. }"
  49. ></a>
  50. </li>
  51. </ul>
  52. </div>
  53. </div>
  54. <div class="article-box">
  55. <div
  56. class="artricle-inner"
  57. :style="{ background: bgColorList[activeIndex].contentInnerBg }"
  58. >
  59. <!-- 文章 -->
  60. <div class="atricle-data">
  61. <normal-model
  62. :titleFontsize="48"
  63. :wordFontsize="wordFontsize"
  64. :colorObj="bgColorList[activeIndex]"
  65. :articleType="articleType"
  66. :style="{ padding: '0 40px' }"
  67. v-if="menuType === 'original'"
  68. :articleInfo="articleInfo"
  69. :likeSentencelist="likeSentencelist"
  70. :likeWord="likeWordList"
  71. :articleImg="articleImg"
  72. ></normal-model>
  73. <phrase-model
  74. :titleFontsize="48"
  75. :wordFontsize="wordFontsize"
  76. :colorObj="bgColorList[activeIndex]"
  77. :articleType="articleType"
  78. :style="{ padding: '0 40px' }"
  79. v-if="menuType === 'newWord'"
  80. :articleInfo="articleInfo"
  81. :likePhraseList="likePhraseList"
  82. :likeWord="likeWordList"
  83. @changeLike="changeLike"
  84. :likeSentencelist="likeSentencelist"
  85. :articleImg="articleImg"
  86. ></phrase-model>
  87. <practice-model
  88. :titleFontsize="48"
  89. :wordFontsize="wordFontsize"
  90. :colorObj="bgColorList[activeIndex]"
  91. :articleType="articleType"
  92. :style="{ padding: '0 40px' }"
  93. v-if="menuType === 'practice'"
  94. :articleInfo="articleInfo"
  95. :likeSentencelist="likeSentencelist"
  96. :likeWord="likeWordList"
  97. :articleImg="articleImg"
  98. ></practice-model>
  99. <inner-text-search
  100. :titleFontsize="48"
  101. :wordFontsize="wordFontsize"
  102. :colorObj="bgColorList[activeIndex]"
  103. :articleType="articleType"
  104. :style="{ padding: '0 40px' }"
  105. v-if="menuType === 'search'"
  106. :articleInfo="articleInfo"
  107. ref="innerTextSearchs"
  108. :likeSentencelist="likeSentencelist"
  109. :likeWord="likeWordList"
  110. :articleImg="articleImg"
  111. ></inner-text-search>
  112. <lexical-type
  113. :titleFontsize="48"
  114. :wordFontsize="wordFontsize"
  115. :colorObj="bgColorList[activeIndex]"
  116. :articleType="articleType"
  117. :style="{ padding: '0 40px' }"
  118. v-if="menuType === 'filtrate'"
  119. :articleInfo="articleInfo"
  120. ref="lexicalType"
  121. :likeSentencelist="likeSentencelist"
  122. :likeWord="likeWordList"
  123. :articleImg="articleImg"
  124. ></lexical-type>
  125. <notes-model
  126. :titleFontsize="48"
  127. :wordFontsize="wordFontsize"
  128. :colorObj="bgColorList[activeIndex]"
  129. :articleType="articleType"
  130. :style="{ padding: '0 40px' }"
  131. v-if="menuType === 'notebook'"
  132. :articleInfo="articleInfo"
  133. :likeSentencelist="likeSentencelist"
  134. :likeWord="likeWordList"
  135. :articleImg="articleImg"
  136. ></notes-model>
  137. </div>
  138. <div
  139. class="article-btn"
  140. v-if="this.$route.query.iss_id && menuType !== 'practice'"
  141. :style="{ background: bgColorList[activeIndex].glossaryBg }"
  142. >
  143. <div class="left">
  144. <span
  145. :class="['support colloct-article', !noRead ? 'active' : '']"
  146. @click="changeStatus('noRead')"
  147. ><svg-icon
  148. icon-class="like-line"
  149. :style="{ marginRight: articleNumber ? '8px' : '0px' }"
  150. ></svg-icon
  151. >{{ articleNumber ? articleNumber : "" }}</span
  152. >
  153. <!-- <span :class="['oppose',oppose?'active':'']" @click="changeStatus('oppose')"><svg-icon icon-class="oppose"></svg-icon></span> -->
  154. </div>
  155. <div class="center">
  156. <el-button
  157. type="text"
  158. class="btn-left"
  159. :class="[activeArticleIndex === 0 ? 'not-allow' : '']"
  160. @click="handlePage('-')"
  161. :style="{ color: bgColorList[activeIndex].btnColor }"
  162. ><svg-icon icon-class="arrow-left-line"></svg-icon
  163. >上一篇</el-button
  164. >
  165. <el-button
  166. type="text"
  167. class="btn-right"
  168. :class="[
  169. activeArticleIndex === issueChnTanList.length - 1
  170. ? 'not-allow'
  171. : '',
  172. ]"
  173. @click="handlePage('+')"
  174. :style="{ color: bgColorList[activeIndex].btnColor }"
  175. >下一篇<svg-icon icon-class="arrow-right-line"></svg-icon
  176. ></el-button>
  177. </div>
  178. <div class="right">
  179. <template v-if="support">
  180. <span
  181. class="support"
  182. @click="handleReadArticle"
  183. :style="{ color: bgColorList[activeIndex].btnColor }"
  184. ><svg-icon icon-class="no-read"></svg-icon>标记为已读</span
  185. >
  186. </template>
  187. <template v-else>
  188. <span
  189. class="support readed"
  190. :style="{ color: bgColorList[activeIndex].btnColor }"
  191. ><svg-icon
  192. icon-class="readed"
  193. :style="{ color: bgColorList[activeIndex].btnColor }"
  194. ></svg-icon
  195. >已读</span
  196. >
  197. </template>
  198. </div>
  199. </div>
  200. <!-- 词汇表 -->
  201. <div class="glossary-box" v-if="menuType !== 'practice'">
  202. <div
  203. class="title"
  204. :style="{ color: bgColorList[activeIndex].glossaryTitle }"
  205. v-if="
  206. (articleInfo.art_voc_data &&
  207. articleInfo.art_voc_data.length > 0) ||
  208. (articleInfo.art_phrase_data &&
  209. articleInfo.art_phrase_data.length > 0) ||
  210. (articleInfo.art_explain_data &&
  211. articleInfo.art_explain_data.length > 0)
  212. "
  213. >
  214. <h2>词汇表</h2>
  215. <a @click="showGlossary = !showGlossary">{{
  216. showGlossary ? "收起" : "展开"
  217. }}</a>
  218. </div>
  219. <el-collapse-transition>
  220. <div v-if="showGlossary">
  221. <template
  222. v-if="
  223. articleInfo.art_voc_data &&
  224. articleInfo.art_voc_data.length > 0
  225. "
  226. >
  227. <h4
  228. :style="{ color: bgColorList[activeIndex].glossarySubtitle }"
  229. >
  230. 生词
  231. </h4>
  232. <new-word-list
  233. class="newWord-list"
  234. :list="articleInfo.art_voc_data"
  235. :style="{ background: bgColorList[activeIndex].glossaryBg }"
  236. :colorObj="bgColorList[activeIndex]"
  237. :likeWordList="likeWordList"
  238. @changeLike="changeLike"
  239. ref="newWordList"
  240. ></new-word-list>
  241. </template>
  242. <template
  243. v-if="
  244. articleInfo.art_phrase_data &&
  245. articleInfo.art_phrase_data.length > 0
  246. "
  247. >
  248. <h4
  249. :style="{ color: bgColorList[activeIndex].glossarySubtitle }"
  250. >
  251. 短语
  252. </h4>
  253. <phrase-list
  254. class="newWord-list"
  255. :list="articleInfo.art_phrase_data"
  256. :style="{ background: bgColorList[activeIndex].glossaryBg }"
  257. :colorObj="bgColorList[activeIndex]"
  258. :likePhraseList="likePhraseList"
  259. @changeLike="changeLike"
  260. ref="phraseList"
  261. ></phrase-list>
  262. </template>
  263. <template
  264. v-if="
  265. articleInfo.art_explain_data &&
  266. articleInfo.art_explain_data.length > 0
  267. "
  268. >
  269. <h4
  270. :style="{ color: bgColorList[activeIndex].glossarySubtitle }"
  271. >
  272. 注释
  273. </h4>
  274. <annotation-list
  275. class="newWord-list"
  276. :list="articleInfo.art_explain_data"
  277. :style="{ background: bgColorList[activeIndex].glossaryBg }"
  278. :colorObj="bgColorList[activeIndex]"
  279. ></annotation-list>
  280. </template>
  281. </div>
  282. </el-collapse-transition>
  283. <div
  284. class="title"
  285. :style="{
  286. color: bgColorList[activeIndex].glossaryTitle,
  287. marginTop: '40px',
  288. }"
  289. >
  290. <h2>详细统计</h2>
  291. <a @click="showWordInfo = !showWordInfo">{{
  292. showWordInfo ? "收起" : "展开"
  293. }}</a>
  294. </div>
  295. <el-collapse-transition>
  296. <div v-if="showWordInfo">
  297. <h4 :style="{ color: bgColorList[activeIndex].glossarySubtitle }">
  298. 词汇信息
  299. </h4>
  300. <div
  301. class="word-info"
  302. v-if="
  303. articleInfo.art_corpus_data &&
  304. articleInfo.art_corpus_data.artStatInfo
  305. "
  306. >
  307. <div
  308. :style="{ background: bgColorList[activeIndex].glossaryBg }"
  309. >
  310. <label
  311. :style="{ color: bgColorList[activeIndex].statisticTitle }"
  312. >文章长度</label
  313. >
  314. <span
  315. :style="{ color: bgColorList[activeIndex].statisticValue }"
  316. >{{ articleInfo.art_corpus_data.artStatInfo.wc }}</span
  317. >
  318. </div>
  319. <div
  320. :style="{ background: bgColorList[activeIndex].glossaryBg }"
  321. >
  322. <label
  323. :style="{ color: bgColorList[activeIndex].statisticTitle }"
  324. >词汇数量</label
  325. >
  326. <span
  327. :style="{ color: bgColorList[activeIndex].statisticValue }"
  328. >{{ articleInfo.art_corpus_data.artStatInfo.wdc }}</span
  329. >
  330. </div>
  331. <div
  332. :style="{ background: bgColorList[activeIndex].glossaryBg }"
  333. >
  334. <label
  335. :style="{ color: bgColorList[activeIndex].statisticTitle }"
  336. >平均词长</label
  337. >
  338. <span
  339. :style="{ color: bgColorList[activeIndex].statisticValue }"
  340. >{{
  341. articleInfo.art_corpus_data.artStatInfo.avgWordLen
  342. }}</span
  343. >
  344. </div>
  345. <div
  346. :style="{ background: bgColorList[activeIndex].glossaryBg }"
  347. >
  348. <label
  349. :style="{ color: bgColorList[activeIndex].statisticTitle }"
  350. >词汇密度</label
  351. >
  352. <span
  353. :style="{ color: bgColorList[activeIndex].statisticValue }"
  354. >{{
  355. articleInfo.art_corpus_data.artStatInfo.vocabDensity
  356. }}</span
  357. >
  358. </div>
  359. <div
  360. :style="{ background: bgColorList[activeIndex].glossaryBg }"
  361. >
  362. <label
  363. :style="{ color: bgColorList[activeIndex].statisticTitle }"
  364. >词汇难度</label
  365. >
  366. <span
  367. :style="{ color: bgColorList[activeIndex].statisticValue }"
  368. >{{
  369. articleInfo.art_corpus_data.artStatInfo.vocabHardLevel
  370. }}</span
  371. >
  372. </div>
  373. </div>
  374. <h4 :style="{ color: bgColorList[activeIndex].glossarySubtitle }">
  375. 词汇分布
  376. </h4>
  377. <div
  378. class="echarts-box"
  379. v-if="
  380. articleInfo &&
  381. articleInfo.art_corpus_data &&
  382. articleInfo.art_corpus_data.artStatInfo &&
  383. articleInfo.art_corpus_data.artStatInfo.vocabVlLevelItems
  384. "
  385. >
  386. <ul class="echarts-type">
  387. <li
  388. v-for="(itemE, indexE) in articleInfo.art_corpus_data
  389. .artStatInfo.vocabVlLevelItems"
  390. :key="indexE"
  391. @mouseover="gaolangbzt(indexE, 'shanxing_main')"
  392. @mouseout="closegaolangbzt(indexE, 'shanxing_main')"
  393. :style="{
  394. background:
  395. bgColorList[activeIndex].type === 'white'
  396. ? itemE.bg
  397. : bgColorList[activeIndex].type === 'darkGreen'
  398. ? itemE.darkGreenBg
  399. : itemE.darkBg,
  400. color:
  401. bgColorList[activeIndex].type === 'white'
  402. ? itemE.color
  403. : bgColorList[activeIndex].type === 'darkGreen'
  404. ? itemE.darkGreenColor
  405. : itemE.darkColor,
  406. borderColor:
  407. bgColorList[activeIndex].type === 'white'
  408. ? itemE.border
  409. : bgColorList[activeIndex].type === 'darkGreen'
  410. ? itemE.darkGreenBorder
  411. : itemE.darkBorder,
  412. }"
  413. >
  414. <span class="name">{{ itemE.vlCnName }}</span>
  415. <span class="number">{{ itemE.value }}</span>
  416. <span class="percent">{{ itemE.vocabPercentStr }}</span>
  417. </li>
  418. </ul>
  419. <div id="shanxing_main" style="height: 360px"></div>
  420. </div>
  421. </div>
  422. </el-collapse-transition>
  423. </div>
  424. <!-- 右侧菜单 -->
  425. <div
  426. class="mene-right"
  427. :style="{
  428. background: bgColorList[activeIndex].contentInnerBg,
  429. borderColor: bgColorList[activeIndex].glossaryBg,
  430. }"
  431. v-if="articleInfo.en_flag"
  432. >
  433. <menu-right
  434. :colorObj="bgColorList[activeIndex]"
  435. @changeArticleType="changeArticleType"
  436. ></menu-right>
  437. </div>
  438. </div>
  439. </div>
  440. <div
  441. class="share-box"
  442. v-if="menuFeature === 'share'"
  443. v-loading="shareLoading"
  444. >
  445. <div class="share-box-top">
  446. <h5>分享</h5>
  447. <i class="el-icon-close" @click="handleCloseShare"></i>
  448. </div>
  449. <template v-if="shareSrc">
  450. <img :src="shareSrc" />
  451. </template>
  452. <template v-else>
  453. <el-skeleton style="width: 380px" :loading="true" animated>
  454. <template slot="template">
  455. <el-skeleton-item
  456. variant="image"
  457. style="width: 380px; height: 738px"
  458. />
  459. </template>
  460. </el-skeleton>
  461. </template>
  462. <div class="share-box-bottom">
  463. <el-button type="primary" @click="downLoadImg(shareSrc)" size="small"
  464. >下载图片</el-button
  465. >
  466. <el-button
  467. @click="CopyToClipboard('copyDownUrl')"
  468. size="small"
  469. type="primary"
  470. plain
  471. >复制链接</el-button
  472. >
  473. <span id="copyDownUrl">{{ share_url }}</span>
  474. </div>
  475. </div>
  476. <div class="catalog-box" v-if="menuFeature === 'list'">
  477. <ul class="treeList">
  478. <li v-for="(item, index) in issueChnList" :key="index">
  479. <p class="parent-node">
  480. <span class="number">{{ index + 1 }}</span
  481. ><b class="title">{{ item.chn_name }}</b>
  482. </p>
  483. <ul v-if="item.arts && item.arts.length > 0">
  484. <li
  485. :class="[
  486. items.canRead ? 'children-buy' : 'children-no',
  487. 'children',
  488. ]"
  489. v-for="(items, indexs) in item.arts"
  490. :key="indexs"
  491. @click="handleLink(items, items.canRead, index)"
  492. >
  493. <p class="children-node">
  494. <span class="number">{{ indexs + 1 }}</span
  495. ><b class="title">{{ items.art_title }}</b>
  496. </p>
  497. </li>
  498. </ul>
  499. </li>
  500. </ul>
  501. </div>
  502. <el-dialog
  503. :visible.sync="articleInfoFlag"
  504. :show-close="false"
  505. :close-on-click-modal="false"
  506. width="968px"
  507. class="articleDetail-dialog"
  508. v-if="articleInfoFlag"
  509. >
  510. <article-info
  511. @closeArticleInfo="closeArticleInfo"
  512. :articleInfo="articleInfo"
  513. :colorObj="bgColorList[activeIndex]"
  514. ></article-info>
  515. </el-dialog>
  516. <el-dialog
  517. :visible.sync="ciyunShow"
  518. :show-close="true"
  519. :title="articleInfo.art_corpus_data.artTitle"
  520. :close-on-click-modal="false"
  521. width="1182px"
  522. class="ciyun-dialog"
  523. v-if="ciyunShow"
  524. >
  525. <iframe
  526. width="100%"
  527. height="834px"
  528. border="none"
  529. :src="
  530. './ciyun/ciyunindex.html?partitionKey=1&searchType=2&articleId=' +
  531. articleId
  532. "
  533. ></iframe>
  534. </el-dialog>
  535. <el-dialog
  536. :visible.sync="printFlag"
  537. :show-close="false"
  538. :close-on-click-modal="false"
  539. width="100%"
  540. top="0"
  541. class="articleDetail-dialog"
  542. v-if="printFlag"
  543. >
  544. <print-model
  545. :titleFontsize="48"
  546. :wordFontsize="wordFontsize"
  547. :colorObj="bgColorList[activeIndex]"
  548. :articleType="articleType"
  549. :articleInfo="articleInfo"
  550. @closePrint="closePrint"
  551. :articleImg="articleImg"
  552. ></print-model>
  553. </el-dialog>
  554. </div>
  555. </template>
  556. <script>
  557. import Header from "../../components/Header.vue";
  558. import NavBar from "../../components/common/NavBar.vue";
  559. import NewWordList from "./components/NewWordList.vue";
  560. import PhraseList from "./components/PhraseList.vue";
  561. import AnnotationList from "./components/AnnotationList.vue";
  562. import NormalModel from "./components/NormalModel.vue";
  563. import PhraseModel from "./components/PhraseModel.vue";
  564. import MenuRight from "./components/MenuRight.vue";
  565. import ArticleInfo from "./components/ArticleInfo.vue";
  566. import InnerTextSearch from "./components/InnerTextSearch.vue";
  567. import LexicalType from "./components/LexicalType.vue";
  568. import PracticeModel from "./components/PracticeModel.vue";
  569. import NotesModel from "./components/NotesModel.vue";
  570. import printModel from "./components/PrintModel.vue";
  571. import * as echarts from "echarts";
  572. import { getLogin } from "@/api/ajax";
  573. import { getToken } from "@/utils/auth";
  574. export default {
  575. name: "articleDetail",
  576. computed: {},
  577. components: {
  578. Header,
  579. NavBar,
  580. NewWordList,
  581. PhraseList,
  582. AnnotationList,
  583. NormalModel,
  584. MenuRight,
  585. PhraseModel,
  586. ArticleInfo,
  587. InnerTextSearch,
  588. LexicalType,
  589. PracticeModel,
  590. NotesModel,
  591. printModel,
  592. },
  593. data() {
  594. return {
  595. config: this.$route.query.headerConfig
  596. ? decodeURIComponent(this.$route.query.headerConfig)
  597. : "",
  598. LoginNavIndex: 0,
  599. wordFontsize: 22, // 文章文字大小
  600. bgColorList: [
  601. {
  602. type: "white",
  603. contentBg: "#D9EAF1",
  604. contentInnerBg: "#FFFFFF",
  605. navBg: "#00ADEF",
  606. border: "#E5E6EB",
  607. bg: "#FFFFFF",
  608. border_active: "#3459D2",
  609. boxBorder: "#E5E6EB",
  610. titleColor: "#1F2C5C",
  611. sourceColor: "#929CA8",
  612. contentColor: "#2F3742",
  613. btnColor: "#3459D2",
  614. glossaryTitle: "#2F3742",
  615. glossarySubtitle: "#4E5969",
  616. glossaryBg: "#F7F8FA",
  617. newWordColor: "#175DFF",
  618. newWordOtherColor: "#667180",
  619. newWordStar: "#FFB224",
  620. newWordType: {
  621. L0: {
  622. color: "#5B7217",
  623. bg: "#F1FCE3",
  624. },
  625. L1: {
  626. color: "#3D9A50",
  627. bg: "#EFFCEF",
  628. },
  629. L2: {
  630. color: "#0081F1",
  631. bg: "#E7F3FF",
  632. },
  633. L3: {
  634. color: "#3459D2",
  635. bg: "#EEF3FF",
  636. },
  637. LA: {
  638. color: "#E03177",
  639. bg: "#FFECF5",
  640. },
  641. LB: {
  642. color: "#CD2B31",
  643. bg: "#FFE8E8",
  644. },
  645. LC: {
  646. color: "#99A29E",
  647. bg: "#DFE4E2",
  648. },
  649. LD: {
  650. color: "#504F57",
  651. bg: "#C1C5CD",
  652. },
  653. },
  654. phraseColor: "#ED5F00",
  655. phraseOhterColor: "#2F3742",
  656. annotationTitle: "#4E5969",
  657. annotationOhter: "#667180",
  658. statisticTitle: "#2F3742",
  659. statisticValue: "#3459D2",
  660. menuBg: "#EEF3FF",
  661. audiobg: "#FFFFFF",
  662. audioBorder: "#EBEBEB",
  663. audioBtnColor: "#175DFF",
  664. audioBtnBg: "#EEF3FF",
  665. audioTimeColor: "#2F3742",
  666. audioSpeedColor: "#2F3742",
  667. },
  668. {
  669. type: "darkGreen",
  670. contentBg: "#C2C9C6",
  671. contentInnerBg: "#DFE4E2",
  672. navBg: "#236E55",
  673. border: "#5BB99A",
  674. bg: "#FFFFFF",
  675. border_active: "#FFFFFF",
  676. boxBorder: "#1B5441",
  677. titleColor: "#1F2C5C",
  678. sourceColor: "#929CA8",
  679. contentColor: "#2F3742",
  680. btnColor: "#3459D2",
  681. glossaryTitle: "#393F3C",
  682. glossarySubtitle: "#66736D",
  683. glossaryBg: "#D7DCDA",
  684. newWordColor: "#175DFF",
  685. newWordOtherColor: "#667180",
  686. newWordStar: "#FFB224",
  687. newWordType: {
  688. L0: {
  689. color: "#5B7217",
  690. bg: "#F1FCE3",
  691. },
  692. L1: {
  693. color: "#3D9A50",
  694. bg: "#EFFCEF",
  695. },
  696. L2: {
  697. color: "#0081F1",
  698. bg: "#E7F3FF",
  699. },
  700. L3: {
  701. color: "#3459D2",
  702. bg: "#EEF3FF",
  703. },
  704. LA: {
  705. color: "#E03177",
  706. bg: "#FFECF5",
  707. },
  708. LB: {
  709. color: "#CD2B31",
  710. bg: "#FFE8E8",
  711. },
  712. LC: {
  713. color: "#99A29E",
  714. bg: "#DFE4E2",
  715. },
  716. LD: {
  717. color: "#504F57",
  718. bg: "#C1C5CD",
  719. },
  720. },
  721. phraseColor: "#ED5F00",
  722. phraseOhterColor: "#2F3742",
  723. statisticTitle: "#393F3C",
  724. statisticValue: "#299772",
  725. menuBg: "#E9F7F2",
  726. audiobg: "#ECEFED",
  727. audioBorder: "#DFE4E2",
  728. audioBtnColor: "#299772",
  729. audioBtnBg: "#DFE4E2",
  730. audioTimeColor: "#393F3C",
  731. audioSpeedColor: "#299772",
  732. },
  733. {
  734. type: "darkBlue",
  735. contentBg: "#1C2129",
  736. contentInnerBg: "#2F3742",
  737. navBg: "#2F3742",
  738. border: "#1F2C5C",
  739. bg: "#1F2C5C",
  740. border_active: "#FFFFFF",
  741. boxBorder: "#1C2129",
  742. titleColor: "#5373E7",
  743. sourceColor: "#929CA8",
  744. contentColor: "#C1C5CD",
  745. btnColor: "#5373E7",
  746. glossaryTitle: "#929CA8",
  747. glossarySubtitle: "#929CA8",
  748. glossaryBg: "#3E4855",
  749. newWordColor: "#8DA4EF",
  750. newWordOtherColor: "#929CA8",
  751. newWordStar: "#816C00",
  752. newWordType: {
  753. L0: {
  754. color: "rgba(255, 255, 255, 0.64)",
  755. bg: "#5B7217",
  756. },
  757. L1: {
  758. color: "rgba(255, 255, 255, 0.64)",
  759. bg: "#2F6E3B",
  760. },
  761. L2: {
  762. color: "rgba(255, 255, 255, 0.64)",
  763. bg: "#006793",
  764. },
  765. L3: {
  766. color: "rgba(255, 255, 255, 0.64)",
  767. bg: "#AE1955",
  768. },
  769. LA: {
  770. color: "rgba(255, 255, 255, 0.64)",
  771. bg: "#AE1955",
  772. },
  773. LB: {
  774. color: "rgba(255, 255, 255, 0.64)",
  775. bg: "#8F2025",
  776. },
  777. LC: {
  778. color: "rgba(255, 255, 255, 0.64)",
  779. bg: "#4A524E",
  780. },
  781. LD: {
  782. color: "rgba(255, 255, 255, 0.64)",
  783. bg: "#2F3742",
  784. },
  785. },
  786. phraseColor: "#ED5F00",
  787. phraseOhterColor: "#929CA8",
  788. statisticTitle: "#D0D3D9",
  789. statisticValue: "#5373E7",
  790. menuBg: "#EEF3FF",
  791. audiobg: "#3E4855",
  792. audioBorder: "#2F3742",
  793. audioBtnColor: "#D0D3D9",
  794. audioBtnBg: "#4E5969",
  795. audioTimeColor: "#D0D3D9",
  796. audioSpeedColor: "#D0D3D9",
  797. },
  798. {
  799. type: "armyGreen",
  800. contentBg: "#2A2F2C",
  801. contentInnerBg: "#393F3C",
  802. navBg: "#393F3C",
  803. border: "#13392E",
  804. bg: "#13392E",
  805. border_active: "#FFFFFF",
  806. boxBorder: "#2A2F2C",
  807. titleColor: "#30A47D",
  808. sourceColor: "#99A29E",
  809. contentColor: "#C1C5CD",
  810. btnColor: "#30A47D",
  811. glossaryTitle: "#99A29E",
  812. glossarySubtitle: "#99A29E",
  813. glossaryBg: "#4A524E",
  814. newWordColor: "#8DA4EF",
  815. newWordOtherColor: "#99A29E",
  816. newWordStar: "#816C00",
  817. newWordType: {
  818. L0: {
  819. color: "rgba(255, 255, 255, 0.64)",
  820. bg: "#5B7217",
  821. },
  822. L1: {
  823. color: "rgba(255, 255, 255, 0.64)",
  824. bg: "#2F6E3B",
  825. },
  826. L2: {
  827. color: "rgba(255, 255, 255, 0.64)",
  828. bg: "#006793",
  829. },
  830. L3: {
  831. color: "rgba(255, 255, 255, 0.64)",
  832. bg: "#AE1955",
  833. },
  834. LA: {
  835. color: "rgba(255, 255, 255, 0.64)",
  836. bg: "#AE1955",
  837. },
  838. LB: {
  839. color: "rgba(255, 255, 255, 0.64)",
  840. bg: "#8F2025",
  841. },
  842. LC: {
  843. color: "rgba(255, 255, 255, 0.64)",
  844. bg: "#4A524E",
  845. },
  846. LD: {
  847. color: "rgba(255, 255, 255, 0.64)",
  848. bg: "#2F3742",
  849. },
  850. },
  851. phraseColor: "#ED5F00",
  852. phraseOhterColor: "#99A29E",
  853. statisticTitle: "#D0D3D9",
  854. statisticValue: "#30A47D",
  855. menuBg: "#EEF3FF",
  856. audiobg: "#4A524E",
  857. audioBorder: "#393F3C",
  858. audioBtnColor: "#D7DCDA",
  859. audioBtnBg: "#66736D",
  860. audioTimeColor: "#D7DCDA",
  861. audioSpeedColor: "#D7DCDA",
  862. },
  863. ],
  864. activeIndex: 0, // 选择主题色的索引
  865. showGlossary: true, // 是否展开词汇表
  866. showWordInfo: true,
  867. wordList: [
  868. {
  869. src: ".",
  870. word: "cremation",
  871. symbol: "/krəˈmeɪʃn/",
  872. paraList: [
  873. {
  874. cixing: "n.",
  875. shiyi: "火葬;火化",
  876. },
  877. ],
  878. type: "daochu",
  879. rate: 3,
  880. },
  881. {
  882. src: ".",
  883. word: "thrive",
  884. symbol: "/θraɪv/",
  885. paraList: [
  886. {
  887. cixing: "v.",
  888. shiyi:
  889. "茁壮成长,兴旺,繁荣;(尤指在别人觉得困难的时候)以……为乐,可以出色应对",
  890. },
  891. ],
  892. type: "xuanbi",
  893. rate: 4,
  894. },
  895. {
  896. src: ".",
  897. word: "diversify",
  898. symbol: "/daɪˈvɜːsɪfaɪ/",
  899. paraList: [
  900. {
  901. cixing: "v.",
  902. shiyi:
  903. "(使)多样化,(使)不同;扩大经营范围,增加……的品种;(投资)多元化;",
  904. },
  905. {
  906. cixing: "n.",
  907. shiyi: "兽医;<美,非正式>老兵;兽医诊所(vet's)",
  908. },
  909. ],
  910. type: "daochu",
  911. rate: 2,
  912. },
  913. ],
  914. phraseList: [
  915. {
  916. word: "send off",
  917. paraList: ["送行"],
  918. },
  919. {
  920. word: "more than",
  921. paraList: ["多于"],
  922. },
  923. {
  924. word: "according to",
  925. paraList: ["根据"],
  926. },
  927. {
  928. word: "In addition to",
  929. paraList: ["除了……之外"],
  930. },
  931. ],
  932. annotationList: [
  933. {
  934. prefix: "visiting team",
  935. para: "时区。全球划分为24个时区。相邻两个时区的时问相差1小时。出国旅行的人,必须随时调整自己的手表,才能和当地时间相一致。凡向西走,每过一个时区,就要把表拨慢1小时;凡向东走,每过一个时区,就要把表拨快1小时。",
  936. },
  937. {
  938. prefix: "jet–lagged",
  939. para: "有时差反应的,有时差感的。人体症状多表现为疲劳、方向感减弱和失眠、往往会影响人们最初几天的活动。",
  940. },
  941. ],
  942. vocabularyType: {
  943. L0: {
  944. bg: "#F2FCE3",
  945. color: "#5B7217",
  946. darkBg: "#5B7217",
  947. border: "#F2FCE3",
  948. darkColor: "rgba(255, 255, 255, 0.64)",
  949. darkBorder: "rgba(255, 255, 255, 0.08)",
  950. darkGreenBg: "#F2FCE3",
  951. darkGreenColor: "#5B7217",
  952. darkGreenBorder: "#F2FCE3",
  953. },
  954. L1: {
  955. bg: "#EFFCEF",
  956. color: "#3D9A50",
  957. darkBg: "#2F6E3B",
  958. darkColor: "rgba(255, 255, 255, 0.64)",
  959. darkBorder: "rgba(255, 255, 255, 0.08)",
  960. darkGreenBg: "#EFFCEF",
  961. darkGreenColor: "#3D9A50",
  962. darkGreenBorder: "#EFFCEF",
  963. },
  964. L2: {
  965. bg: "#E7EEFF",
  966. color: "#175DFF",
  967. darkBg: "#006793",
  968. darkColor: "rgba(255, 255, 255, 0.64)",
  969. darkBorder: "rgba(255, 255, 255, 0.08)",
  970. darkGreenBg: "#E7F3FF",
  971. darkGreenColor: "#0081F1",
  972. darkGreenBorder: "#E7F3FF",
  973. },
  974. L3: {
  975. bg: "#EEF3FF",
  976. color: "#3459D2",
  977. darkBg: "#2C49AA",
  978. darkColor: "rgba(255, 255, 255, 0.64)",
  979. darkBorder: "rgba(255, 255, 255, 0.08)",
  980. darkGreenBg: "#EEF3FF",
  981. darkGreenColor: "#3459D2",
  982. darkGreenBorder: "#EEF3FF",
  983. },
  984. LA: {
  985. bg: "#FFECF5",
  986. color: "#E03177",
  987. darkBg: "#AE1955",
  988. darkColor: "rgba(255, 255, 255, 0.64)",
  989. darkBorder: "rgba(255, 255, 255, 0.08)",
  990. darkGreenBg: "#FFECF5",
  991. darkGreenColor: "#E03177",
  992. darkGreenBorder: "#FFECF5",
  993. },
  994. LB: {
  995. bg: "#FFE8E8",
  996. color: "#CD2B31",
  997. darkBg: "#8F2025",
  998. darkColor: "rgba(255, 255, 255, 0.64)",
  999. darkBorder: "rgba(255, 255, 255, 0.08)",
  1000. darkGreenBg: "#FFE8E8",
  1001. darkGreenColor: "#CD2B31",
  1002. darkGreenBorder: "#FFE8E8",
  1003. },
  1004. LC: {
  1005. bg: "#DFE4E2",
  1006. color: "#99A29E",
  1007. border: "rgba(0, 0, 0, 0.08)",
  1008. darkBg: "#4A524E",
  1009. darkColor: "rgba(255, 255, 255, 0.64)",
  1010. darkBorder: "rgba(255, 255, 255, 0.08)",
  1011. darkGreenBg: "#DFE4E2",
  1012. darkGreenColor: "#4A524E",
  1013. darkGreenBorder: "rgba(0, 0, 0, 0.08)",
  1014. },
  1015. LD: {
  1016. bg: "#C1C5CD",
  1017. color: "#504F57",
  1018. darkBg: "#2F3742",
  1019. darkColor: "rgba(255, 255, 255, 0.64)",
  1020. darkBorder: "rgba(255, 255, 255, 0.08)",
  1021. darkGreenBg: "#C1C5CD",
  1022. darkGreenColor: "#504F57",
  1023. darkGreenBorder: "#C1C5CD",
  1024. },
  1025. },
  1026. articleType: this.$route.query.type ? this.$route.query.type * 1 : 1,
  1027. articleId: this.$route.query.id ? this.$route.query.id : "",
  1028. noRead: true, // 未读
  1029. support: false, // 点赞
  1030. oppose: false, // 不支持
  1031. timer: null,
  1032. readLength: 0,
  1033. articleInfo: null,
  1034. loading: false,
  1035. menuType: "original",
  1036. menuFeature: "", // 功能
  1037. shareSrc: "", // 分享图片
  1038. share_url: "", // 分享链接
  1039. shareLoading: false,
  1040. likeWordList: [], // 收藏短语list
  1041. likePhraseList: [],
  1042. likeSentencelist: [],
  1043. issueChnList: [], // 报刊文章目录
  1044. issueChnTanList: [], //文章摊平
  1045. userMessage: getToken() ? JSON.parse(getToken()) : null,
  1046. activeArticleIndex: 0,
  1047. articleNumber: 0,
  1048. articleInfoFlag: false, // 显示文章信息
  1049. ciyunShow: false, // 显示词云
  1050. printFlag: false, // 打印
  1051. articleImg: {}, // 文章图片
  1052. };
  1053. },
  1054. watch: {
  1055. showWordInfo: {
  1056. handler(val, oldVal) {
  1057. const _this = this;
  1058. if (val) {
  1059. setTimeout(() => {
  1060. _this.inityuan();
  1061. }, 100);
  1062. }
  1063. },
  1064. // 深度观察监听
  1065. deep: true,
  1066. },
  1067. },
  1068. methods: {
  1069. inityuan() {
  1070. if (
  1071. this.articleInfo &&
  1072. this.articleInfo.art_corpus_data &&
  1073. this.articleInfo.art_corpus_data.artStatInfo &&
  1074. this.articleInfo.art_corpus_data.artStatInfo.vocabVlLevelItems
  1075. ) {
  1076. var chartDom = document.getElementById("shanxing_main");
  1077. var myChart = echarts.init(chartDom);
  1078. var option;
  1079. let newdata = JSON.parse(
  1080. JSON.stringify(
  1081. this.articleInfo.art_corpus_data.artStatInfo.vocabVlLevelItems
  1082. )
  1083. );
  1084. newdata.forEach((item) => {
  1085. let percent = item.vocabPercent / 100;
  1086. if (percent % 1 == 0) {
  1087. item.name = item.vlCnName + " " + percent + "%";
  1088. } else {
  1089. item.name = item.vlCnName + " " + percent.toFixed(2) + "%";
  1090. }
  1091. });
  1092. option = {
  1093. color:
  1094. this.bgColorList[this.activeIndex].type === "white"
  1095. ? this.articleInfo.vl_id === "VL26"
  1096. ? [
  1097. "#90C62F",
  1098. "#55B467",
  1099. "#F04F88",
  1100. "#F2555A",
  1101. "#D7DCDA",
  1102. "#99A29E",
  1103. ]
  1104. : [
  1105. "#90C62F",
  1106. "#55B467",
  1107. "#5FD4F4",
  1108. "#5373E7",
  1109. "#F04F88",
  1110. "#F2555A",
  1111. "#D7DCDA",
  1112. "#99A29E",
  1113. ]
  1114. : this.bgColorList[this.activeIndex].type === "darkGreen"
  1115. ? this.articleInfo.vl_id === "VL26"
  1116. ? [
  1117. "#90C62F",
  1118. "#55B467",
  1119. "#5FD4F4",
  1120. "#5373E7",
  1121. "#F04F88",
  1122. "#F2555A",
  1123. "#D7DCDA",
  1124. "#99A29E",
  1125. ]
  1126. : [
  1127. "#90C62F",
  1128. "#55B467",
  1129. "#F04F88",
  1130. "#F2555A",
  1131. "#D7DCDA",
  1132. "#99A29E",
  1133. ]
  1134. : this.articleInfo.vl_id === "VL26"
  1135. ? [
  1136. "#5B7217",
  1137. "#2F6E3B",
  1138. "#006793",
  1139. "#2C49AA",
  1140. "#AE1955",
  1141. "#F2555A",
  1142. "#4A524E",
  1143. "#2F3742",
  1144. ]
  1145. : [
  1146. "#5B7217",
  1147. "#2F6E3B",
  1148. "#AE1955",
  1149. "#F2555A",
  1150. "#4A524E",
  1151. "#2F3742",
  1152. ],
  1153. series: [
  1154. {
  1155. name: "Access From",
  1156. type: "pie",
  1157. radius: ["50%", "90%"],
  1158. data: newdata,
  1159. itemStyle: {
  1160. borderColor: "rgba(255, 255, 255, 0.24)",
  1161. borderWidth: 1,
  1162. },
  1163. top: 50,
  1164. emphasis: {
  1165. itemStyle: {
  1166. shadowBlur: 10,
  1167. shadowOffsetX: 0,
  1168. shadowColor: "rgba(0, 0, 0, 0.5)",
  1169. },
  1170. },
  1171. },
  1172. ],
  1173. xAxis: {
  1174. show: false, //不显示坐标轴线、坐标轴刻度线和坐标轴上的文字
  1175. axisTick: {
  1176. show: false, //不显示坐标轴刻度线
  1177. },
  1178. axisLine: {
  1179. show: false, //不显示坐标轴线
  1180. },
  1181. axisLabel: {
  1182. show: false, //不显示坐标轴上的文字
  1183. },
  1184. },
  1185. };
  1186. option && myChart.setOption(option);
  1187. }
  1188. },
  1189. // 鼠标进入
  1190. gaolangbzt(index, id) {
  1191. var compareChart = echarts.getInstanceByDom(document.getElementById(id));
  1192. compareChart.dispatchAction({
  1193. type: "highlight",
  1194. seriesIndex: 0,
  1195. dataIndex: index,
  1196. });
  1197. },
  1198. // 鼠标移出
  1199. closegaolangbzt(index, id) {
  1200. var compareChart = echarts.getInstanceByDom(document.getElementById(id));
  1201. compareChart.dispatchAction({
  1202. type: "downplay",
  1203. seriesIndex: 0,
  1204. dataIndex: index,
  1205. });
  1206. },
  1207. // 切换主题颜色
  1208. handleChangeBgColor(index) {
  1209. this.activeIndex = index;
  1210. this.inityuan();
  1211. },
  1212. async handlePage(type) {
  1213. if (type === "-") {
  1214. if (this.activeArticleIndex !== 0) {
  1215. if (!this.issueChnTanList[this.activeArticleIndex - 1].canRead) {
  1216. this.$message.error("您没有阅读其他文章的相关权益");
  1217. return;
  1218. }
  1219. this.activeArticleIndex--;
  1220. let MethodName = "/PaperServer/Client/Issue/SaveLastReadArtInIss";
  1221. let data = {
  1222. iss_id: this.$route.query.iss_id,
  1223. art_id: this.issueChnTanList[this.activeArticleIndex].id,
  1224. };
  1225. await getLogin(MethodName, data).then((res) => {});
  1226. this.$router.replace({
  1227. path: "/articleDetail",
  1228. query: {
  1229. headerConfig: this.$route.query.headerConfig
  1230. ? this.$route.query.headerConfig
  1231. : "",
  1232. id: this.issueChnTanList[this.activeArticleIndex].id,
  1233. iss_id: this.$route.query.iss_id,
  1234. },
  1235. });
  1236. } else {
  1237. return;
  1238. }
  1239. } else {
  1240. if (this.activeArticleIndex !== this.issueChnTanList.length - 1) {
  1241. if (!this.issueChnTanList[this.activeArticleIndex + 1].canRead) {
  1242. this.$message.error("您没有阅读其他文章的相关权益");
  1243. return;
  1244. }
  1245. this.activeArticleIndex++;
  1246. let MethodName = "/PaperServer/Client/Issue/SaveLastReadArtInIss";
  1247. let data = {
  1248. iss_id: this.$route.query.iss_id,
  1249. art_id: this.issueChnTanList[this.activeArticleIndex].id,
  1250. };
  1251. await getLogin(MethodName, data).then((res) => {});
  1252. this.$router.replace({
  1253. path: "/articleDetail",
  1254. query: {
  1255. headerConfig: this.$route.query.headerConfig
  1256. ? this.$route.query.headerConfig
  1257. : "",
  1258. id: this.issueChnTanList[this.activeArticleIndex].id,
  1259. iss_id: this.$route.query.iss_id,
  1260. },
  1261. });
  1262. } else {
  1263. return;
  1264. }
  1265. }
  1266. location.reload();
  1267. },
  1268. // 跳转
  1269. async handleLink(item, flag) {
  1270. if (!flag) {
  1271. return;
  1272. }
  1273. let MethodName = "/PaperServer/Client/Issue/SaveLastReadArtInIss";
  1274. let data = {
  1275. iss_id: this.$route.query.iss_id,
  1276. art_id: item.id,
  1277. };
  1278. await getLogin(MethodName, data).then((res) => {});
  1279. this.$router.replace({
  1280. path: "/articleDetail",
  1281. query: {
  1282. headerConfig: this.$route.query.headerConfig
  1283. ? this.$route.query.headerConfig
  1284. : "",
  1285. id: item.id,
  1286. iss_id: this.$route.query.iss_id,
  1287. },
  1288. });
  1289. location.reload();
  1290. },
  1291. getArticleDetail() {
  1292. this.loading = true;
  1293. let this_ = this;
  1294. let MethodName = "/PaperServer/Client/Article/GetArticleDetail";
  1295. let data = {
  1296. id: this.articleId,
  1297. };
  1298. getLogin(MethodName, data)
  1299. .then((res) => {
  1300. this.loading = false;
  1301. if (res.status === 1) {
  1302. this.articleInfo = res.data;
  1303. if (
  1304. this.articleInfo &&
  1305. this.articleInfo.art_corpus_data &&
  1306. this.articleInfo.art_corpus_data.artStatInfo &&
  1307. this.articleInfo.art_corpus_data.artStatInfo.vocabVlLevelItems
  1308. ) {
  1309. this.articleInfo.art_corpus_data.artStatInfo.vocabVlLevelItems.forEach(
  1310. (item) => {
  1311. item.value = item.vocabCount;
  1312. item = Object.assign(item, this.vocabularyType[item.vlId]);
  1313. }
  1314. );
  1315. if (this.articleInfo.art_voc_data) {
  1316. this.articleInfo.art_voc_data.forEach((item) => {
  1317. item.collect = false;
  1318. });
  1319. }
  1320. }
  1321. let articleArr =
  1322. this.articleInfo.art_content.split('<p class="para"');
  1323. articleArr.forEach((itema) => {
  1324. if (itema.indexOf("<img") > -1) {
  1325. // 当前段落有图片
  1326. let imgArr = [];
  1327. let pno = itema.substring(
  1328. itema.indexOf('pno="') + 5,
  1329. itema.substring(itema.indexOf('pno="') + 5).indexOf('"') +
  1330. 1 +
  1331. 5
  1332. );
  1333. let itemArr = itema.split("<img");
  1334. itemArr.forEach((items) => {
  1335. if (items.indexOf('src="') > -1) {
  1336. let indexS =
  1337. items.substring(items.indexOf('src="') + 5).indexOf('"') +
  1338. items.indexOf('src="'); // src所在索引
  1339. let indexW =
  1340. items.indexOf('width="') > -1
  1341. ? items
  1342. .substring(items.indexOf('width="') + 7)
  1343. .indexOf('"')
  1344. : items.indexOf("width: ") > -1
  1345. ? items
  1346. .substring(items.indexOf("width: ") + 7)
  1347. .indexOf(";")
  1348. : -1; // width所在索引
  1349. let indexH =
  1350. items.indexOf('height="') > -1
  1351. ? items
  1352. .substring(items.indexOf('height="') + 8)
  1353. .indexOf('"')
  1354. : items.indexOf("height: ") > -1
  1355. ? items
  1356. .substring(items.indexOf("height: ") + 8)
  1357. .indexOf(";")
  1358. : -1; // height所在索引
  1359. let imgobj = {
  1360. src: items.substring(
  1361. items.indexOf('src="') + 5,
  1362. indexS + 5
  1363. ),
  1364. width:
  1365. items.indexOf('width="') > -1
  1366. ? items.substring(
  1367. items.indexOf('width="') + 7,
  1368. items.indexOf('width="') + indexW + 7
  1369. )
  1370. : items.indexOf("width: ") > -1
  1371. ? items.substring(
  1372. items.indexOf("width: ") + 7,
  1373. items.indexOf("width: ") + indexW + 7
  1374. )
  1375. : null,
  1376. height:
  1377. items.indexOf('height="') > -1
  1378. ? items.substring(
  1379. items.indexOf('height="') + 8,
  1380. items.indexOf('height="') + indexH + 8
  1381. )
  1382. : items.indexOf("height: ") > -1
  1383. ? items.substring(
  1384. items.indexOf("height: ") + 8,
  1385. items.indexOf("height: ") + indexH + 8
  1386. )
  1387. : null,
  1388. };
  1389. imgArr.push(imgobj);
  1390. }
  1391. });
  1392. this.articleImg[pno] = imgArr;
  1393. }
  1394. });
  1395. setTimeout(() => {
  1396. this_.inityuan();
  1397. }, 100);
  1398. }
  1399. })
  1400. .catch(() => {
  1401. this.loading = false;
  1402. });
  1403. getLogin(
  1404. "/ShopServer/Client/CollectManager/GetMyCollectIntegrateInfo_Article",
  1405. {
  1406. article_id: this.articleId,
  1407. }
  1408. )
  1409. .then((res) => {
  1410. if (res.status === 1) {
  1411. this.noRead = res.is_collect_article === "false";
  1412. this.articleNumber = res.collect_person_count;
  1413. this.likeWordList = [];
  1414. res.word_list.forEach((item) => {
  1415. this.likeWordList.push(item.word);
  1416. });
  1417. this.likePhraseList = [];
  1418. res.phrase_list.forEach((item) => {
  1419. this.likePhraseList.push(item.phrase);
  1420. });
  1421. this.likeSentencelist = [];
  1422. res.sentence_list.forEach((item) => {
  1423. this.likeSentencelist.push(item.sentence_id);
  1424. });
  1425. }
  1426. })
  1427. .catch(() => {
  1428. this.loading = false;
  1429. });
  1430. getLogin(
  1431. "/ShopServer/Client/ReadingRecordManager/GetReadingStatus_Article",
  1432. {
  1433. goods_type: 21,
  1434. article_id: this.articleId,
  1435. }
  1436. )
  1437. .then((res) => {
  1438. if (res.status === 1) {
  1439. this.support = res.reading_info.is_reading === "false";
  1440. if (!this.support) {
  1441. clearInterval(this_.timer);
  1442. this_.timer = null;
  1443. }
  1444. }
  1445. })
  1446. .catch(() => {
  1447. this.loading = false;
  1448. });
  1449. },
  1450. handleReadArticle() {
  1451. let this_ = this;
  1452. clearInterval(this_.timer);
  1453. this_.timer = null;
  1454. let MethodName =
  1455. "/ShopServer/Client/ReadingRecordManager/AddReadingRecord_Article";
  1456. let data = {
  1457. goods_type: 21,
  1458. article_id: this.articleId,
  1459. duration: this.readLength,
  1460. };
  1461. getLogin(MethodName, data)
  1462. .then((res) => {
  1463. if (res.status === 1) {
  1464. this.support = false;
  1465. }
  1466. })
  1467. .catch(() => {});
  1468. },
  1469. changeStatus(flag) {
  1470. if (this[flag]) {
  1471. let MethodName = "/ShopServer/Client/CollectManager/AddCollect_Article";
  1472. let data = {
  1473. article_id: this.articleId,
  1474. };
  1475. getLogin(MethodName, data)
  1476. .then((res) => {
  1477. if (res.status === 1) {
  1478. this[flag] = !this[flag];
  1479. this.articleNumber++;
  1480. this.$message({
  1481. message: "收藏成功",
  1482. type: "success",
  1483. });
  1484. }
  1485. })
  1486. .catch(() => {});
  1487. // let datas = {
  1488. // 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,
  1489. // audio_file_id: this.articleInfo.art_sound_srt_data?this.articleInfo.art_sound_srt_data.mp3:'',
  1490. // audio_begin_time: this.articleInfo.art_sound_srt_data?this.articleInfo.art_sound_srt_data.sents[1].s:null,
  1491. // audio_end_time: this.articleInfo.art_sound_srt_data?this.articleInfo.art_sound_srt_data.sents[1].e:null
  1492. // }
  1493. // getLogin('/ShopServer/Client/CollectManager/AddCollect_Sentence', datas)
  1494. // .then((res) => {
  1495. // if(res.status===1){
  1496. // }
  1497. // })
  1498. // .catch(() => {
  1499. // });
  1500. } else {
  1501. let MethodName =
  1502. "/ShopServer/Client/CollectManager/CancelCollect_Article";
  1503. getLogin(MethodName, {
  1504. article_id: this.articleId,
  1505. })
  1506. .then((res) => {
  1507. if (res.status === 1) {
  1508. this[flag] = !this[flag];
  1509. this.articleNumber--;
  1510. this.$message({
  1511. message: "取消收藏",
  1512. type: "success",
  1513. });
  1514. }
  1515. })
  1516. .catch(() => {
  1517. this.loading = false;
  1518. });
  1519. }
  1520. },
  1521. changeArticleType(type, e) {
  1522. if (
  1523. type === "print" ||
  1524. type === "share" ||
  1525. type === "list" ||
  1526. type === "cloud" ||
  1527. type === "chart"
  1528. ) {
  1529. if (type === "share" || type === "cloud" || type === "print") {
  1530. if (this.userMessage) {
  1531. if (type === "cloud") {
  1532. this.ciyunEvent();
  1533. } else if (type === "print") {
  1534. let MethodName =
  1535. "/ShopServer/Client/PrintRecordManager/GetMyPrintCount_Article";
  1536. getLogin(MethodName, {
  1537. goods_type: 21,
  1538. date_range: "TODAY",
  1539. article_id: this.articleId,
  1540. }).then((res) => {
  1541. if (res.status === 1) {
  1542. if (res.print_count < 5) {
  1543. this.printFlag = true;
  1544. } else {
  1545. this.$message.warning("今日打印次数已达上限");
  1546. }
  1547. }
  1548. });
  1549. } else {
  1550. this.handleCreateShare();
  1551. }
  1552. this.menuFeature = type;
  1553. } else {
  1554. this.$message.error("请先登录");
  1555. }
  1556. } else {
  1557. if (type === "chart") {
  1558. this.articleInfoFlag = true;
  1559. } else {
  1560. this.articleInfoFlag = false;
  1561. }
  1562. this.menuFeature = type;
  1563. }
  1564. } else {
  1565. this.menuType = type;
  1566. if (type === "search") {
  1567. setTimeout(() => {
  1568. this.$refs.innerTextSearchs.changeShow();
  1569. }, 100);
  1570. } else if (type === "filtrate") {
  1571. setTimeout(() => {
  1572. this.$refs.lexicalType.changeShow();
  1573. }, 100);
  1574. }
  1575. this.menuFeature = "";
  1576. }
  1577. },
  1578. ciyunEvent() {
  1579. // let MethodName = "/PaperServer/Client/Article/CalcArtWordCloud";
  1580. // let data = {
  1581. // type: 0,
  1582. // id: this.articleId
  1583. // }
  1584. // getLogin(MethodName, data)
  1585. // .then((res) => {
  1586. this.ciyunShow = true;
  1587. // window.localStorage.setItem('ciyunData', JSON.stringify(res.data))
  1588. // window.open(
  1589. // "./ciyun/ciyunindex.html?partitionKey=1&searchType=2&articleId=" +
  1590. // this.articleId,
  1591. // "_blank"
  1592. // );
  1593. // })
  1594. // .catch(() => {
  1595. // });
  1596. },
  1597. handleCloseShare() {
  1598. this.menuFeature = "";
  1599. },
  1600. CopyToClipboard(element) {
  1601. var doc = document,
  1602. text = doc.getElementById(element),
  1603. range,
  1604. selection;
  1605. if (doc.body.createTextRange) {
  1606. range = doc.body.createTextRange();
  1607. range.moveToElementText(text);
  1608. range.select();
  1609. } else if (window.getSelection) {
  1610. selection = window.getSelection();
  1611. range = doc.createRange();
  1612. range.selectNodeContents(text);
  1613. selection.removeAllRanges();
  1614. selection.addRange(range);
  1615. }
  1616. document.execCommand("copy");
  1617. this.$message({
  1618. message: "复制成功",
  1619. type: "success",
  1620. });
  1621. window.getSelection().removeAllRanges();
  1622. },
  1623. downLoadImg(base64URL) {
  1624. const a = document.createElement("a");
  1625. a.download = "分享图片";
  1626. const mimeType = base64URL.match(/:(.*?);/)[1];
  1627. const byteCharacters = atob(base64URL.split(",")[1]);
  1628. const byteNumbers = new Array(byteCharacters.length);
  1629. for (let i = 0; i < byteCharacters.length; i++) {
  1630. byteNumbers[i] = byteCharacters.charCodeAt(i);
  1631. }
  1632. const byteArray = new Uint8Array(byteNumbers);
  1633. const blob = new Blob([byteArray], { type: mimeType });
  1634. a.href = URL.createObjectURL(blob);
  1635. document.body.appendChild(a);
  1636. a.click();
  1637. document.body.removeChild(a);
  1638. },
  1639. // 创建分享
  1640. handleCreateShare() {
  1641. this.shareLoading = true;
  1642. let MethodName = "/ShopServer/Client/ShareManager/CreateShareRecord";
  1643. let data = {
  1644. goods_type: 21,
  1645. goods_id: this.articleId,
  1646. };
  1647. getLogin(MethodName, data)
  1648. .then((res) => {
  1649. this.shareLoading = false;
  1650. if (res.status === 1) {
  1651. this.share_url = res.share_url;
  1652. this.shareSrc =
  1653. "data:image/jpeg;base64," + res.image_content_base64;
  1654. }
  1655. })
  1656. .catch(() => {
  1657. this.shareLoading = false;
  1658. });
  1659. },
  1660. changeLike(type, list) {
  1661. this[type] = list;
  1662. if (type === "likePhraseList") {
  1663. this.$refs.phraseList.handleData();
  1664. } else if (type === "likeWordList") {
  1665. this.$refs.newWordList.handleData();
  1666. }
  1667. },
  1668. // 报刊信息
  1669. getIssueDetail() {
  1670. this.issueChnTanList = [];
  1671. this.issueChnList = [];
  1672. let articleindex = 0;
  1673. let MethodName = "/PaperServer/Client/Issue/GetIssueBriefInfo";
  1674. let data = {
  1675. id: this.$route.query.iss_id,
  1676. };
  1677. getLogin(MethodName, data)
  1678. .then((res) => {
  1679. if (res.status === 1) {
  1680. let issueChnList = res.data.chn_art_data;
  1681. if (this.userMessage) {
  1682. getLogin("/ShopServer/Client/BookshelfQuery/GetGoodsBuyStatus", {
  1683. goods_type: 2,
  1684. goods_id: this.$route.query.iss_id,
  1685. })
  1686. .then((res) => {
  1687. if (res.status === 1) {
  1688. let isBuy = res.buy_info.is_buy === "true";
  1689. issueChnList.forEach((item, index) => {
  1690. item.canRead = isBuy || index === 0;
  1691. item.arts.forEach((items) => {
  1692. if (items.id === this.$route.query.id) {
  1693. this.activeArticleIndex = articleindex;
  1694. item.active = true;
  1695. items.active = true;
  1696. }
  1697. this.issueChnTanList.push({
  1698. id: items.id,
  1699. canRead: isBuy || index === 0,
  1700. });
  1701. if (isBuy || index === 0) {
  1702. items.canRead = true;
  1703. } else {
  1704. items.canRead = false;
  1705. }
  1706. articleindex++;
  1707. });
  1708. });
  1709. this.issueChnList = issueChnList;
  1710. }
  1711. })
  1712. .catch(() => {});
  1713. } else {
  1714. let isBuy = false;
  1715. issueChnList.forEach((item, index) => {
  1716. item.canRead = isBuy || index === 0;
  1717. item.arts.forEach((items) => {
  1718. if (items.id === this.$route.query.id) {
  1719. this.activeArticleIndex = articleindex;
  1720. item.active = true;
  1721. items.active = true;
  1722. }
  1723. this.issueChnTanList.push({
  1724. id: items.id,
  1725. canRead: isBuy || index === 0,
  1726. });
  1727. if (isBuy || index === 0) {
  1728. items.canRead = true;
  1729. } else {
  1730. items.canRead = false;
  1731. }
  1732. articleindex++;
  1733. });
  1734. });
  1735. this.issueChnList = issueChnList;
  1736. }
  1737. }
  1738. })
  1739. .catch(() => {});
  1740. },
  1741. closeArticleInfo() {
  1742. this.articleInfoFlag = false;
  1743. },
  1744. closePrint() {
  1745. this.printFlag = false;
  1746. },
  1747. },
  1748. created() {
  1749. if (this.config) {
  1750. let arr = this.config.split("&&&");
  1751. this.LoginNavIndex = arr[0] * 1;
  1752. this.userBg = arr[1] ? arr[1] : "rgba(0, 0, 0, 0.24)";
  1753. this.headerBorder = arr[2] ? arr[2] : "#5C5C5C";
  1754. this.headerBg = arr[3] ? arr[3] : "#00ADEF";
  1755. this.previousPage = arr[4] ? arr[4] : "商城";
  1756. }
  1757. if (this.articleId) {
  1758. this.getArticleDetail();
  1759. }
  1760. if (this.$route.query.iss_id) {
  1761. this.getIssueDetail();
  1762. }
  1763. },
  1764. mounted() {
  1765. let this_ = this;
  1766. this_.timer = null;
  1767. this_.readLength = 0;
  1768. this_.timer = setInterval(() => {
  1769. this_.readLength++;
  1770. }, 1000);
  1771. },
  1772. };
  1773. </script>
  1774. <style lang="scss" scoped>
  1775. .bookStore {
  1776. min-height: calc(100vh - 64px);
  1777. .navBar-right {
  1778. display: flex;
  1779. align-items: center;
  1780. }
  1781. .article-color {
  1782. display: flex;
  1783. width: 132px;
  1784. height: 32px;
  1785. justify-content: space-between;
  1786. align-items: center;
  1787. border: 1px solid #e5e6eb;
  1788. border-radius: 40px;
  1789. margin-left: 12px;
  1790. padding: 4px;
  1791. .color-item {
  1792. padding: 2px;
  1793. border: 2px solid transparent;
  1794. border-radius: 50%;
  1795. a {
  1796. width: 16px;
  1797. height: 16px;
  1798. border-radius: 50%;
  1799. display: block;
  1800. border: 1px solid transparent;
  1801. padding: 0;
  1802. }
  1803. }
  1804. }
  1805. .article-box {
  1806. position: relative;
  1807. padding: 80px 0;
  1808. .artricle-inner {
  1809. width: 1000px;
  1810. margin: 0 auto;
  1811. border-radius: 8px;
  1812. }
  1813. .mene-right {
  1814. position: fixed;
  1815. right: calc((100% - 1000px) / 2 - 172px);
  1816. top: 144px;
  1817. width: 152px;
  1818. max-height: 80%;
  1819. overflow: auto;
  1820. background: #ffffff;
  1821. border: 1px solid #e5e6eb;
  1822. border-radius: 8px;
  1823. padding: 4px;
  1824. z-index: 99;
  1825. }
  1826. }
  1827. .atricle-data {
  1828. padding: 120px 100px 40px 100px;
  1829. }
  1830. .glossary-box {
  1831. // border-top: 1px solid #F2F3F5;
  1832. padding: 40px;
  1833. .title {
  1834. display: flex;
  1835. justify-content: space-between;
  1836. h2 {
  1837. margin: 0;
  1838. font-weight: 400;
  1839. font-size: 24px;
  1840. line-height: 32px;
  1841. }
  1842. a {
  1843. font-weight: 400;
  1844. font-size: 16px;
  1845. line-height: 24px;
  1846. }
  1847. }
  1848. h4 {
  1849. margin: 24px 0 8px 0;
  1850. font-weight: 400;
  1851. font-size: 12px;
  1852. line-height: 20px;
  1853. }
  1854. }
  1855. .newWord-list {
  1856. padding: 2px 4px;
  1857. }
  1858. .word-info {
  1859. display: flex;
  1860. justify-content: space-between;
  1861. > div {
  1862. width: 178px;
  1863. height: 64px;
  1864. border-radius: 4px;
  1865. padding: 8px 12px;
  1866. label {
  1867. display: block;
  1868. font-weight: 400;
  1869. font-size: 12px;
  1870. line-height: 20px;
  1871. margin-bottom: 4px;
  1872. }
  1873. span {
  1874. font-weight: 400;
  1875. font-size: 16px;
  1876. line-height: 24px;
  1877. }
  1878. }
  1879. }
  1880. .echarts-box {
  1881. display: flex;
  1882. .echarts-type {
  1883. width: 232px;
  1884. flex-shrink: 0;
  1885. li {
  1886. height: 38px;
  1887. border-radius: 4px;
  1888. margin-bottom: 8px;
  1889. font-size: 14px;
  1890. line-height: 20px;
  1891. display: flex;
  1892. padding: 8px 12px;
  1893. cursor: pointer;
  1894. border: 1px solid transparent;
  1895. .name {
  1896. flex: 1;
  1897. }
  1898. .number {
  1899. width: 40px;
  1900. text-align: right;
  1901. }
  1902. .percent {
  1903. width: 80px;
  1904. text-align: right;
  1905. }
  1906. }
  1907. }
  1908. #shanxing_main {
  1909. flex: 1;
  1910. }
  1911. }
  1912. }
  1913. .article-btn {
  1914. display: flex;
  1915. justify-content: space-between;
  1916. align-items: center;
  1917. padding: 16px;
  1918. background: #f7f8fa;
  1919. .right {
  1920. width: 150px;
  1921. margin-right: -8px;
  1922. text-align: right;
  1923. }
  1924. .support {
  1925. padding: 8px 16px;
  1926. border-radius: 20px;
  1927. background: #e5e6eb;
  1928. margin-right: 8px;
  1929. color: rgba(0, 0, 0, 0.88);
  1930. font-size: 16px;
  1931. font-weight: 400;
  1932. line-height: 24px;
  1933. cursor: pointer;
  1934. .svg-icon {
  1935. margin-right: 8px;
  1936. color: rgba(23, 93, 255, 1);
  1937. }
  1938. &.active {
  1939. background: rgba(48, 110, 255, 1);
  1940. color: #fff;
  1941. .svg-icon {
  1942. color: #fff;
  1943. }
  1944. }
  1945. }
  1946. .colloct-article {
  1947. .svg-icon {
  1948. color: rgba(242, 85, 90, 1);
  1949. }
  1950. &.active {
  1951. background: rgba(242, 85, 90, 1);
  1952. }
  1953. }
  1954. .oppose {
  1955. padding: 12px;
  1956. border-radius: 20px;
  1957. background: #e5e6eb;
  1958. height: 40px;
  1959. font-size: 16px;
  1960. line-height: 16px;
  1961. display: inline-block;
  1962. cursor: pointer;
  1963. .svg-icon {
  1964. width: 16px;
  1965. height: 16px;
  1966. }
  1967. &.active {
  1968. background: rgba(48, 110, 255, 1);
  1969. .svg-icon {
  1970. color: #fff;
  1971. }
  1972. }
  1973. }
  1974. .btn-left,
  1975. .btn-right {
  1976. color: #3459d2;
  1977. font-size: 16px;
  1978. line-height: 24px;
  1979. padding: 0;
  1980. .svg-icon {
  1981. margin-right: 12px;
  1982. }
  1983. &.not-allow {
  1984. color: #5e89ef;
  1985. cursor: not-allowed;
  1986. }
  1987. }
  1988. .btn-right {
  1989. .svg-icon {
  1990. margin-right: 0;
  1991. margin-left: 12px;
  1992. }
  1993. }
  1994. .readed {
  1995. background: rgba(231, 238, 255, 1);
  1996. color: rgba(23, 93, 255, 1);
  1997. cursor: initial;
  1998. }
  1999. }
  2000. .share-box,
  2001. .catalog-box {
  2002. padding: 24px;
  2003. width: 428px;
  2004. height: 90%;
  2005. overflow: auto;
  2006. max-height: 712px;
  2007. position: fixed;
  2008. top: 40%;
  2009. left: 50%;
  2010. z-index: 10;
  2011. font-size: 0;
  2012. margin-top: -270px;
  2013. margin-left: -214px;
  2014. border-radius: 8px;
  2015. border: 1px solid #d0d3d9;
  2016. background: #fff;
  2017. box-shadow: 0px 8px 10px -5px rgba(0, 0, 0, 0.08),
  2018. 0px 16px 24px 2px rgba(0, 0, 0, 0.04), 0px 6px 30px 5px rgba(0, 0, 0, 0.05);
  2019. &-top {
  2020. display: flex;
  2021. justify-content: space-between;
  2022. align-items: center;
  2023. h5 {
  2024. color: #000;
  2025. font-size: 24px;
  2026. font-weight: 400;
  2027. line-height: 32px;
  2028. margin: 0;
  2029. }
  2030. .el-icon-close {
  2031. color: rgba(47, 55, 66, 1);
  2032. cursor: pointer;
  2033. font-size: 16px;
  2034. }
  2035. }
  2036. img {
  2037. width: 380px;
  2038. height: 738px;
  2039. border-radius: 16px;
  2040. margin: 24px 0;
  2041. }
  2042. #copyDownUrl {
  2043. width: 0;
  2044. height: 0;
  2045. opacity: 0;
  2046. display: block;
  2047. }
  2048. &-bottom {
  2049. .el-button {
  2050. width: 174px;
  2051. height: 48px;
  2052. color: #fff;
  2053. font-size: 16px;
  2054. font-weight: 400;
  2055. line-height: 24px;
  2056. border-radius: 8px;
  2057. &.is-plain {
  2058. color: rgba(23, 93, 255, 1);
  2059. border-color: rgba(23, 93, 255, 1);
  2060. &:hover {
  2061. background: rgba(231, 238, 255, 1);
  2062. }
  2063. &:focus {
  2064. color: rgba(23, 93, 255, 1);
  2065. border-color: rgba(23, 93, 255, 1);
  2066. background: rgba(231, 238, 255, 1);
  2067. }
  2068. }
  2069. }
  2070. }
  2071. }
  2072. .catalog-box {
  2073. right: calc((100% - 1000px) / 2);
  2074. left: auto;
  2075. margin-left: auto;
  2076. .treeList {
  2077. .parent-node {
  2078. display: flex;
  2079. align-items: center;
  2080. margin-bottom: 16px;
  2081. .number {
  2082. width: 26px;
  2083. font-weight: 500;
  2084. font-size: 16px;
  2085. line-height: 24px;
  2086. color: #2f3742;
  2087. }
  2088. .title {
  2089. font-weight: 500;
  2090. font-size: 16px;
  2091. line-height: 24px;
  2092. color: #2f3742;
  2093. word-break: break-word;
  2094. }
  2095. }
  2096. ul {
  2097. margin-bottom: 16px;
  2098. .children {
  2099. padding: 0 32px;
  2100. border-radius: 4px;
  2101. height: 40px;
  2102. display: flex;
  2103. align-items: center;
  2104. margin-bottom: 4px;
  2105. &-buy {
  2106. .number,
  2107. .title {
  2108. color: #2f3742;
  2109. }
  2110. }
  2111. &-no {
  2112. .number,
  2113. .title {
  2114. color: #929ca8;
  2115. }
  2116. }
  2117. &-buy:hover {
  2118. background: #e5e6eb;
  2119. cursor: pointer;
  2120. }
  2121. &-node {
  2122. display: flex;
  2123. width: 100%;
  2124. }
  2125. .number {
  2126. width: 24px;
  2127. }
  2128. .title {
  2129. flex: 1;
  2130. word-break: break-word;
  2131. }
  2132. .number,
  2133. .title {
  2134. font-weight: 400;
  2135. font-size: 16px;
  2136. line-height: 24px;
  2137. }
  2138. .el-icon-lock {
  2139. height: 16px;
  2140. color: #929ca8;
  2141. }
  2142. }
  2143. }
  2144. }
  2145. }
  2146. </style>
  2147. <style lang="scss">
  2148. .article-fontsize {
  2149. width: 144px;
  2150. height: 32px;
  2151. line-height: 30px;
  2152. border: 1px solid #e5e6eb;
  2153. border-radius: 40px;
  2154. overflow: hidden;
  2155. .el-input {
  2156. height: 30px;
  2157. }
  2158. .el-input-number__decrease,
  2159. .el-input-number__increase {
  2160. height: 30px;
  2161. border: none;
  2162. background: transparent;
  2163. color: #d9e2fc;
  2164. }
  2165. .el-input-number__decrease {
  2166. border-right: 1px solid #1b5441;
  2167. }
  2168. .el-input-number__increase {
  2169. border-left: 1px solid #1b5441;
  2170. }
  2171. .el-input__inner {
  2172. height: 30px;
  2173. border: none;
  2174. line-height: 30px;
  2175. background: transparent;
  2176. color: #d9e2fc;
  2177. }
  2178. }
  2179. .navBar {
  2180. border-color: transparent;
  2181. &-white {
  2182. border-color: #ebebeb;
  2183. .el-input-number__decrease,
  2184. .el-input-number__increase,
  2185. .el-input__inner {
  2186. color: #fff;
  2187. }
  2188. .el-input-number__decrease {
  2189. border-right: 1px solid #e5e6eb;
  2190. }
  2191. .el-input-number__increase {
  2192. border-left: 1px solid #e5e6eb;
  2193. }
  2194. .goback {
  2195. color: #fff;
  2196. }
  2197. .border {
  2198. background: #e5e6eb;
  2199. height: 16px;
  2200. margin-top: 2px;
  2201. }
  2202. .article-title {
  2203. color: #fff;
  2204. }
  2205. }
  2206. &-darkGreen {
  2207. .el-input-number__decrease {
  2208. border-right: 1px solid #1b5441;
  2209. }
  2210. .el-input-number__increase {
  2211. border-left: 1px solid #1b5441;
  2212. }
  2213. .goback {
  2214. color: #e9f7f2;
  2215. }
  2216. .border {
  2217. background: #1b5441;
  2218. height: 16px;
  2219. margin-top: 2px;
  2220. }
  2221. .article-title {
  2222. color: #ccebe1;
  2223. }
  2224. }
  2225. &-darkBlue {
  2226. .el-input-number__decrease {
  2227. border-right: 1px solid #1c2129;
  2228. }
  2229. .el-input-number__increase {
  2230. border-left: 1px solid #1c2129;
  2231. }
  2232. .goback {
  2233. color: #e9f7f2;
  2234. }
  2235. .border {
  2236. background: #667180;
  2237. height: 16px;
  2238. margin-top: 2px;
  2239. }
  2240. .article-title {
  2241. color: #d9e2fc;
  2242. }
  2243. }
  2244. &-armyGreen {
  2245. .el-input-number__decrease {
  2246. border-right: 1px solid #2a2f2c;
  2247. }
  2248. .el-input-number__increase {
  2249. border-left: 1px solid #2a2f2c;
  2250. }
  2251. .goback {
  2252. color: #e9f7f2;
  2253. }
  2254. .border {
  2255. background: #99a29e;
  2256. height: 16px;
  2257. margin-top: 2px;
  2258. }
  2259. .article-title {
  2260. color: #d9e2fc;
  2261. }
  2262. }
  2263. }
  2264. .articleDetail-dialog {
  2265. .el-dialog__header,
  2266. .el-dialog__body {
  2267. padding: 0;
  2268. }
  2269. }
  2270. .ciyun-dialog {
  2271. .el-dialog__title {
  2272. color: #2f3742;
  2273. font-size: 24px;
  2274. font-weight: 600;
  2275. line-height: 32px;
  2276. }
  2277. iframe {
  2278. border: none;
  2279. }
  2280. .el-dialog__body {
  2281. padding: 0;
  2282. }
  2283. }
  2284. </style>