General.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865
  1. <template>
  2. <div
  3. class="general"
  4. >
  5. <img
  6. class="map-mask"
  7. src="@/assets/images/mask-general-map.png"
  8. alt=""
  9. draggable="false"
  10. >
  11. <h1
  12. :title="activeCorpInfo?.name || '上海市工业博物馆'"
  13. >
  14. {{ activeCorpInfo?.name || '上海市工业博物馆' }}
  15. </h1>
  16. <form @submit.prevent="onSearch">
  17. <input
  18. v-model="filterKeyword"
  19. type="text"
  20. placeholder="请输入企业名称"
  21. >
  22. <button type="submit">
  23. <img
  24. class=""
  25. src="@/assets/images/icon_search.png"
  26. alt=""
  27. draggable="false"
  28. >
  29. </button>
  30. </form>
  31. <ul>
  32. <li
  33. v-for="(decade) in corpListMap.keys()"
  34. :key="decade"
  35. >
  36. <h2>
  37. <img
  38. class=""
  39. src="@/assets/images/decade-decorator-left.png"
  40. alt=""
  41. draggable="false"
  42. >
  43. <span>{{ decade }}</span>
  44. <img
  45. class=""
  46. src="@/assets/images/decade-decorator-right.png"
  47. alt=""
  48. draggable="false"
  49. >
  50. </h2>
  51. <div
  52. v-for="(corpItem) in corpListMap.get(decade)"
  53. :id="`corp-item-${corpItem.id}`"
  54. :key="corpItem.id"
  55. class="corp-item"
  56. :class="{
  57. active: activeCorpId === corpItem.id
  58. }"
  59. @click="onClickCorpItem(corpItem.id)"
  60. >
  61. <div class="item-icon" />
  62. <div class="verticle-line" />
  63. <span
  64. class="corp-name"
  65. :title="corpItem.name"
  66. >
  67. {{ corpItem.name }}
  68. </span>
  69. <span class="corp-time">
  70. {{ corpItem.createDay }}
  71. </span>
  72. </div>
  73. </li>
  74. </ul>
  75. <article v-if="activeCorpInfo && isShowDesc">
  76. <button
  77. class="close"
  78. @click="isShowDesc = false"
  79. />
  80. <h2>{{ activeCorpInfo.name }}</h2>
  81. <img
  82. class="splitter"
  83. src="@/assets/images/splitter.png"
  84. alt=""
  85. draggable="false"
  86. >
  87. <img
  88. v-if="bannerImgList.value.length"
  89. class="banner"
  90. :src="`${prefix}/${bannerImgList.value[0].filePath}`"
  91. alt=""
  92. draggable="false"
  93. >
  94. <div
  95. class="txt"
  96. v-html="activeCorpInfo?.description ? activeCorpInfo.description.replace(/\x20\x20/g, '&emsp;&emsp;') : ''"
  97. />
  98. </article>
  99. <!-- element-ui的loading效果从调用到出现有延时,这期间要遮盖住组件 -->
  100. <div
  101. v-show="isShowLoadingMask"
  102. class="loading-mask"
  103. />
  104. </div>
  105. </template>
  106. <script>
  107. import {
  108. computed,
  109. onMounted,
  110. onUnmounted,
  111. watch,
  112. reactive,
  113. ref,
  114. } from 'vue'
  115. export default {
  116. name: 'GeneralView',
  117. components: {
  118. },
  119. setup () {
  120. const prefix = ref(process.env.VUE_APP_API_ORIGIN)
  121. const filterKeyword = ref('')
  122. // 初始化数据列表
  123. const corpListRaw = reactive({ value: null })
  124. const corpListMap = reactive(new Map())
  125. onMounted(async () => {
  126. corpListRaw.value = await api.getGeneralList()
  127. corpListRaw.value.forEach(element => {
  128. let decade = ''
  129. if (element.createDay.substring(0, 2) === '18') {
  130. decade = `十九世纪`
  131. } else if (element.createDay.substring(0, 2) === '19') {
  132. const decadeValue = element.createDay[2]
  133. decade = `上世纪${decadeValue}0年代`
  134. } else {
  135. const decadeValue = element.createDay[2]
  136. decade = `本世纪${decadeValue}0年代`
  137. }
  138. if (!corpListMap.get(decade)) {
  139. corpListMap.set(decade, [])
  140. }
  141. corpListMap.get(decade).push(element)
  142. })
  143. })
  144. // 自动选中第一个条目
  145. function selectFirstItemAuto() {
  146. onClickCorpItem(corpListRaw.value[0].id)
  147. }
  148. window.gMitt.on('RequestApiSuccess-general', selectFirstItemAuto)
  149. onUnmounted(() => {
  150. window.gMitt.off('RequestApiSuccess-general', selectFirstItemAuto)
  151. })
  152. // 搜索框功能
  153. // watch(filterKeyword, utils.debounce(async (vNew) => {
  154. // }, 500, false), {
  155. // immediate: true,
  156. // })
  157. // 被选中的数据
  158. const activeCorpId = ref(null)
  159. const isShowDesc = ref(true)
  160. const activeCorpInfo = computed(() => {
  161. if (corpListRaw.value) {
  162. return corpListRaw.value.find((item) => {
  163. return item.id === activeCorpId.value
  164. })
  165. } else {
  166. return {}
  167. }
  168. })
  169. const bannerImgList = reactive({ value: [] })
  170. watch(activeCorpId, async (vNew) => {
  171. if (vNew) {
  172. const res = await api.getGeneralDetail(vNew)
  173. bannerImgList.value = res.file
  174. } else {
  175. bannerImgList.value = []
  176. }
  177. })
  178. // 无论是网页里还是unity内部点击了企业,都调用这个
  179. function onClickCorpItem(id) {
  180. // 被选中的,既显示位置又显示名字,还要有选中特效。在它之前的,只显示位置。
  181. let isFound = false
  182. for (let index = 0; index < corpListRaw.value.length; index++) {
  183. const element = corpListRaw.value[index]
  184. window.gUnityInst.SendMessage('Panel1', 'HideEnterprise', element.id) //隐藏某个企业
  185. window.gUnityInst.SendMessage('Panel1', 'HideEnterpriseName', element.id) //隐藏某个企业
  186. if (element.id === id) {
  187. isFound = true
  188. window.gUnityInst.SendMessage('Panel1', 'ShowEnterprise', element.id) //显示某个企业
  189. window.gUnityInst.SendMessage('Panel1', 'ShowEnterpriseName', element.id) //显示某个企业
  190. window.gUnityInst.SendMessage('Panel1', 'SetEnterpriseSelected', element.id) //高亮某个企业
  191. } else if (!isFound) {
  192. window.gUnityInst.SendMessage('Panel1', 'ShowEnterprise', element.id) //显示某个企业
  193. } else {
  194. }
  195. }
  196. activeCorpId.value = id
  197. isShowDesc.value = true
  198. const clickedElement = document.querySelector(`#corp-item-${id}`)
  199. if (clickedElement) {
  200. clickedElement.scrollIntoView()
  201. }
  202. // // 只显示选中的
  203. // if (activeCorpId.value === id) {
  204. // activeCorpId.value = ''
  205. // isShowDesc.value = false
  206. // window.gUnityInst.SendMessage('Panel1', 'HideEnterprise', id) //隐藏某个企业
  207. // } else {
  208. // for (let index = 0; index < corpListRaw.value.length; index++) {
  209. // const element = corpListRaw.value[index]
  210. // if (element.id === id) {
  211. // window.gUnityInst.SendMessage('Panel1', 'ShowEnterprise', element.id) //显示某个企业
  212. // window.gUnityInst.SendMessage('Panel1', 'SetEnterpriseSelected', element.id) //高亮某个企业
  213. // } else {
  214. // window.gUnityInst.SendMessage('Panel1', 'SetEnterpriseUnselected', element.id) //高亮某个企业
  215. // window.gUnityInst.SendMessage('Panel1', 'HideEnterprise', element.id) //隐藏某个企业
  216. // }
  217. // }
  218. // activeCorpId.value = id
  219. // isShowDesc.value = true
  220. // // const clickedElement = document.querySelector(`#corp-item-${id}`)
  221. // // if (clickedElement) {
  222. // // clickedElement.scrollIntoView()
  223. // // }
  224. // }
  225. }
  226. window.handleClickEnterprise = onClickCorpItem
  227. // loading mask相关
  228. const isShowLoadingMask = ref(true)
  229. onMounted(() => {
  230. setTimeout(() => {
  231. isShowLoadingMask.value = false
  232. }, 200)
  233. })
  234. return {
  235. activeCorpId,
  236. activeCorpInfo,
  237. bannerImgList,
  238. corpListMap,
  239. filterKeyword,
  240. isShowDesc,
  241. isShowLoadingMask,
  242. onClickCorpItem,
  243. prefix,
  244. }
  245. },
  246. data() {
  247. return {
  248. }
  249. },
  250. computed: {
  251. ...mapState([
  252. ]),
  253. },
  254. mounted() {
  255. },
  256. beforeUnmount() {
  257. },
  258. unmounted() {
  259. },
  260. methods: {
  261. ...mapMutations([
  262. ]),
  263. onSearch() {
  264. console.log('search!')
  265. }
  266. },
  267. }
  268. </script>
  269. <style lang="less" scoped>
  270. .general {
  271. height: 100%;
  272. >.map-mask {
  273. position: absolute;
  274. left: 0;
  275. top: 0;
  276. width: 100%;
  277. height: 100%;
  278. pointer-events: none;
  279. }
  280. >h1 {
  281. position: absolute;
  282. top: 51px;
  283. left: 81px;
  284. max-width: 50%;
  285. overflow: hidden;
  286. white-space: pre;
  287. text-overflow: ellipsis;
  288. font-size: 48px;
  289. font-family: Source Han Sans CN-Heavy, Source Han Sans CN;
  290. font-weight: 800;
  291. color: #FFFFFF;
  292. padding-top: 20px;
  293. padding-bottom: 20px;
  294. border-top: 1px solid rgba(217, 217, 217, 0.2);
  295. border-bottom: 1px solid rgba(217, 217, 217, 0.2);
  296. }
  297. >form {
  298. position: absolute;
  299. top: 196px;
  300. left: 81px;
  301. display: flex;
  302. align-items: center;
  303. >input {
  304. background: rgba(255,255,255,0.1);
  305. border-radius: 3px 3px 3px 3px;
  306. border: 1px solid rgba(255, 255, 255, 0.5);
  307. width: 220px;
  308. height: 40px;
  309. padding-left: 13px;
  310. padding-right: 13px;
  311. font-size: 16px;
  312. font-family: Source Han Sans CN-Light, Source Han Sans CN;
  313. font-weight: 400;
  314. color: #FFFFFF;
  315. &:focus {
  316. border: 1px solid rgba(255, 255, 255, 1);
  317. }
  318. &::placeholder {
  319. font-size: 16px;
  320. font-family: Source Han Sans CN-Light, Source Han Sans CN;
  321. font-weight: 400;
  322. color: rgba(255, 255, 255, 0.5);
  323. }
  324. }
  325. >button {
  326. margin-left: 8px;
  327. width: 40px;
  328. height: 40px;
  329. background: rgba(255,255,255,0.3);
  330. border-radius: 3px 3px 3px 3px;
  331. opacity: 1;
  332. border: 1px solid #FFFFFF;
  333. &:hover {
  334. background: rgba(255,255,255,0.5);
  335. }
  336. >img {
  337. width: 100%;
  338. height: 100%;
  339. }
  340. }
  341. }
  342. >ul {
  343. position: absolute;
  344. top: 272px;
  345. left: 81px;
  346. max-height: calc(100% - 305px);
  347. overflow: auto;
  348. user-select: none;
  349. >li {
  350. display: block;
  351. color: #fff;
  352. >h2 {
  353. width: 323px;
  354. height: 47px;
  355. background: linear-gradient(92deg, rgba(176,161,121,0) 0%, rgba(176,161,121,0.3) 50%, rgba(176,161,121,0) 100%);
  356. // border-radius: 3px;
  357. font-size: 16px;
  358. font-family: Source Han Sans CN-Bold, Source Han Sans CN;
  359. font-weight: bold;
  360. color: #FFFFFF;
  361. text-shadow: 0px 0px 5px #FFD15B;
  362. display: flex;
  363. justify-content: center;
  364. align-items: center;
  365. margin-bottom: 17px;
  366. >span {
  367. margin-left: 13px;
  368. margin-right: 13px;
  369. }
  370. >img {
  371. width: 60px;
  372. height: 15px;
  373. }
  374. }
  375. >.corp-item {
  376. position: relative;
  377. width: 363px;
  378. height: 50px;
  379. background: linear-gradient(90deg, rgba(58, 69, 79, 0.5) 0%, rgba(22,28,33,0) 100%);
  380. // background: linear-gradient(90deg, #3A454F 0%, rgba(22,28,33,0) 100%);
  381. backdrop-filter: blur(3px);
  382. border-radius: 3px 3px 3px 3px;
  383. opacity: 1;
  384. border: 1px solid;
  385. border-right: none;
  386. border-image: linear-gradient(98deg, rgba(78, 96, 112, 1), rgba(78, 96, 112, 0)) 1 1;
  387. padding-left: 72px;
  388. display: flex;
  389. flex-direction: column;
  390. justify-content: space-around;
  391. align-items: flex-start;
  392. margin-bottom: 24px;
  393. cursor: pointer;
  394. >.item-icon {
  395. position: absolute;
  396. border-radius: 50%;
  397. left: 35px;
  398. top: 50%;
  399. transform: translateY(-50%);
  400. width: 8px;
  401. height: 8px;
  402. background: #9AA4AB;
  403. z-index: 2;
  404. box-shadow: 0px 0px 12px 0px #6D9DC6, 0px 0px 8px 0px #6D9DC6;
  405. }
  406. >.verticle-line {
  407. position: absolute;
  408. top: -1px;
  409. left: 38px;
  410. width: 2px;
  411. height: 75px;
  412. background: #B0A179 50%;
  413. z-index: 1;
  414. }
  415. &:first-of-type {
  416. >.verticle-line {
  417. top: 50%;
  418. }
  419. }
  420. &:last-of-type {
  421. >.verticle-line {
  422. height: 25px;
  423. }
  424. }
  425. &:first-of-type:last-of-type {
  426. >.verticle-line {
  427. display: none;
  428. }
  429. }
  430. >span.corp-name {
  431. display: block;
  432. font-size: 16px;
  433. font-family: Source Han Sans CN-Bold, Source Han Sans CN;
  434. font-weight: bold;
  435. color: #FFFFFF;
  436. overflow: hidden;
  437. white-space: pre;
  438. text-overflow: ellipsis;
  439. opacity: 0.6;
  440. }
  441. &.active {
  442. >span.corp-name {
  443. font-size: 20px;
  444. font-family: Source Han Sans CN-Bold, Source Han Sans CN;
  445. text-shadow: 0px 0px 16px #BD9D48;
  446. opacity: initial;
  447. }
  448. }
  449. >span.corp-time {
  450. display: block;
  451. font-size: 16px;
  452. font-family: Source Han Sans CN-Light, Source Han Sans CN;
  453. font-weight: 400;
  454. color: #FFFFFF;
  455. opacity: 0.5;
  456. }
  457. &:hover {
  458. background: linear-gradient(90deg, #B0A179 0%, rgba(255,209,91,0) 100%);
  459. border-image: linear-gradient(98deg, rgba(176, 161, 121, 1), rgba(176, 161, 121, 0)) 1 1;
  460. }
  461. &.active {
  462. background: linear-gradient(90deg, #B0A179 0%, rgba(255,209,91,0) 100%);
  463. border-image: linear-gradient(98deg, rgba(176, 161, 121, 1), rgba(176, 161, 121, 0)) 1 1;
  464. >.item-icon {
  465. background: #FFFFFF;
  466. box-shadow: 0px 0px 12px 0px #FFD15B, 0px 0px 8px 0px #FFD15B, 0px 0px 10px 0px #FFD15B, 0px 0px 5px 0px #FFD15B;
  467. }
  468. }
  469. }
  470. }
  471. &::-webkit-scrollbar { background: transparent; width: 4px; } /*宽度是对垂直滚动条而言,高度是对水平滚动条而言*/
  472. &::-webkit-scrollbar-thumb {
  473. background: transparent;
  474. border-radius: 2px;
  475. }
  476. &:hover {
  477. &::-webkit-scrollbar-thumb {
  478. background: rgba(220, 231, 240, 0.2);
  479. }
  480. }
  481. }
  482. >article {
  483. position: absolute;
  484. top: 74px;
  485. right: 102px;
  486. width: 653px;
  487. height: calc(100% - 74px - 50px);
  488. max-height: 740px;
  489. backdrop-filter: blur(10px);
  490. background-image: url(@/assets/images/general-article-bg.png);
  491. background-size: 100% auto;
  492. background-repeat: no-repeat;
  493. background-position: left top;
  494. padding: 32px 50px 50px 50px;
  495. display: flex;
  496. flex-direction: column;
  497. @media only screen and (max-width: 1700px) {
  498. right: 0;
  499. }
  500. >button.close {
  501. position: absolute;
  502. top: 30px;
  503. right: 50px;
  504. width: 32px;
  505. height: 32px;
  506. background-image: url(@/assets/images/icon-close.png);
  507. background-size: cover;
  508. background-repeat: no-repeat;
  509. background-position: center center;
  510. }
  511. >h2 {
  512. flex: 0 0 auto;
  513. font-size: 24px;
  514. font-family: Source Han Sans CN-Bold, Source Han Sans CN;
  515. font-weight: bold;
  516. color: #FFFFFF;
  517. margin-bottom: 21px;
  518. }
  519. >img.splitter {
  520. flex: 0 0 auto;
  521. width: 100%;
  522. margin-bottom: 37px;
  523. }
  524. >img.banner {
  525. flex: 0 0 auto;
  526. width: 100%;
  527. height: 34.8%;
  528. object-fit: contain;
  529. margin-bottom: 20px;
  530. }
  531. >.txt {
  532. flex: 1 0 1px;
  533. font-size: 20px;
  534. font-family: Source Han Sans CN-Light, Source Han Sans CN;
  535. font-weight: 400;
  536. color: rgba(255, 255, 255, 0.8);
  537. line-height: 1.5;
  538. overflow: auto;
  539. padding-right: 10px;
  540. margin-right: -10px;
  541. white-space: pre-wrap;
  542. // text-indent: 2em;
  543. &::-webkit-scrollbar { background: transparent; width: 4px; } /*宽度是对垂直滚动条而言,高度是对水平滚动条而言*/
  544. &::-webkit-scrollbar-thumb {
  545. background: rgba(220, 231, 240, 0.2);
  546. border-radius: 2px;
  547. }
  548. }
  549. }
  550. .loading-mask {
  551. position: absolute;
  552. left: 0;
  553. top: 0;
  554. width: 100%;
  555. height: 100%;
  556. background: black;
  557. }
  558. }
  559. .mobile {
  560. .general {
  561. height: 100%;
  562. >.map-mask {
  563. position: absolute;
  564. left: 0;
  565. top: 0;
  566. width: 100%;
  567. height: 100%;
  568. pointer-events: none;
  569. }
  570. >h1 {
  571. position: absolute;
  572. top: calc(51 / 1080 * 83vh);
  573. left: calc(81 / 1080 * 83vh);
  574. max-width: 50%;
  575. overflow: hidden;
  576. white-space: pre;
  577. text-overflow: ellipsis;
  578. font-size: calc(48 / 1080 * 83vh);
  579. font-family: Source Han Sans CN-Heavy, Source Han Sans CN;
  580. font-weight: 800;
  581. color: #FFFFFF;
  582. padding-top: calc(20 / 1080 * 83vh);
  583. padding-bottom: calc(20 / 1080 * 83vh);
  584. border-top: 1px solid rgba(217, 217, 217, 0.2);
  585. border-bottom: 1px solid rgba(217, 217, 217, 0.2);
  586. }
  587. >form {
  588. position: absolute;
  589. top: calc(196 / 1080 * 110vh);
  590. left: calc(81 / 1080 * 110vh);
  591. display: flex;
  592. align-items: center;
  593. >input {
  594. background: rgba(255,255,255,0.1);
  595. border-radius: calc(3 / 1080 * 110vh);
  596. border: 1px solid rgba(255, 255, 255, 0.5);
  597. width: calc(220 / 1080 * 110vh);
  598. height: calc(40 / 1080 * 110vh);
  599. padding-left: calc(13 / 1080 * 110vh);
  600. padding-right: calc(13 / 1080 * 110vh);
  601. font-size: calc(16 / 1080 * 110vh);
  602. font-family: Source Han Sans CN-Light, Source Han Sans CN;
  603. font-weight: 400;
  604. color: #FFFFFF;
  605. &:focus {
  606. border: 1px solid rgba(255, 255, 255, 1);
  607. }
  608. &::placeholder {
  609. font-size: calc(16 / 1080 * 110vh);
  610. font-family: Source Han Sans CN-Light, Source Han Sans CN;
  611. font-weight: 400;
  612. color: rgba(255, 255, 255, 0.5);
  613. }
  614. }
  615. >button {
  616. margin-left: calc(8 / 1080 * 110vh);
  617. width: calc(40 / 1080 * 110vh);
  618. height: calc(40 / 1080 * 110vh);
  619. background: rgba(255,255,255,0.3);
  620. border-radius: 3px 3px 3px 3px;
  621. opacity: 1;
  622. border: 1px solid #FFFFFF;
  623. &:hover {
  624. background: rgba(255,255,255,0.5);
  625. }
  626. >img {
  627. width: 100%;
  628. height: 100%;
  629. }
  630. }
  631. }
  632. >ul {
  633. position: absolute;
  634. top: calc(272 / 1080 * 110vh);
  635. left: calc(81 / 1080 * 110vh);
  636. max-height: 50vh;
  637. overflow: auto;
  638. user-select: none;
  639. >li {
  640. display: block;
  641. color: #fff;
  642. >h2 {
  643. width: calc(323 / 1080 * 110vh);
  644. height: calc(47 / 1080 * 110vh);
  645. background: linear-gradient(92deg, rgba(176,161,121,0) 0%, rgba(176,161,121,0.3) 50%, rgba(176,161,121,0) 100%);
  646. // border-radius: 3px;
  647. font-size: calc(16 / 1080 * 110vh);
  648. font-family: Source Han Sans CN-Bold, Source Han Sans CN;
  649. font-weight: bold;
  650. color: #FFFFFF;
  651. text-shadow: 0px 0px 5px #FFD15B;
  652. display: flex;
  653. justify-content: center;
  654. align-items: center;
  655. margin-bottom: calc(17 / 1080 * 110vh);
  656. >span {
  657. margin-left: calc(13 / 1080 * 110vh);
  658. margin-right: calc(13 / 1080 * 110vh);
  659. }
  660. >img {
  661. width: calc(60 / 1080 * 110vh);
  662. height: calc(15 / 1080 * 110vh);
  663. }
  664. }
  665. >.corp-item {
  666. position: relative;
  667. width: calc(363 / 1080 * 110vh);
  668. height: calc(50 / 1080 * 110vh);
  669. background: linear-gradient(90deg, rgba(58, 69, 79, 0.5) 0%, rgba(22,28,33,0) 100%);
  670. // background: linear-gradient(90deg, #3A454F 0%, rgba(22,28,33,0) 100%);
  671. backdrop-filter: blur(3px);
  672. border-radius: 3px 3px 3px 3px;
  673. opacity: 1;
  674. border: 1px solid;
  675. border-right: none;
  676. border-image: linear-gradient(98deg, rgba(78, 96, 112, 1), rgba(78, 96, 112, 0)) 1 1;
  677. padding-left: calc(72 / 1080 * 110vh);
  678. display: flex;
  679. flex-direction: column;
  680. justify-content: space-around;
  681. align-items: flex-start;
  682. margin-bottom: calc(24 / 1080 * 110vh);
  683. cursor: pointer;
  684. >.item-icon {
  685. position: absolute;
  686. border-radius: 50%;
  687. left: calc(35 / 1080 * 110vh);
  688. top: 50%;
  689. transform: translateY(-50%);
  690. width: calc(8 / 1080 * 110vh);
  691. height: calc(8 / 1080 * 110vh);
  692. background: #9AA4AB;
  693. z-index: 2;
  694. box-shadow: 0px 0px 12px 0px #6D9DC6, 0px 0px 8px 0px #6D9DC6;
  695. }
  696. >.verticle-line {
  697. position: absolute;
  698. top: -1px;
  699. left: calc(38 / 1080 * 110vh);
  700. width: calc(2 / 1080 * 110vh);
  701. height: calc(75 / 1080 * 110vh);
  702. background: #B0A179 50%;
  703. z-index: 1;
  704. }
  705. &:first-of-type {
  706. >.verticle-line {
  707. top: 50%;
  708. }
  709. }
  710. &:last-of-type {
  711. >.verticle-line {
  712. height: calc(25 / 1080 * 110vh);
  713. }
  714. }
  715. &:first-of-type:last-of-type {
  716. >.verticle-line {
  717. display: none;
  718. }
  719. }
  720. >span.corp-name {
  721. display: block;
  722. font-size: calc(16 / 1080 * 110vh);
  723. font-family: Source Han Sans CN-Bold, Source Han Sans CN;
  724. font-weight: bold;
  725. color: #FFFFFF;
  726. overflow: hidden;
  727. white-space: pre;
  728. text-overflow: ellipsis;
  729. opacity: 0.6;
  730. }
  731. &.active {
  732. >span.corp-name {
  733. font-size: calc(20 / 1080 * 110vh);
  734. font-family: Source Han Sans CN-Bold, Source Han Sans CN;
  735. text-shadow: 0px 0px calc(16 / 1080 * 110vh) #BD9D48;
  736. opacity: initial;
  737. }
  738. }
  739. >span.corp-time {
  740. display: block;
  741. font-size: calc(16 / 1080 * 110vh);
  742. font-family: Source Han Sans CN-Light, Source Han Sans CN;
  743. font-weight: 400;
  744. color: #FFFFFF;
  745. opacity: 0.5;
  746. }
  747. &:hover {
  748. background: linear-gradient(90deg, #B0A179 0%, rgba(255,209,91,0) 100%);
  749. border-image: linear-gradient(98deg, rgba(176, 161, 121, 1), rgba(176, 161, 121, 0)) 1 1;
  750. }
  751. &.active {
  752. background: linear-gradient(90deg, #B0A179 0%, rgba(255,209,91,0) 100%);
  753. border-image: linear-gradient(98deg, rgba(176, 161, 121, 1), rgba(176, 161, 121, 0)) 1 1;
  754. >.item-icon {
  755. background: #FFFFFF;
  756. box-shadow: 0px 0px calc(12 / 1080 * 110vh) 0px #FFD15B, 0px 0px calc(8 / 1080 * 110vh) 0px #FFD15B, 0px 0px calc(10 / 1080 * 83vh) 0px #FFD15B, 0px 0px calc(5 / 1080 * 83vh) 0px #FFD15B;
  757. }
  758. }
  759. }
  760. }
  761. &::-webkit-scrollbar { background: transparent; width: calc(4 / 1080 * 110vh); } /*宽度是对垂直滚动条而言,高度是对水平滚动条而言*/
  762. &::-webkit-scrollbar-thumb {
  763. background: transparent;
  764. border-radius: 2px;
  765. }
  766. &:hover {
  767. &::-webkit-scrollbar-thumb {
  768. background: rgba(220, 231, 240, 0.2);
  769. }
  770. }
  771. }
  772. >article {
  773. position: absolute;
  774. top: calc(74 / 1080 * 83vh);
  775. right: calc(102 / 1080 * 83vh);
  776. width: calc(653 / 1080 * 83vh);
  777. height: 55vh;
  778. backdrop-filter: blur(10px);
  779. background-image: url(@/assets/images/general-article-bg.png);
  780. background-size: 100% auto;
  781. background-repeat: no-repeat;
  782. background-position: left top;
  783. padding: calc(32 / 1080 * 83vh) calc(50 / 1080 * 83vh) calc(50 / 1080 * 83vh) calc(50 / 1080 * 83vh);
  784. display: flex;
  785. flex-direction: column;
  786. @media only screen and (max-width: 1700px) {
  787. right: 0;
  788. }
  789. >button.close {
  790. position: absolute;
  791. top: calc(30 / 1080 * 83vh);
  792. right: calc(50 / 1080 * 83vh);
  793. width: calc(32 / 1080 * 83vh);
  794. height: calc(32 / 1080 * 83vh);
  795. background-image: url(@/assets/images/icon-close.png);
  796. background-size: cover;
  797. background-repeat: no-repeat;
  798. background-position: center center;
  799. }
  800. >h2 {
  801. flex: 0 0 auto;
  802. font-size: calc(24 / 1080 * 83vh);
  803. font-family: Source Han Sans CN-Bold, Source Han Sans CN;
  804. font-weight: bold;
  805. color: #FFFFFF;
  806. margin-bottom: calc(21 / 1080 * 83vh);
  807. }
  808. >img.splitter {
  809. flex: 0 0 auto;
  810. width: 100%;
  811. margin-bottom: calc(37 / 1080 * 83vh);
  812. }
  813. >img.banner {
  814. flex: 0 0 auto;
  815. width: 100%;
  816. height: 34.8%;
  817. object-fit: contain;
  818. margin-bottom: calc(20 / 1080 * 83vh);
  819. }
  820. >.txt {
  821. flex: 1 0 1px;
  822. font-size: calc(20 / 1080 * 83vh);
  823. font-family: Source Han Sans CN-Light, Source Han Sans CN;
  824. font-weight: 400;
  825. color: rgba(255, 255, 255, 0.8);
  826. line-height: 1.5;
  827. overflow: auto;
  828. padding-right: calc(10 / 1080 * 83vh);
  829. margin-right: -calc(10 / 1080 * 83vh);
  830. white-space: pre-wrap;
  831. // text-indent: 2em;
  832. &::-webkit-scrollbar { background: transparent; width: calc(4 / 1080 * 83vh); } /*宽度是对垂直滚动条而言,高度是对水平滚动条而言*/
  833. &::-webkit-scrollbar-thumb {
  834. background: rgba(220, 231, 240, 0.2);
  835. border-radius: 2px;
  836. }
  837. }
  838. }
  839. .loading-mask {
  840. position: absolute;
  841. left: 0;
  842. top: 0;
  843. width: 100%;
  844. height: 100%;
  845. background: black;
  846. }
  847. }
  848. }
  849. </style>