ResourceSharingDetails.vue 60 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442
  1. <template>
  2. <div class="autoBox box" style="min-height: 900px; position: relative">
  3. <div class="crumbs">
  4. <div style="overflow: hidden">
  5. <el-breadcrumb
  6. separator-class="el-icon-arrow-right"
  7. style="float: left"
  8. >
  9. <el-breadcrumb-item :to="{ path: 'home' }">{{
  10. $t("common.Home")
  11. }}
  12. </el-breadcrumb-item>
  13. <el-breadcrumb-item
  14. :to="{ path: 'realTimeInfo1' }"
  15. class="pointer"
  16. >{{ $t("common.NewsData") }}
  17. </el-breadcrumb-item
  18. >
  19. <el-breadcrumb-item>{{
  20. $t("common.InfomationResults")
  21. }}
  22. </el-breadcrumb-item>
  23. </el-breadcrumb>
  24. <el-breadcrumb separator="/" style="float: right">
  25. <span
  26. :class="screenIndex == index ? 'secNavActive' : ''"
  27. class="pointer"
  28. @click="screenChange(item, index)"
  29. v-for="(item, index) in resourceSharingScreen"
  30. >
  31. &nbsp;&nbsp;{{ $t("common.InfomationResults") }} &nbsp;&nbsp;
  32. <!-- <span
  33. v-if="index + 1 !== resourceSharingScreen.length"
  34. style="color: #2c3e50"
  35. >/</span
  36. > -->
  37. </span
  38. >
  39. </el-breadcrumb>
  40. </div>
  41. </div>
  42. <div class="content">
  43. <!--<div class="abstract">
  44. <div>
  45. <h4 style="font-size: 30px;color: rgba(44, 85, 138, 1);font-weight: 600;margin: 0 0 15px 2px;">
  46. {{bookContent.name}}
  47. <div v-if="bookContent.informationVisibleStatus" style="display: inline-block; margin:6px 0 0 70px;padding:0 10px;height: 22px;line-height: 22px; background-color: rgba(255, 51, 0, 0.8);text-align: center;">
  48. <p style="margin: 0;height: 22px;line-height: 22px;font-size: 14px;">
  49. <span v-if="$i18n.locale=='zh'" style="line-height: 22px;color: white;font-size: 14px;">会员</span>
  50. <span v-if="$i18n.locale=='en'" style="line-height: 22px;color: white;font-size: 14px;">MEMBER</span>
  51. </p>
  52. </div>
  53. </h4>
  54. </div>
  55. <div style="width: 878px; height: 40px; background-color: rgba(96, 160, 244, 0.1);">
  56. <div style="float: left">
  57. <span style="margin-left: 30px;font-size: 16px;line-height: 40px;color: rgba(51, 51, 51, 1);">{{$t("common.resourceDetailsTheCategory")}}:{{bookContent.researchResultType}}</span>
  58. </div>
  59. <div style="float: left">
  60. <span style="margin-left: 30px;font-size: 16px;line-height: 40px;color: rgba(51, 51, 51, 1);">{{$t("common.resourceDetailsReleaseTime")}}:{{bookContent.updateDate}}</span>
  61. </div>
  62. <div style="float: right">
  63. <div style="float: left;line-height: 38px;color: rgba(51, 51, 51, 1);">
  64. &lt;!&ndash;下载&ndash;&gt;
  65. &lt;!&ndash;<i class="el-icon-download" style="margin-right: 3px;vertical-align: middle;cursor: pointer;" @click="downloads"></i>
  66. <span style="margin-right: 20px;vertical-align: middle;cursor: pointer;" @click="downloads">{{$t("common.resourceDetailsDownload")}}</span>&ndash;&gt;
  67. &lt;!&ndash; <i class="el-icon-star-off" style="margin-right: 3px;vertical-align: middle;cursor: pointer;"></i> &ndash;&gt;
  68. &lt;!&ndash; <img src="@/assets/img/ResourceSharing/heat.png" alt="" style="width: 16px;height: 16px;margin-right: 3px;vertical-align: middle;">&ndash;&gt;
  69. &lt;!&ndash; <img src="../../assets/img/ResourceSharing/collect.png" alt=""&ndash;&gt;
  70. &lt;!&ndash; style="margin-right: 3px;vertical-align: middle;cursor: pointer;width: 16px;"&ndash;&gt;
  71. &lt;!&ndash; :style="ifcommon?'color: #66b1ff;':''"&ndash;&gt;
  72. &lt;!&ndash; @click="shareChange()"&ndash;&gt;
  73. &lt;!&ndash; >&ndash;&gt;
  74. <i class="el-icon-star-off" style="margin-right: 3px;vertical-align: middle;cursor: pointer;"
  75. :style="ifcommon?'color: #66b1ff;':''"
  76. @click="shareChange()"></i>
  77. <span style="margin-right: 30px;vertical-align: middle;cursor: pointer;"
  78. :style="ifcommon?'color: #66b1ff;':''"
  79. @click="shareChange()"
  80. >{{$i18n.locale=='zh'?ifcommon?"已收藏":"收藏":ifcommon?"Favorites":"Favorites"}}</span>
  81. &lt;!&ndash;<span class="share cursor"
  82. :style="ifcommon?'color: #66b1ff;':''"
  83. style="margin-right: 20px;float: right;"
  84. @click="shareChange()">
  85. <i class="el-icon-star-off" :style="ifcommon?'color: #66b1ff;':''"></i>
  86. {{$i18n.locale=='zh'?ifcommon?"已收藏":"收藏":ifcommon?"Favorites":"Favorites"}}
  87. </span>&ndash;&gt;
  88. </div>
  89. <div style="clear: both"></div>
  90. </div>
  91. <div style="clear: both"></div>
  92. </div>
  93. <div style="margin: 39px 0 0 0;">
  94. <h4 style="font-size: 20px;color: rgba(44, 85, 138, 1);font-weight: 600;margin:0;">
  95. {{$t("common.resourceDetailsAbstract")}}
  96. </h4>
  97. <p style="font-size: 16px; line-height: 32px;margin: 14px 0;color: rgba(51, 51, 51, 1);text-indent: 2em">
  98. {{bookContent.researchResultAbstract}}
  99. </p>
  100. </div>
  101. </div>
  102. <div class="preview">
  103. <div style="position: absolute;top:0;right: 0; width: 240px;height: 290px;">
  104. <img v-if="bookContent['researchResultCover']==undefined||bookContent.researchResultCover==false||bookContent.researchResultCover==''" src="../../assets/img/ResourceSharing/baogao.png" alt="" style="width: 240px; height: 290px;">
  105. <img v-else :src="'api/file/pub/'+ bookContent.researchResultCover" alt="" style="width: 240px;height: 290px;">
  106. <div style="position: absolute;bottom: 0;width: 100%; height: 49px;text-align: center;cursor: pointer;
  107. background: linear-gradient(180deg, rgba(255,255,255,0.64), rgba(0,0,0,0.64));"
  108. @click="toPreview()">
  109. <span style="color: white;font-size: 14px; font-weight: 600;line-height: 49px;opacity: 1;"
  110. @click="toPreview">{{$t("common.resourceDetailsPreview")}}</span>
  111. </div>
  112. </div>
  113. </div>-->
  114. <div>
  115. <h4
  116. style="
  117. font-size: 30px;
  118. color: rgba(44, 85, 138, 1);
  119. font-weight: 600;
  120. margin: 0 0 15px 2px;
  121. width: 878px;
  122. "
  123. >
  124. <span style="margin-right: 70px">{{ bookContent.name }}</span>
  125. <div
  126. v-if="bookContent.informationVisibleStatus == 'Y'"
  127. style="
  128. display: inline-block;
  129. margin: 6px 0 0 0;
  130. padding: 0 10px;
  131. height: 22px;
  132. line-height: 22px;
  133. background-color: rgba(255, 51, 0, 0.8);
  134. text-align: center;
  135. "
  136. >
  137. <p
  138. style="
  139. margin: 0;
  140. height: 22px;
  141. line-height: 22px;
  142. font-size: 14px;
  143. "
  144. >
  145. <span
  146. v-if="$i18n.locale == 'zh'"
  147. style="line-height: 22px; color: white; font-size: 14px"
  148. >会员</span
  149. >
  150. <span
  151. v-if="$i18n.locale == 'en'"
  152. style="line-height: 22px; color: white; font-size: 14px"
  153. >MEMBER</span
  154. >
  155. </p>
  156. </div>
  157. </h4>
  158. </div>
  159. <div
  160. style="
  161. width: 878px;
  162. height: 40px;
  163. background-color: rgba(96, 160, 244, 0.1);
  164. "
  165. >
  166. <div style="float: left">
  167. <span
  168. style="
  169. margin-left: 30px;
  170. font-size: 16px;
  171. line-height: 40px;
  172. color: rgba(51, 51, 51, 1);
  173. "
  174. >{{ $t("common.resourceDetailsTheCategory") }}:{{
  175. bookContent.researchResultType
  176. }}</span
  177. >
  178. </div>
  179. <div style="float: left">
  180. <span
  181. style="
  182. margin-left: 30px;
  183. font-size: 16px;
  184. line-height: 40px;
  185. color: rgba(51, 51, 51, 1);
  186. "
  187. >{{ $t("common.resourceDetailsReleaseTime") }}:{{
  188. bookContent.updateDate
  189. }}</span
  190. >
  191. </div>
  192. <div style="float: right">
  193. <div
  194. style="float: left; line-height: 38px; color: rgba(51, 51, 51, 1)"
  195. >
  196. <!-- "integralExchange":"积分兑换",-->
  197. <!--下载-->
  198. <!-- <i class="el-icon-download" style="margin-right: 3px;vertical-align: middle;cursor: pointer;" @click="downloads"></i>-->
  199. <!-- <img
  200. src="../../assets/img/ResourceSharing/download.png"
  201. @click="downloads"
  202. alt=""
  203. style="margin-right: 3px;vertical-align: middle;cursor: pointer;width: 16px;"/>
  204. <span style="
  205. margin-right: 20px;
  206. vertical-align: middle;
  207. cursor: pointer;
  208. " @click="downloads">
  209. {{ Object.is(bookContent.reserveThree, '1') ? $t("common.integralExchange") : $t("common.resourceDetailsDownload") }}
  210. </span>-->
  211. <!-- <i class="el-icon-star-off" style="margin-right: 3px;vertical-align: middle;cursor: pointer;"></i>-->
  212. <!-- <img src="@/assets/img/ResourceSharing/heat.png" alt="" style="width: 16px;height: 16px;margin-right: 3px;vertical-align: middle;">-->
  213. <!-- <img src="../../assets/img/ResourceSharing/collect.png" alt=""-->
  214. <!-- style="margin-right: 3px;vertical-align: middle;cursor: pointer;width: 16px;"-->
  215. <!-- :style="ifcommon?'color: #66b1ff;':''"-->
  216. <!-- @click="shareChange()"-->
  217. <!-- >-->
  218. <i
  219. class="el-icon-star-off"
  220. style="margin-right: 3px; vertical-align: middle; cursor: pointer"
  221. :style="ifcommon ? 'color: #66b1ff;' : ''"
  222. @click="shareChange()"
  223. ></i>
  224. <span
  225. style="
  226. margin-right: 30px;
  227. vertical-align: middle;
  228. cursor: pointer;
  229. "
  230. :style="ifcommon ? 'color: #66b1ff;' : ''"
  231. @click="shareChange()"
  232. >{{
  233. $i18n.locale == "zh"
  234. ? ifcommon
  235. ? "已关注"
  236. : "关注"
  237. : ifcommon
  238. ? "Already collected"
  239. : " Collection"
  240. }}</span
  241. >
  242. <!--<span class="share cursor"
  243. :style="ifcommon?'color: #66b1ff;':''"
  244. style="margin-right: 20px;float: right;"
  245. @click="shareChange()">
  246. <i class="el-icon-star-off" :style="ifcommon?'color: #66b1ff;':''"></i>
  247. {{$i18n.locale=='zh'?ifcommon?"已收藏":"收藏":ifcommon?"Favorites":"Favorites"}}
  248. </span>-->
  249. </div>
  250. <div style="clear: both"></div>
  251. </div>
  252. <div style="clear: both"></div>
  253. </div>
  254. <div class="abstract">
  255. <div style="margin: 39px 0 0 0">
  256. <h4
  257. style="
  258. font-size: 20px;
  259. color: rgba(44, 85, 138, 1);
  260. font-weight: 600;
  261. margin: 0;
  262. "
  263. >
  264. {{ $t("common.resourceDetailsAbstract") }}
  265. </h4>
  266. <p
  267. style="
  268. font-size: 16px;
  269. line-height: 32px;
  270. margin: 14px 0;
  271. color: rgba(51, 51, 51, 1);
  272. text-indent: 2em;
  273. "
  274. >
  275. <!-- {{ bookContent.name }}-->
  276. {{bookContent.researchResultAbstract}}
  277. </p>
  278. <video v-if="bookContent.researchResultCatalog" :src="bookContent.researchResultCatalog" style="height: 300px;width: 400px"></video>
  279. </div>
  280. </div>
  281. <div class="preview">
  282. <div
  283. style="
  284. position: absolute;
  285. top: 0;
  286. right: 0;
  287. width: 240px;
  288. height: 290px;
  289. "
  290. >
  291. <div
  292. v-if="
  293. bookContent['researchResultCover'] == undefined ||
  294. bookContent.researchResultCover == false ||
  295. bookContent.researchResultCover == 'null' ||
  296. bookContent.researchResultCover == null
  297. "
  298. style="width: 240px; height: 290px; margin: auto"
  299. >
  300. <!-- <div style="width: 240px; height: 290 px; margin: auto;">-->
  301. <div style="width: 240px; height: 290px; position: relative">
  302. <img
  303. src="@/assets/img/ResourceSharing/backImage.png"
  304. alt=""
  305. style="
  306. width: 100%;
  307. height: 100%;
  308. position: absolute;
  309. top: 0;
  310. left: 0;
  311. "
  312. />
  313. <p
  314. style="
  315. padding: 50px 9px 0 9px;
  316. width: 100%;
  317. height: 95px;
  318. box-sizing: border-box;
  319. margin: 0;
  320. text-align: center;
  321. position: absolute;
  322. top: 0;
  323. left: 0;
  324. color: #ffffff;
  325. font-size: 14px;
  326. "
  327. >
  328. {{ bookContent.name }}
  329. </p>
  330. <p
  331. style="
  332. padding: 102px 7px 0 7px;
  333. width: 100%;
  334. height: 150px;
  335. box-sizing: border-box;
  336. margin: 0;
  337. text-align: center;
  338. position: absolute;
  339. top: 115px;
  340. left: 0;
  341. color: #002c6c;
  342. font-size: 12px;
  343. "
  344. >
  345. {{ bookContent.affiliatedUnitName }}
  346. </p>
  347. </div>
  348. </div>
  349. <!-- <img v-if="bookContent['researchResultCover']==undefined||bookContent.researchResultCover==false||bookContent.researchResultCover==''" src="../../assets/img/ResourceSharing/baogao.png" alt="" style="width: 240px; height: 290px;">-->
  350. <img
  351. v-else
  352. :src="'api/file/pub/' + bookContent.researchResultCover"
  353. alt=""
  354. style="width: 240px; height: 290px"
  355. />
  356. <div
  357. style="
  358. position: absolute;
  359. bottom: 0;
  360. width: 100%;
  361. height: 49px;
  362. text-align: center;
  363. cursor: pointer;
  364. background: linear-gradient(
  365. 180deg,
  366. rgba(255, 255, 255, 0.64),
  367. rgba(0, 0, 0, 0.64)
  368. );
  369. "
  370. @click="toPreview()"
  371. >
  372. <span
  373. class="active"
  374. style="
  375. color: #0079ef;
  376. font-size: 14px;
  377. font-weight: 600;
  378. line-height: 49px;
  379. opacity: 1;
  380. "
  381. >{{ $t("common.resourceDetailsPreview") }}</span
  382. >
  383. </div>
  384. </div>
  385. </div>
  386. <div style="clear: both"></div>
  387. </div>
  388. <!--目录-->
  389. <!--<div class="bookCatalog">
  390. <div class="catalog">
  391. <span style="color: white;font-size: 20px;line-height: 250px;">目录</span>
  392. </div>
  393. <div class="catalogList">
  394. <div
  395. class="catalogText"
  396. v-for="(item,index) in bookCatalog"
  397. :style="{'border':index==bookCatalog.length-1?'none':''}">
  398. <h4 style="font-size: 18px; font-weight: 600; margin: 0 0 16px 0;">
  399. {{item.title}}
  400. </h4>
  401. <ul>
  402. <li
  403. style="font-size: 14px; font-weight: 400; color: rgba(0,0,0,0.6);margin-top: 14px;"
  404. v-for="ele in item.text"
  405. >
  406. {{ele}}
  407. </li>
  408. </ul>
  409. </div>
  410. </div>
  411. <div style="clear: both"></div>
  412. </div>-->
  413. <!--目录 图片-->
  414. <!--<div style="width: 100%; margin: 60px 0;">
  415. <h4 style="font-size: 20px;color: rgba(44, 85, 138, 1);font-weight: 600;margin:0;">
  416. {{$t("common.resourceDetailsDirectory")}}
  417. </h4>
  418. <div class="bookCatalog" style="margin: 15px 0 60px 0;">
  419. <img :src="'api/file/pub/'+ bookContent.researchResultCatalog" alt="" style="width: 100%;min-height: 250px; max-height: 600px;">
  420. </div>
  421. </div>-->
  422. <!--推荐-->
  423. <div class="recommend" v-show="cursorList[0]">
  424. <div
  425. style="border-bottom: 1px solid rgba(44, 85, 138, 1); margin: 20px 4px"
  426. >
  427. <div
  428. style="
  429. float: left;
  430. width: 6px;
  431. height: 22px;
  432. background-color: #6bc13b;
  433. margin-top: 2px;
  434. "
  435. >
  436. <div
  437. style="background-color: #1b6ace; width: 6px; height: 16px"
  438. ></div>
  439. </div>
  440. <div style="float: left; height: 24px; padding-bottom: 14px">
  441. <span
  442. style="
  443. color: #2c558a;
  444. font-size: 20px;
  445. margin-left: 10px;
  446. font-weight: 700;
  447. line-height: 24px;
  448. "
  449. >
  450. {{ $t("common.resourceDetailsResearchFindingsRecommendation") }}
  451. </span>
  452. </div>
  453. <div style="float: right; height: 30px">
  454. <!--<span style="color: #2C558A; font-size: 16px; margin-right:30px;font-weight: 700;line-height: 30px;cursor:pointer;" @click="getCursorList()">{{$t('common.ChangeTheBatch')}}</span>-->
  455. <span
  456. @click="getCursorList()"
  457. style="float: right; cursor: pointer; margin-right: 30px"
  458. >
  459. <div style="width: 12px; height: 12px; float: left">
  460. <img
  461. src="@/assets/img/helpCenter/change1.png"
  462. alt=""
  463. style="width: 100%"
  464. />
  465. </div>
  466. <div
  467. style="
  468. float: left;
  469. margin-left: 5px;
  470. font-size: 16px;
  471. color: #778aa4;
  472. "
  473. >
  474. {{ $t("common.ChangeTheBatch") }}
  475. </div>
  476. </span>
  477. </div>
  478. <div style="clear: both"></div>
  479. </div>
  480. <div style="margin: 20px 0">
  481. <div
  482. v-for="(item, index) in cursorList"
  483. v-show="index < 5"
  484. @click="toDetails(item, index)"
  485. :style="{ float: 'Left', marginLeft: index == 0 ? '0' : '15px' }"
  486. style="cursor: pointer"
  487. >
  488. <div style="width: 220px; height: 250px">
  489. <div
  490. v-if="
  491. item['researchResultCover'] == undefined ||
  492. item.researchResultCover == false ||
  493. item.researchResultCover == 'null' ||
  494. item.researchResultCover == null
  495. "
  496. style="width: 220px; height: 250px; margin: auto"
  497. >
  498. <!-- <div style="width: 220px; height: 220px; margin: auto;">-->
  499. <div style="width: 220px; height: 250px; position: relative">
  500. <img
  501. src="@/assets/img/ResourceSharing/backImage.png"
  502. alt=""
  503. style="
  504. width: 100%;
  505. height: 100%;
  506. position: absolute;
  507. top: 0;
  508. left: 0;
  509. "
  510. />
  511. <p
  512. style="
  513. padding: 40px 9px 0 9px;
  514. width: 100%;
  515. height: 95px;
  516. box-sizing: border-box;
  517. margin: 0;
  518. text-align: center;
  519. position: absolute;
  520. top: 0;
  521. left: 0;
  522. color: #ffffff;
  523. font-size: 14px;
  524. "
  525. >
  526. {{ item.name }}
  527. </p>
  528. <p
  529. style="
  530. padding: 102px 7px 0 7px;
  531. width: 100%;
  532. height: 140px;
  533. box-sizing: border-box;
  534. margin: 0;
  535. text-align: center;
  536. position: absolute;
  537. top: 115px;
  538. left: 0;
  539. color: #002c6c;
  540. font-size: 12px;
  541. "
  542. >
  543. {{ item.affiliatedUnitName }}
  544. </p>
  545. </div>
  546. </div>
  547. <!-- <img v-if="item['researchResultCover']==undefined||item.researchResultCover==false||item.researchResultCover==''||item.researchResultCover==null" src="../../assets/img/ResourceSharing/baogao.png" alt="" style="width: 220px; height: 250px;">-->
  548. <img
  549. v-else
  550. :src="'api/file/pub/' + item.researchResultCover"
  551. alt=""
  552. style="width: 220px; height: 250px"
  553. />
  554. </div>
  555. <!--<p style="padding: 0 6px;box-sizing: border-box;width: 220px;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;text-align: center">
  556. <span style="color: #333333;font-size: 16px;font-weight: 600;">
  557. {{item.name}}
  558. </span>
  559. </p>-->
  560. <p
  561. style="
  562. padding: 0 6px;
  563. box-sizing: border-box;
  564. width: 220px;
  565. text-align: center;
  566. "
  567. >
  568. <span
  569. style="
  570. display: inline-block;
  571. width: 100%;
  572. color: #333333;
  573. font-size: 16px;
  574. font-weight: 600;
  575. word-break: break-all;
  576. "
  577. >
  578. {{ item.name }}
  579. </span>
  580. </p>
  581. </div>
  582. <div style="clear: both"></div>
  583. </div>
  584. </div>
  585. <!--<div style="width: 100%;position: relative;height: 100px;margin-bottom: 30px;">
  586. <el-pagination
  587. background
  588. style="height: 80px;position: absolute;left: 50%;top: 100px;transform: translate(-50%,-50%);"
  589. @size-change="handleSizeChange"
  590. @current-change="handleCurrentChange"
  591. :current-page="currentPage"
  592. :page-sizes="[100, 200, 300, 400]"
  593. :page-size="9"
  594. layout="prev, pager, next, sizes, jumper"
  595. :total="400"
  596. ></el-pagination>
  597. </div>-->
  598. <!-- 登录提示-->
  599. <el-dialog
  600. :title="$i18n.locale == 'zh' ? '提示' : 'Reminder'"
  601. :visible.sync="toViewLogin"
  602. :width="$i18n.locale == 'zh' ? '500px' : '750px'"
  603. :height="$i18n.locale == 'zh' ? '300px' : '386px'"
  604. :before-close="toViewLoginChange"
  605. >
  606. <div style="width: 100%; height: 100%">
  607. <img
  608. src="@/assets/img/loginTips.png"
  609. alt=""
  610. style="width: 180px; height: 180px; margin-left: 20px"
  611. />
  612. <div
  613. style="float: right; margin-right: 20px"
  614. :style="
  615. $i18n.locale == 'zh'
  616. ? 'width: 49%;margin-top: 10px;'
  617. : 'width: 453px;margin-top: -25px;'
  618. "
  619. >
  620. <div
  621. style="
  622. font-size: 20px;
  623. font-weight: normal;
  624. color: #333333;
  625. font-family: HiraginoSansGB-W3, HiraginoSansGB;
  626. line-height: 40px;
  627. "
  628. >
  629. {{ $t("common.ReminderFirst") }}
  630. </div>
  631. <div
  632. style="
  633. font-size: 16px;
  634. font-family: HiraginoSansGB-W3, HiraginoSansGB;
  635. font-weight: normal;
  636. color: #666666;
  637. line-height: 30px;
  638. "
  639. >
  640. {{ $t("common.ReminderSecond") }}
  641. <span style="color: #0091ff; font-size: 18px">{{ num }}</span>
  642. {{ $t("common.ReminderThird") }}
  643. </div>
  644. <div
  645. style="
  646. font-size: 14px;
  647. font-family: HiraginoSansGB-W3, HiraginoSansGB;
  648. font-weight: normal;
  649. color: #666666;
  650. line-height: 30px;
  651. "
  652. >
  653. {{ $t("common.ReminderForth") }}
  654. </div>
  655. <div
  656. style="
  657. font-size: 14px;
  658. font-family: HiraginoSansGB-W3, HiraginoSansGB;
  659. height: 33px;
  660. line-height: 60px;
  661. font-weight: normal;
  662. color: #0091ff;
  663. "
  664. >
  665. <span
  666. style="margin-left: 40px"
  667. class="cursor"
  668. @click="toView('login')"
  669. >
  670. {{ $t("common.ReminderFifth") }}
  671. </span>
  672. <span
  673. style="margin-left: 10px"
  674. class="cursor"
  675. @click="toView('Register')"
  676. >
  677. {{ $t("common.ReminderSixth") }}
  678. </span>
  679. </div>
  680. </div>
  681. </div>
  682. </el-dialog>
  683. </div>
  684. </template>
  685. <script>
  686. import Base from "@/views/base/Base";
  687. import {getPersonalOrder} from "@/api/user";
  688. import {getDicts, getDictByTypeValue} from "@/api/dict";
  689. import {
  690. getBaseResearchResultViews,
  691. gateResearchResultViewById,
  692. gateResearchResultFileById,
  693. } from "@/api/research/baseResearchResultView";
  694. import {
  695. getFollowModeNumlByModelId,
  696. getFollowModelNumByUser,
  697. saveFollowModel,
  698. } from "@/api/operation/basePortalModelFollowInfo";
  699. import {getFollowModeNumlByModelIdAndUserId} from "@/api/operation/basePortalModelFollowInfo";
  700. import {formatDate} from "@/utils/formatUtils";
  701. import {getToken, resetToken} from "@/utils/auth";
  702. // import { getToken } from "@/api/token";
  703. import {reductionIntegral} from "@/utils/toCompleteTask";
  704. export default {
  705. name: "resourceSharingDetails",
  706. extends: Base,
  707. data() {
  708. return {
  709. ifcommon: false,
  710. params: {
  711. pageNo: "",
  712. pageSize: "",
  713. language: "",
  714. id: "",
  715. researchResultFileId: "",
  716. },
  717. num: 5,
  718. timer: "",
  719. toViewLogin: false,
  720. screenIndex: 0, //研究成果、调研资源选中
  721. resourceSharingScreen: [
  722. {
  723. lable: "common.resource",
  724. value: "0",
  725. },
  726. // {
  727. // lable: "common.researchResource",
  728. // value: "1",
  729. // },
  730. ],
  731. bookContent: "",
  732. bookCatalog: [],
  733. cursorList: [],
  734. downloadStatus: false,
  735. params: {
  736. pageNo: 1,
  737. pageSize: 5,
  738. totalPage: "",
  739. },
  740. showExchange:false,
  741. };
  742. },
  743. mounted() {
  744. if (this.$route.query.key) {
  745. let rpath = {
  746. name: "resourceSharingDetails",
  747. query: {key: this.$route.query.key},
  748. };
  749. sessionStorage.setItem("pathReminder", JSON.stringify(rpath));
  750. this.initData();
  751. } else {
  752. this.toView("resourceSharing", 0);
  753. }
  754. },
  755. watch: {
  756. "$i18n.locale"() {
  757. this.initData();
  758. },
  759. },
  760. methods: {
  761. initData() {
  762. this.getData();
  763. // this.getCursorList();
  764. this.getMyCollecModel(); // 获取用户是否收藏
  765. },
  766. getMyCollecModel() {
  767. const that = this;
  768. if (this.$Cookies.get("token")) {
  769. let user = window.localStorage.getItem("user");
  770. var users = JSON.parse(user);
  771. let MyCollecModel = {
  772. modelType: "researchResult",
  773. userId: users.userId,
  774. modelEntityId: JSON.parse(that.$route.query.key).entityId,
  775. };
  776. getFollowModeNumlByModelIdAndUserId(
  777. JSON.parse(that.$route.query.key).entityId,
  778. "researchResult",
  779. this.userId
  780. ).then((res) => {
  781. this.ifcommon = res.data;
  782. });
  783. }
  784. },
  785. //收藏
  786. shareChange() {
  787. // if (this.ifcommon) {
  788. // this.Collection("uncollect");
  789. // } else {
  790. // this.Collection("collect");
  791. // }
  792. if (this.ifcommon) {
  793. this.saveFollowModelDo("unfollow");
  794. } else {
  795. this.saveFollowModelDo("follow");
  796. }
  797. },
  798. //关注操作方法
  799. saveFollowModelDo: function (followType) {
  800. let user = window.localStorage.getItem("user");
  801. if (!this.$Cookies.get("token")) {
  802. // this.$message.warning("请先登录");
  803. // this.$confirm('检测到您未登录,是否登录')
  804. // .then(_ => {
  805. // this.toView('login');
  806. // })
  807. // .catch(_ => {});
  808. this.toViewLogin = true;
  809. } else {
  810. var users = JSON.parse(user);
  811. var token = "" + getToken();
  812. var projectId = JSON.parse(this.$route.query.key).entityId;
  813. var userId = users.userId;
  814. // 接口逻辑
  815. this.submitHandler((token) => {
  816. saveFollowModel(
  817. projectId,
  818. "researchResult",
  819. userId,
  820. followType,
  821. token
  822. )
  823. .then((result) => {
  824. // console.log(result);
  825. /*if(followType=='unfollow'){
  826. if(this.$i18n.locale=='zh'){
  827. this.$message({
  828. message: '取消收藏',
  829. type: "success",
  830. });
  831. }else{
  832. this.$message({
  833. message: 'cancel coilection',
  834. type: "success",
  835. });
  836. }
  837. }else{
  838. if(this.$i18n.locale=='zh'){
  839. this.$message({
  840. message: '已收藏',
  841. type: "success",
  842. });
  843. }else{
  844. this.$message({
  845. message: 'Already collected',
  846. type: "success",
  847. });
  848. }
  849. }*/
  850. if (followType == "unfollow") {
  851. if (this.$i18n.locale == "zh") {
  852. this.$message({
  853. message: "取消关注",
  854. type: "success",
  855. });
  856. } else {
  857. this.$message({
  858. message: "Cancel concerned",
  859. type: "success",
  860. });
  861. }
  862. } else {
  863. if (this.$i18n.locale == "zh") {
  864. this.$message({
  865. message: "已关注",
  866. type: "success",
  867. });
  868. } else {
  869. this.$message({
  870. message: "Already concerned",
  871. type: "success",
  872. });
  873. }
  874. }
  875. this.ifcommon = !this.ifcommon;
  876. this.resetToken();
  877. })
  878. .catch((error) => {
  879. // 此处你的业务代码
  880. });
  881. });
  882. }
  883. },
  884. screenChange(item, index) {
  885. this.toView("resourceSharing", item.value);
  886. },
  887. toDetails(item, index) {
  888. let params = {
  889. entityId: item.entityId,
  890. researchResultFileId: this.bookContent.researchResultFileId,
  891. };
  892. this.toDetailsNewPage("resourceSharingDetails", params);
  893. },
  894. toPreview() {
  895. const that = this;
  896. if (that.bookContent.securityStatus == "Y") {
  897. if (this.$i18n.locale.toUpperCase() == "ZH") {
  898. this.$message({
  899. type: "warning",
  900. message: "保密文件,禁止预览!",
  901. });
  902. } else {
  903. this.$message({
  904. type: "warning",
  905. message: "Confidential documents, do not preview!",
  906. });
  907. }
  908. } else {
  909. let params = {
  910. entityId: this.bookContent.entityId,
  911. researchResultFileId: this.bookContent.researchResultFileId,
  912. };
  913. if(that.$Cookies.get('token')){
  914. let user = window.localStorage.getItem("user");
  915. let users = JSON.parse(user);
  916. if(users.umsUser.userUsertype=="普通用户账号" && Object.is(that.bookContent.reserveThree, '1')){
  917. if(that.showExchange){
  918. this.toViewQuery("resourceSharingDetailsPreview", params);
  919. return;
  920. }
  921. window.localStorage.setItem("detailID", that.bookContent.reserveFour);
  922. that.$router.push({name: 'userCenterIntegralExchangeDetail', query: {}});
  923. return;
  924. }
  925. this.toViewQuery("resourceSharingDetailsPreview", params);
  926. }else{
  927. if(Object.is(that.bookContent.reserveThree, '1')){
  928. window.localStorage.setItem("detailID", that.bookContent.reserveFour);
  929. that.$router.push({name: 'userCenterIntegralExchangeDetail', query: {}});
  930. return;
  931. }
  932. this.toViewQuery("resourceSharingDetailsPreview", params);
  933. }
  934. }
  935. },
  936. // toPreview() {
  937. // const that = this;
  938. // if (Object.is(this.bookContent.reserveThree, '1')) {
  939. // window.localStorage.setItem("detailID", this.bookContent.reserveFour);
  940. // this.$router.push({name: 'userCenterIntegralExchangeDetail', query: {}});
  941. // } else {
  942. // if (that.bookContent.securityStatus == "Y") {
  943. // if (this.$i18n.locale.toUpperCase() == "ZH") {
  944. // this.$message({
  945. // type: "warning",
  946. // message: "保密文件,禁止预览!",
  947. // });
  948. // } else {
  949. // this.$message({
  950. // type: "warning",
  951. // message: "Confidential documents, do not preview!",
  952. // });
  953. // }
  954. // } else {
  955. // let params = {
  956. // entityId: this.bookContent.entityId,
  957. // researchResultFileId: this.bookContent.researchResultFileId,
  958. // };
  959. // this.toViewQuery("resourceSharingDetailsPreview", params);
  960. // }
  961. // }
  962. // },
  963. toDetailsNewPage(router, json) {
  964. // this.$store.commit('modify', router);
  965. window.localStorage.setItem("router", router);
  966. localStorage.setItem("conferenceId", json);
  967. const {href} = this.$router.resolve({
  968. name: router,
  969. query: {
  970. key: JSON.stringify(json),
  971. },
  972. });
  973. window.open(href, "_blank");
  974. },
  975. toView(router, json) {
  976. if (router == "login" || router == "Register") {
  977. clearInterval(this.timer);
  978. }
  979. this.$router.push({name: router, params: {key: json}});
  980. },
  981. toViewQuery(router, json) {
  982. let rpath = {name: router, query: {key: JSON.stringify(json)}};
  983. sessionStorage.setItem("pathReminder", JSON.stringify(rpath));
  984. this.$router.push({name: router, query: {key: JSON.stringify(json)}});
  985. },
  986. getData(entityId, researchResultFileId) {
  987. const that = this;
  988. let param = {
  989. pageNo: "",
  990. pageSize: "",
  991. language: "",
  992. entityId: "",
  993. researchResultFileId: "",
  994. reserveTwo: "Y",
  995. };
  996. if (this.$i18n.locale.toUpperCase() == "ZH") {
  997. param.language = "ZH";
  998. } else if (this.$i18n.locale.toUpperCase() == "EN") {
  999. param.language = "EN";
  1000. }
  1001. if (that.$route.query.key) {
  1002. param.entityId = JSON.parse(that.$route.query.key).entityId;
  1003. }
  1004. if (entityId) {
  1005. param.entityId = entityId;
  1006. }
  1007. gateResearchResultViewById(param).then((resulet) => {
  1008. let data = resulet.data;
  1009. if (data.baseResearchResultView) {
  1010. that.bookContent = data.baseResearchResultView;
  1011. console.log("that.bookContent.researchResultCatalog"+that.bookContent.researchResultCatalog)
  1012. that.bookContent.updateDate = that.bookContent.updateDate
  1013. ? formatDate(that.bookContent.updateDate, "YYYY-MM-DD")
  1014. : "";
  1015. that.getDictValue();
  1016. that.getCursorList();
  1017. if(that.bookContent.reserveFour && this.$Cookies.get('token')){
  1018. that.getPersonalOrder(that.bookContent.reserveFour);
  1019. }
  1020. }
  1021. });
  1022. },
  1023. getPersonalOrder(val){ //获取是否已经兑换
  1024. getPersonalOrder(val).then((res) => {
  1025. if(res.data.length){
  1026. this.showExchange = true
  1027. }
  1028. });
  1029. },
  1030. getCursorList() {
  1031. let that = this;
  1032. if (++that.params.pageNo > that.params.totalPage) {
  1033. that.params.pageNo = 1;
  1034. }
  1035. let param = {
  1036. pageNo: that.params.pageNo,
  1037. pageSize: that.params.pageSize,
  1038. language: "",
  1039. status: 0,
  1040. descStatus: 1,
  1041. id: that.bookContent.id,
  1042. };
  1043. if (this.$i18n.locale.toUpperCase() == "ZH") {
  1044. param.language = "ZH";
  1045. } else if (this.$i18n.locale.toUpperCase() == "EN") {
  1046. param.language = "EN";
  1047. }
  1048. getBaseResearchResultViews(param).then((resulet) => {
  1049. let that = this;
  1050. let data = resulet.data;
  1051. if (data.baseResearchResultViews) {
  1052. that.cursorList = data.baseResearchResultViews;
  1053. that.cursorList.forEach((i) => {
  1054. i.createDate = i.createDate
  1055. ? formatDate(i.createDate, "YYYY-MM-DD")
  1056. : "";
  1057. });
  1058. /*let flag = false;
  1059. for(let j=0;j<that.cursorList.length;j++){
  1060. if(that.cursorList[j].name == that.bookContent.name){
  1061. flag = j;
  1062. }
  1063. }
  1064. if(flag==0||flag!=false) {
  1065. that.cursorList.splice(flag,1)
  1066. }else{
  1067. if(that.cursorList.length>4){
  1068. that.cursorList.pop()
  1069. }
  1070. }*/
  1071. }
  1072. if (data.page) {
  1073. that.params.totalPage = data.page.totalPage;
  1074. }
  1075. });
  1076. },
  1077. getDictValue() {
  1078. const that = this;
  1079. let params = {
  1080. typeCode:
  1081. this.$i18n.locale == "zh"
  1082. ? "RESEARCH_RESULT_TYPE_DICT"
  1083. : "RESEARCH_RESULT_TYPE_DICT_EN",
  1084. value: that.bookContent.researchResultType,
  1085. };
  1086. getDictByTypeValue(params.typeCode, params.value).then((resulet) => {
  1087. that.bookContent.researchResultType = resulet.data[0].label;
  1088. });
  1089. },
  1090. /*downloads(path,fileName){
  1091. const that = this;
  1092. //资源是否保密
  1093. if(that.bookContent.securityStatus == 'N'){
  1094. if(this.$Cookies.get('token')){
  1095. let user = window.localStorage.getItem("user");
  1096. let users = JSON.parse(user);
  1097. let userId = users.userId;
  1098. if(that.bookContent.informationVisibleStatus=='Y'){
  1099. const link = document.createElement('a');
  1100. console.log('pdf')
  1101. console.log(that.bookContent.researchResultFile)
  1102. link.href = "api/file/pub/" + this.bookContent.researchResultFile;
  1103. link.download = this.bookContent.name; //下载的文件名
  1104. link.click();
  1105. /!*if(users.umsUser.userUsertype=="普通用户账号"){
  1106. const link = document.createElement('a');
  1107. link.href = "api/file/pub/" + this.bookContent.researchResultFile;
  1108. link.download = this.bookContent.name; //下载的文件名
  1109. link.click();
  1110. }else{
  1111. if (this.$i18n.locale.toUpperCase() == 'ZH') {
  1112. // alert('该文件暂不支持下载');
  1113. this.$message({
  1114. message: '该文件仅供会员可下载',
  1115. type: 'warning'
  1116. });
  1117. } else {
  1118. // alert('This file is not supported for download');
  1119. this.$message({
  1120. message: 'This document is downloadable by members only',
  1121. type: 'warning'
  1122. });
  1123. }
  1124. }*!/
  1125. }
  1126. }else{
  1127. if (this.$i18n.locale.toUpperCase() == 'ZH') {
  1128. this.$message({
  1129. message: '请登录后下载',
  1130. type: 'warning'
  1131. });
  1132. } else {
  1133. // alert('This file is not supported for download');
  1134. this.$message({
  1135. message: 'Please log in and download',
  1136. type: 'warning'
  1137. });
  1138. }
  1139. }
  1140. }else{
  1141. if (this.$i18n.locale.toUpperCase() == 'ZH') {
  1142. // alert('该文件暂不支持下载');
  1143. this.$message({
  1144. message: '该文件暂不支持下载',
  1145. type: 'warning'
  1146. });
  1147. } else {
  1148. // alert('This file is not supported for download');
  1149. this.$message({
  1150. message: 'This file is not supported for download',
  1151. type: 'warning'
  1152. });
  1153. }
  1154. }
  1155. },*/
  1156. downloads(path, fileName) {
  1157. const that = this;
  1158. //资源是否保密
  1159. if (that.bookContent.securityStatus == "N") {
  1160. /*if(that.bookContent.fileVisibleStatus == 'N'){
  1161. that.downfile();
  1162. }else{
  1163. if(this.$Cookies.get('token')){
  1164. let user = window.localStorage.getItem("user");
  1165. let users = JSON.parse(user);
  1166. let userId = users.userId;
  1167. that.downfile();
  1168. }else{
  1169. if (this.$i18n.locale.toUpperCase() == 'ZH') {
  1170. this.$message({
  1171. message: '请登录后下载',
  1172. type: 'warning'
  1173. });
  1174. } else {
  1175. // alert('This file is not supported for download');
  1176. this.$message({
  1177. message: 'Please log in and download',
  1178. type: 'warning'
  1179. });
  1180. }
  1181. }
  1182. }*/
  1183. if (this.$Cookies.get("token")) {
  1184. let user = window.localStorage.getItem("user");
  1185. let users = JSON.parse(user);
  1186. if(users.umsUser.userUsertype=="普通用户账号" && Object.is(that.bookContent.reserveThree, '1')){
  1187. if(that.showExchange){
  1188. if (that.$i18n.locale.toUpperCase() == "ZH") {
  1189. that.$message({
  1190. message: "已经兑换过了",
  1191. type: "warning",
  1192. });
  1193. } else {
  1194. that.$message({
  1195. message: "Has been exchanged",
  1196. type: "warning",
  1197. });
  1198. }
  1199. return;
  1200. }
  1201. window.localStorage.setItem("detailID", that.bookContent.reserveFour);
  1202. that.$router.push({name: 'userCenterIntegralExchangeDetail', query: {}});
  1203. return;
  1204. }
  1205. that.downfile();
  1206. } else {
  1207. if (this.$i18n.locale.toUpperCase() == "ZH") {
  1208. this.$message({
  1209. message: "请登录后下载",
  1210. type: "warning",
  1211. });
  1212. } else {
  1213. // alert('This file is not supported for download');
  1214. this.$message({
  1215. message: "Please login and download",
  1216. type: "warning",
  1217. });
  1218. }
  1219. }
  1220. } else {
  1221. if (this.$i18n.locale.toUpperCase() == "ZH") {
  1222. // alert('该文件暂不支持下载');
  1223. this.$message({
  1224. message: "该文件暂不支持下载",
  1225. type: "warning",
  1226. });
  1227. } else {
  1228. // alert('This file is not supported for download');
  1229. this.$message({
  1230. message: "This file is not supported for download",
  1231. type: "warning",
  1232. });
  1233. }
  1234. }
  1235. // }
  1236. },
  1237. // 下载减积分
  1238. // downloadMinusIntegral() {
  1239. // let params = {
  1240. // title: "下载资讯",
  1241. // titleEn: "updateJournal",
  1242. // point: 3,
  1243. // };
  1244. // this.submitHandler((token) => {
  1245. // console.log(token)
  1246. // downloadDeductingIntegral({params, token})
  1247. // .then((res) => {
  1248. // if (res) {
  1249. // console.log(res);
  1250. // }
  1251. // })
  1252. // .catch((error) => {
  1253. // console.log(error);
  1254. // });
  1255. // });
  1256. // },
  1257. downfile() {
  1258. const that = this;
  1259. // if(that.bookContent.researchResultFile){
  1260. const link = document.createElement("a");
  1261. console.log("pdf");
  1262. console.log(that.bookContent.researchResultFile);
  1263. link.href = "api/file/pub/" + this.bookContent.researchResultFile;
  1264. link.download = this.bookContent.name; //下载的文件名
  1265. link.click();
  1266. /*if(users.umsUser.userUsertype=="普通用户账号"){
  1267. const link = document.createElement('a');
  1268. link.href = "api/file/pub/" + this.bookContent.researchResultFile;
  1269. link.download = this.bookContent.name; //下载的文件名
  1270. link.click();
  1271. }else{
  1272. if (this.$i18n.locale.toUpperCase() == 'ZH') {
  1273. // alert('该文件暂不支持下载');
  1274. this.$message({
  1275. message: '该文件仅供会员可下载',
  1276. type: 'warning'
  1277. });
  1278. } else {
  1279. // alert('This file is not supported for download');
  1280. this.$message({
  1281. message: 'This document is downloadable by members only',
  1282. type: 'warning'
  1283. });
  1284. }
  1285. }*/
  1286. // }else{
  1287. // if (this.$i18n.locale.toUpperCase() == 'ZH') {
  1288. // this.$message({
  1289. // message: '暂无文件',
  1290. // type: 'warning'
  1291. // });
  1292. // } else {
  1293. // // alert('This file is not supported for download');
  1294. // this.$message({
  1295. // message: 'No file',
  1296. // type: 'warning'
  1297. // });
  1298. // }
  1299. // }
  1300. },
  1301. // 判断未登录跳转是否关闭
  1302. toViewLoginChange(done) {
  1303. this.toViewLogin = false;
  1304. this.num = 5;
  1305. clearInterval(this.timer);
  1306. },
  1307. loginTipsChange() {
  1308. const that = this;
  1309. this.num = 5;
  1310. // clearInterval(timer_interval);
  1311. this.timer = setInterval(function () {
  1312. if (that.num > 0) {
  1313. that.num--;
  1314. } else {
  1315. if (that.toViewLogin == true) {
  1316. clearInterval(that.timer);
  1317. that.toView("login");
  1318. } else {
  1319. clearInterval(that.timer);
  1320. }
  1321. }
  1322. }, 1000);
  1323. },
  1324. },
  1325. };
  1326. </script>
  1327. <style scoped>
  1328. .oneLine {
  1329. /* 隐藏溢出元素 */
  1330. overflow: hidden;
  1331. /* 单行显示 */
  1332. white-space: nowrap;
  1333. /* 溢出显示省略号 */
  1334. text-overflow: ellipsis;
  1335. }
  1336. .threeLine {
  1337. overflow: hidden;
  1338. text-overflow: ellipsis;
  1339. display: -webkit-box;
  1340. -webkit-line-clamp: 3;
  1341. -webkit-box-orient: vertical;
  1342. }
  1343. .pointer:hover {
  1344. cursor: pointer;
  1345. }
  1346. .box {
  1347. margin-top: 10px;
  1348. background: #fff;
  1349. /* height: 500px; */
  1350. padding: 20px;
  1351. box-sizing: border-box;
  1352. }
  1353. .crumbs {
  1354. /*margin:0 20px;*/
  1355. }
  1356. .secNavActive {
  1357. color: #0091ff;
  1358. }
  1359. .content {
  1360. width: 100%;
  1361. min-height: 290px;
  1362. margin: 52px 0 60px;
  1363. overflow: hidden;
  1364. }
  1365. .content .abstract {
  1366. float: left;
  1367. width: 76%;
  1368. height: 100%;
  1369. }
  1370. .content .preview {
  1371. float: right;
  1372. width: 24%;
  1373. /*height: 100%;*/
  1374. /*margin-top: 100px;*/
  1375. height: 290px;
  1376. position: relative;
  1377. }
  1378. .bookCatalog {
  1379. width: 100%;
  1380. /*height: 250px;*/
  1381. min-height: 250px;
  1382. max-height: 600px;
  1383. background-color: #eff5fd;
  1384. margin: 60px 0;
  1385. }
  1386. .bookCatalog .catalog {
  1387. float: left;
  1388. width: 6.5%;
  1389. height: 100%;
  1390. background-color: #60a0f4ff;
  1391. text-align: center;
  1392. }
  1393. .bookCatalog .catalogList {
  1394. float: right;
  1395. width: 93.5%;
  1396. height: 100%;
  1397. display: flex;
  1398. justify-content: space-around;
  1399. align-items: center;
  1400. }
  1401. .bookCatalog .catalogList .catalogText {
  1402. /*width: 228px;*/
  1403. /*height:160px;*/
  1404. width: auto;
  1405. height: auto;
  1406. border-right: 2px solid rgba(44, 85, 138, 0.4);
  1407. padding-right: 80px;
  1408. }
  1409. .recommend {
  1410. }
  1411. .active:hover {
  1412. color: red;
  1413. }
  1414. </style>