General.vue 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326
  1. <template>
  2. <div class="general">
  3. <img
  4. class="map-mask"
  5. src="@/assets/images/mask-general-map.png"
  6. alt=""
  7. draggable="false"
  8. >
  9. <h1 :title="activeCorpInfo?.name || '上海市工业博物馆'">
  10. {{ activeCorpInfo?.name || '上海市工业博物馆' }}
  11. </h1>
  12. <form @submit.prevent="onSearch">
  13. <input
  14. v-model="filterKeyword"
  15. type="text"
  16. placeholder="请输入企业名称"
  17. >
  18. <button type="submit">
  19. <img
  20. class=""
  21. src="@/assets/images/icon_search.png"
  22. alt=""
  23. draggable="false"
  24. >
  25. </button>
  26. </form>
  27. <ul>
  28. <li
  29. v-for="(decade) in corpListMap.keys()"
  30. :key="decade"
  31. >
  32. <h2>
  33. <img
  34. class=""
  35. src="@/assets/images/decade-decorator-left.png"
  36. alt=""
  37. draggable="false"
  38. >
  39. <span>{{ decade }}</span>
  40. <img
  41. class=""
  42. src="@/assets/images/decade-decorator-right.png"
  43. alt=""
  44. draggable="false"
  45. >
  46. </h2>
  47. <div
  48. v-for="(corpItem) in corpListMap.get(decade)"
  49. :id="`corp-item-${corpItem.id}`"
  50. :key="corpItem.id"
  51. class="corp-item"
  52. :class="{
  53. active: activeCorpId === corpItem.id
  54. }"
  55. @click="onClickCorpItem(corpItem.id)"
  56. >
  57. <div class="item-icon" />
  58. <div class="verticle-line" />
  59. <span
  60. class="corp-name"
  61. :title="corpItem.name"
  62. >
  63. {{ corpItem.name }}
  64. </span>
  65. <span class="corp-time">
  66. {{ corpItem.createDay }}
  67. </span>
  68. </div>
  69. </li>
  70. </ul>
  71. <article v-if="activeCorpInfo && isShowDesc">
  72. <button
  73. class="close"
  74. @click="isShowDesc = false"
  75. />
  76. <h2 :title="activeCorpInfo.name">
  77. {{ activeCorpInfo.name }}
  78. </h2>
  79. <img
  80. class="splitter"
  81. src="@/assets/images/splitter.png"
  82. alt=""
  83. draggable="false"
  84. >
  85. <!-- 邵根修改1-大盒子包裹起来 -->
  86. <div class="G1MainBox">
  87. <!-- 类型 -->
  88. <div
  89. v-if="G4ResList.length"
  90. class="G1MainBox1"
  91. >
  92. <div class="G1MainBoxTit">
  93. 类型
  94. </div>
  95. <div class="G1MainBoxTabBox">
  96. <div
  97. v-for="item in G4ResList"
  98. :key="item.id"
  99. class="G1MainBoxTab"
  100. @click="$router.push(`/metaverse?id=${item.id}`)"
  101. >
  102. {{ item.name }}
  103. </div>
  104. </div>
  105. </div>
  106. <!-- 简介 -->
  107. <div class="G1MainBox2">
  108. <div class="G1MainBoxTit">
  109. 简介
  110. </div>
  111. <div
  112. v-if="bannerImgList.value.length"
  113. class="swiper-root"
  114. >
  115. <div class="swiper-button-prev" />
  116. <div class="swiper-button-next" />
  117. <div class="swiper-wrapper">
  118. <img
  119. v-for="(item, index) in bannerImgList.value"
  120. :key="index"
  121. class="banner swiper-slide"
  122. :src="`${prefix}/${item.filePath}`"
  123. alt=""
  124. draggable="false"
  125. >
  126. </div>
  127. </div>
  128. <div
  129. class="txt"
  130. v-html="activeCorpInfo?.description ? activeCorpInfo.description.replace(/\x20\x20/g, '&emsp;&emsp;') : ''"
  131. />
  132. </div>
  133. <!-- 人物 -->
  134. <div
  135. v-if="G4RenList.length"
  136. class="G1MainBox3"
  137. >
  138. <div class="G1MainBoxTit">
  139. 人物
  140. </div>
  141. <!-- G4RenList -->
  142. <div class="G1RenBoxMain">
  143. <div
  144. v-for="item in G4RenList"
  145. :key="item.id"
  146. class="G1RenBox"
  147. >
  148. {{ item.name }}
  149. </div>
  150. </div>
  151. </div>
  152. </div>
  153. </article>
  154. <!-- element-ui的loading效果从调用到出现有延时,这期间要遮盖住组件 -->
  155. <div
  156. v-show="isShowLoadingMask"
  157. class="loading-mask"
  158. />
  159. </div>
  160. </template>
  161. <script>
  162. import {
  163. computed,
  164. onMounted,
  165. onUnmounted,
  166. watch,
  167. reactive,
  168. ref,
  169. nextTick,
  170. } from 'vue'
  171. import Swiper from 'swiper/bundle'
  172. import 'swiper/css/bundle'
  173. export default {
  174. name: 'GeneralView',
  175. components: {
  176. },
  177. setup() {
  178. const prefix = ref(process.env.VUE_APP_API_ORIGIN)
  179. const filterKeyword = ref('')
  180. // 初始化数据列表
  181. const corpListRaw = reactive({ value: null })
  182. const corpListMap = reactive(new Map())
  183. onMounted(async () => {
  184. corpListRaw.value = await api.getGeneralList()
  185. corpListRaw.value.forEach(element => {
  186. let decade = ''
  187. if (element.createDay.substring(0, 2) === '18') {
  188. decade = `十九世纪`
  189. } else if (element.createDay.substring(0, 2) === '19') {
  190. const decadeValue = element.createDay[2]
  191. decade = `上世纪${decadeValue}0年代`
  192. } else {
  193. const decadeValue = element.createDay[2]
  194. decade = `本世纪${decadeValue}0年代`
  195. }
  196. if (!corpListMap.get(decade)) {
  197. corpListMap.set(decade, [])
  198. }
  199. corpListMap.get(decade).push(element)
  200. })
  201. })
  202. // 第一次进入时,选中第一个条目
  203. function selectFirstItemAuto() {
  204. onClickCorpItem(corpListRaw.value[0].id)
  205. }
  206. window.gMitt.on('RequestApiSuccess-general', selectFirstItemAuto)
  207. onUnmounted(() => {
  208. window.gMitt.off('RequestApiSuccess-general', selectFirstItemAuto)
  209. })
  210. // 搜索框功能
  211. watch(filterKeyword, utils.debounce(async (vNew) => {
  212. // 可能此前已经选中了某个企业,所以在更新列表前先清空选中状态
  213. for (let index = 0; index < corpListRaw.value.length; index++) {
  214. const element = corpListRaw.value[index]
  215. window.gUnityInst.SendMessage('Panel1', 'HideEnterprise', element.id) //隐藏某个企业
  216. window.gUnityInst.SendMessage('Panel1', 'HideEnterpriseName', element.id) //隐藏某个企业名称
  217. }
  218. isShowDesc.value = false
  219. activeCorpId.value = null
  220. corpListRaw.value = await api.getGeneralList({
  221. searchKey: vNew,
  222. })
  223. corpListMap.clear()
  224. corpListRaw.value.forEach(element => {
  225. let decade = ''
  226. if (element.createDay.substring(0, 2) === '18') {
  227. decade = `十九世纪`
  228. } else if (element.createDay.substring(0, 2) === '19') {
  229. const decadeValue = element.createDay[2]
  230. decade = `上世纪${decadeValue}0年代`
  231. } else {
  232. const decadeValue = element.createDay[2]
  233. decade = `本世纪${decadeValue}0年代`
  234. }
  235. if (!corpListMap.get(decade)) {
  236. corpListMap.set(decade, [])
  237. }
  238. corpListMap.get(decade).push(element)
  239. })
  240. }, 500, false), {
  241. // immediate: true,
  242. })
  243. /**
  244. * swiper 相关
  245. */
  246. let swiper = null
  247. const activeSwiperItemIndex = ref(0)
  248. function initSwiper() {
  249. swiper = new Swiper('.swiper-root', {
  250. // pagination: {
  251. // el: '.swiper-pagination',
  252. // },
  253. // Navigation arrows
  254. navigation: {
  255. nextEl: '.swiper-button-next',
  256. prevEl: '.swiper-button-prev',
  257. },
  258. on: {
  259. afterInit: function (e) {
  260. activeSwiperItemIndex.value = e.activeIndex
  261. },
  262. slideChange: function (e) {
  263. activeSwiperItemIndex.value = e.activeIndex
  264. }
  265. }
  266. })
  267. }
  268. // 被选中的数据
  269. const activeCorpId = ref(null)
  270. const isShowDesc = ref(true)
  271. const activeCorpInfo = computed(() => {
  272. if (corpListRaw.value) {
  273. return corpListRaw.value.find((item) => {
  274. return item.id === activeCorpId.value
  275. })
  276. } else {
  277. return {}
  278. }
  279. })
  280. const bannerImgList = reactive({ value: [] })
  281. const G4ResList = ref([])
  282. // 人物列表
  283. const G4RenList = ref([])
  284. // 无论是网页里还是unity内部点击了企业,都调用这个
  285. function onClickCorpItem(id) {
  286. console.log('pppppppppp', id)
  287. // 被选中的,既显示位置又显示名字,还要有选中特效。在它之前的,只显示位置。
  288. let isFound = false
  289. for (let index = 0; index < corpListRaw.value.length; index++) {
  290. const element = corpListRaw.value[index]
  291. window.gUnityInst.SendMessage('Panel1', 'HideEnterprise', element.id) //隐藏某个企业
  292. window.gUnityInst.SendMessage('Panel1', 'HideEnterpriseName', element.id) //隐藏某个企业名称
  293. if (element.id === id) {
  294. isFound = true
  295. window.gUnityInst.SendMessage('Panel1', 'ShowEnterprise', element.id) //显示某个企业
  296. window.gUnityInst.SendMessage('Panel1', 'ShowEnterpriseName', element.id) //显示某个企业名称
  297. window.gUnityInst.SendMessage('Panel1', 'SetEnterpriseSelected', element.id) //高亮某个企业
  298. } else if (!isFound) {
  299. window.gUnityInst.SendMessage('Panel1', 'ShowEnterprise', element.id) //显示某个企业
  300. } else {
  301. }
  302. }
  303. // scroll into view
  304. const clickedElement = document.querySelector(`#corp-item-${id}`)
  305. if (clickedElement) {
  306. clickedElement.scrollIntoView()
  307. }
  308. // 显示详情界面
  309. activeCorpId.value = id
  310. isShowDesc.value = true
  311. // 详情界面图片
  312. if (activeCorpId.value) {
  313. api.getGeneralDetail(activeCorpId.value).then((res) => {
  314. // 回到顶部
  315. const scroolDom = document.querySelector('.G1MainBox')
  316. if (scroolDom) scroolDom.scrollTop = 0
  317. // 获取类型相关列表
  318. G4RenList.value = res.person
  319. // 获取 类型相关id
  320. let acIds = res.entity.mateIds
  321. if (acIds) {
  322. acIds = acIds.split(',')
  323. //[2,7,8]
  324. G4ResList.value = window.G4AllList.filter(v => acIds.includes(v.id + ''))
  325. } else G4ResList.value = []
  326. bannerImgList.value = res.file
  327. if (swiper) {
  328. swiper.destroy()
  329. }
  330. if (bannerImgList.value.length) {
  331. nextTick(() => {
  332. initSwiper()
  333. })
  334. }
  335. })
  336. } else {
  337. bannerImgList.value = []
  338. }
  339. }
  340. window.handleClickEnterprise = onClickCorpItem
  341. onUnmounted(() => {
  342. for (let index = 0; index < corpListRaw.value.length; index++) {
  343. const element = corpListRaw.value[index]
  344. window.gUnityInst.SendMessage('Panel1', 'HideEnterprise', element.id) //隐藏某个企业
  345. window.gUnityInst.SendMessage('Panel1', 'HideEnterpriseName', element.id) //隐藏某个企业名称
  346. }
  347. })
  348. // loading mask相关
  349. const isShowLoadingMask = ref(true)
  350. onMounted(() => {
  351. setTimeout(() => {
  352. isShowLoadingMask.value = false
  353. }, 200)
  354. })
  355. // 从元宇宙跳到 总览
  356. onMounted(async () => {
  357. const url = window.location.href
  358. if (url.includes('id=')) {
  359. const id = url.split('id=')[1]
  360. // console.log('ppppppppppppppppp', id)
  361. setTimeout(() => {
  362. onClickCorpItem(Number(id))
  363. }, 500)
  364. }
  365. })
  366. return {
  367. activeCorpId,
  368. activeCorpInfo,
  369. bannerImgList,
  370. corpListMap,
  371. filterKeyword,
  372. isShowDesc,
  373. isShowLoadingMask,
  374. onClickCorpItem,
  375. prefix,
  376. G4ResList,
  377. G4RenList
  378. }
  379. },
  380. data() {
  381. return {
  382. }
  383. },
  384. computed: {
  385. ...mapState([
  386. ]),
  387. },
  388. mounted() {
  389. },
  390. beforeUnmount() {
  391. },
  392. unmounted() {
  393. },
  394. methods: {
  395. ...mapMutations([
  396. ]),
  397. onSearch() {
  398. console.log('search!')
  399. }
  400. },
  401. }
  402. </script>
  403. <style lang="less" scoped>
  404. .general {
  405. height: 100%;
  406. >.map-mask {
  407. position: absolute;
  408. left: 0;
  409. top: 0;
  410. width: 100%;
  411. height: 100%;
  412. pointer-events: none;
  413. }
  414. >h1 {
  415. position: absolute;
  416. top: 51px;
  417. left: 81px;
  418. max-width: 50%;
  419. overflow: hidden;
  420. white-space: pre;
  421. text-overflow: ellipsis;
  422. font-size: 48px;
  423. font-family: Source Han Sans CN-Heavy, Source Han Sans CN;
  424. font-weight: 800;
  425. color: #FFFFFF;
  426. padding-top: 20px;
  427. padding-bottom: 20px;
  428. border-top: 1px solid rgba(217, 217, 217, 0.2);
  429. border-bottom: 1px solid rgba(217, 217, 217, 0.2);
  430. }
  431. >form {
  432. position: absolute;
  433. top: 196px;
  434. left: 81px;
  435. display: flex;
  436. align-items: center;
  437. >input {
  438. background: rgba(255, 255, 255, 0.1);
  439. border-radius: 3px 3px 3px 3px;
  440. border: 1px solid rgba(255, 255, 255, 0.5);
  441. width: 220px;
  442. height: 40px;
  443. padding-left: 13px;
  444. padding-right: 13px;
  445. font-size: 16px;
  446. font-family: Source Han Sans CN-Light, Source Han Sans CN;
  447. font-weight: 400;
  448. color: #FFFFFF;
  449. &:focus {
  450. border: 1px solid rgba(255, 255, 255, 1);
  451. }
  452. &::placeholder {
  453. font-size: 16px;
  454. font-family: Source Han Sans CN-Light, Source Han Sans CN;
  455. font-weight: 400;
  456. color: rgba(255, 255, 255, 0.5);
  457. }
  458. }
  459. >button {
  460. margin-left: 8px;
  461. width: 40px;
  462. height: 40px;
  463. background: rgba(255, 255, 255, 0.3);
  464. border-radius: 3px 3px 3px 3px;
  465. opacity: 1;
  466. border: 1px solid #FFFFFF;
  467. &:hover {
  468. background: rgba(255, 255, 255, 0.5);
  469. }
  470. >img {
  471. width: 100%;
  472. height: 100%;
  473. }
  474. }
  475. }
  476. >ul {
  477. position: absolute;
  478. top: 272px;
  479. left: 81px;
  480. max-height: calc(100% - 305px);
  481. overflow: auto;
  482. user-select: none;
  483. >li {
  484. display: block;
  485. color: #fff;
  486. >h2 {
  487. width: 323px;
  488. height: 47px;
  489. background: linear-gradient(92deg, rgba(176, 161, 121, 0) 0%, rgba(176, 161, 121, 0.3) 50%, rgba(176, 161, 121, 0) 100%);
  490. // border-radius: 3px;
  491. font-size: 16px;
  492. font-family: Source Han Sans CN-Bold, Source Han Sans CN;
  493. font-weight: bold;
  494. color: #FFFFFF;
  495. text-shadow: 0px 0px 5px #FFD15B;
  496. display: flex;
  497. justify-content: center;
  498. align-items: center;
  499. margin-bottom: 17px;
  500. >span {
  501. margin-left: 13px;
  502. margin-right: 13px;
  503. }
  504. >img {
  505. width: 60px;
  506. height: 15px;
  507. }
  508. }
  509. >.corp-item {
  510. position: relative;
  511. width: 363px;
  512. height: 50px;
  513. background: linear-gradient(90deg, rgba(58, 69, 79, 0.5) 0%, rgba(22, 28, 33, 0) 100%);
  514. // background: linear-gradient(90deg, #3A454F 0%, rgba(22,28,33,0) 100%);
  515. backdrop-filter: blur(3px);
  516. border-radius: 3px 3px 3px 3px;
  517. opacity: 1;
  518. border: 1px solid;
  519. border-right: none;
  520. border-image: linear-gradient(98deg, rgba(78, 96, 112, 1), rgba(78, 96, 112, 0)) 1 1;
  521. padding-left: 72px;
  522. display: flex;
  523. flex-direction: column;
  524. justify-content: space-around;
  525. align-items: flex-start;
  526. margin-bottom: 24px;
  527. cursor: pointer;
  528. >.item-icon {
  529. position: absolute;
  530. border-radius: 50%;
  531. left: 35px;
  532. top: 50%;
  533. transform: translateY(-50%);
  534. width: 8px;
  535. height: 8px;
  536. background: #9AA4AB;
  537. z-index: 2;
  538. box-shadow: 0px 0px 12px 0px #6D9DC6, 0px 0px 8px 0px #6D9DC6;
  539. }
  540. >.verticle-line {
  541. position: absolute;
  542. top: -1px;
  543. left: 38px;
  544. width: 2px;
  545. height: 75px;
  546. background: #B0A179 50%;
  547. z-index: 1;
  548. }
  549. &:first-of-type {
  550. >.verticle-line {
  551. top: 50%;
  552. }
  553. }
  554. &:last-of-type {
  555. >.verticle-line {
  556. height: 25px;
  557. }
  558. }
  559. &:first-of-type:last-of-type {
  560. >.verticle-line {
  561. display: none;
  562. }
  563. }
  564. >span.corp-name {
  565. display: block;
  566. font-size: 16px;
  567. font-family: Source Han Sans CN-Bold, Source Han Sans CN;
  568. font-weight: bold;
  569. color: #FFFFFF;
  570. overflow: hidden;
  571. white-space: pre;
  572. text-overflow: ellipsis;
  573. opacity: 0.6;
  574. padding-right: 4px;
  575. width: 100%;
  576. }
  577. &.active {
  578. >span.corp-name {
  579. font-size: 20px;
  580. font-family: Source Han Sans CN-Bold, Source Han Sans CN;
  581. text-shadow: 0px 0px 16px #BD9D48;
  582. opacity: initial;
  583. }
  584. }
  585. >span.corp-time {
  586. display: block;
  587. font-size: 16px;
  588. font-family: Source Han Sans CN-Light, Source Han Sans CN;
  589. font-weight: 400;
  590. color: #FFFFFF;
  591. opacity: 0.5;
  592. }
  593. &:hover {
  594. background: linear-gradient(90deg, #B0A179 0%, rgba(255, 209, 91, 0) 100%);
  595. border-image: linear-gradient(98deg, rgba(176, 161, 121, 1), rgba(176, 161, 121, 0)) 1 1;
  596. }
  597. &.active {
  598. background: linear-gradient(90deg, #B0A179 0%, rgba(255, 209, 91, 0) 100%);
  599. border-image: linear-gradient(98deg, rgba(176, 161, 121, 1), rgba(176, 161, 121, 0)) 1 1;
  600. >.item-icon {
  601. background: #FFFFFF;
  602. box-shadow: 0px 0px 12px 0px #FFD15B, 0px 0px 8px 0px #FFD15B, 0px 0px 10px 0px #FFD15B, 0px 0px 5px 0px #FFD15B;
  603. }
  604. }
  605. }
  606. }
  607. &::-webkit-scrollbar {
  608. background: transparent;
  609. width: 4px;
  610. height: 0;
  611. }
  612. /*宽度是对垂直滚动条而言,高度是对水平滚动条而言*/
  613. &::-webkit-scrollbar-thumb {
  614. background: transparent;
  615. border-radius: 2px;
  616. }
  617. &:hover {
  618. &::-webkit-scrollbar-thumb {
  619. background: rgba(220, 231, 240, 0.2);
  620. }
  621. }
  622. }
  623. >article {
  624. position: absolute;
  625. top: 74px;
  626. right: 102px;
  627. width: 653px;
  628. height: calc(100% - 74px - 50px);
  629. max-height: 740px;
  630. backdrop-filter: blur(10px);
  631. background-image: url(@/assets/images/general-article-bg.png);
  632. background-size: 100% auto;
  633. background-repeat: no-repeat;
  634. background-position: left top;
  635. padding: 32px 50px 50px 50px;
  636. display: flex;
  637. flex-direction: column;
  638. @media only screen and (max-width: 1700px) {
  639. right: 0;
  640. }
  641. >button.close {
  642. position: absolute;
  643. top: 30px;
  644. right: 50px;
  645. width: 32px;
  646. height: 32px;
  647. background-image: url(@/assets/images/icon-close.png);
  648. background-size: cover;
  649. background-repeat: no-repeat;
  650. background-position: center center;
  651. }
  652. >h2 {
  653. flex: 0 0 auto;
  654. font-size: 24px;
  655. font-family: Source Han Sans CN-Bold, Source Han Sans CN;
  656. font-weight: bold;
  657. color: #FFFFFF;
  658. margin-bottom: 21px;
  659. display: -webkit-box;
  660. -webkit-box-orient: vertical;
  661. -webkit-line-clamp: 10;
  662. overflow: hidden;
  663. margin-right: calc(50 / 1080 * 83vh);
  664. }
  665. >img.splitter {
  666. flex: 0 0 auto;
  667. width: 100%;
  668. margin-bottom: 37px;
  669. }
  670. // 邵根-样式1
  671. .G1MainBox {
  672. width: 100%;
  673. height: 100%;
  674. padding-right: 10px;
  675. overflow-y: auto;
  676. overflow-x: hidden;
  677. &::-webkit-scrollbar {
  678. background: transparent;
  679. width: 4px;
  680. }
  681. /*宽度是对垂直滚动条而言,高度是对水平滚动条而言*/
  682. &::-webkit-scrollbar-thumb {
  683. background: rgba(220, 231, 240, 0.2);
  684. border-radius: 2px;
  685. }
  686. &>div {
  687. width: 100%;
  688. .G1MainBoxTabBox {
  689. display: flex;
  690. flex-wrap: wrap;
  691. margin-top: 14px 0;
  692. .G1MainBoxTab {
  693. opacity: .7;
  694. font-size: 14px;
  695. margin-right: 10px;
  696. border: 1px solid #F3CB60;
  697. padding: 6px 8px;
  698. border-radius: 6px;
  699. color: #F3CB60;
  700. cursor: pointer;
  701. margin-bottom: 10px;
  702. }
  703. }
  704. .G1MainBoxTit {
  705. margin-top: 10px;
  706. height: 46px;
  707. line-height: 46px;
  708. color: #fff;
  709. font-size: 22px;
  710. font-weight: 700;
  711. }
  712. }
  713. .G1MainBox2 {
  714. .swiper-root {
  715. flex: 0 0 auto;
  716. width: 100%;
  717. height: 34.8%;
  718. margin-bottom: 20px;
  719. overflow: hidden;
  720. position: relative;
  721. .swiper-button-prev {
  722. left: 0;
  723. width: 40px;
  724. height: 40px;
  725. background-image: url(@/assets/images/arrow-left-2.png);
  726. background-repeat: no-repeat;
  727. background-size: contain;
  728. &::after {
  729. content: '';
  730. }
  731. }
  732. .swiper-button-next {
  733. right: 0;
  734. width: 40px;
  735. height: 40px;
  736. background-image: url(@/assets/images/arrow-right-2.png);
  737. background-repeat: no-repeat;
  738. background-size: contain;
  739. &::after {
  740. content: '';
  741. }
  742. }
  743. .swiper-wrapper {
  744. width: 100%;
  745. height: 100%;
  746. img.banner {
  747. width: calc(100% - 40px * 2 - 5px * 2);
  748. height: 100%;
  749. max-height: 220px;
  750. object-fit: contain;
  751. }
  752. }
  753. }
  754. >.txt {
  755. flex: 1 0 1px;
  756. font-size: 20px;
  757. font-family: Source Han Sans CN-Light, Source Han Sans CN;
  758. font-weight: 400;
  759. color: rgba(255, 255, 255, 0.8);
  760. line-height: 1.5;
  761. overflow: auto;
  762. padding-right: 10px;
  763. margin-right: -10px;
  764. white-space: pre-wrap;
  765. // text-indent: 2em;
  766. }
  767. }
  768. .G1MainBox3 {
  769. color: rgba(255, 255, 255, 0.8);
  770. .G1RenBoxMain{
  771. max-height: 150px;
  772. overflow-y: auto;
  773. &::-webkit-scrollbar {
  774. background: transparent;
  775. width: calc(4 / 1080 * 83vh);
  776. }
  777. /*宽度是对垂直滚动条而言,高度是对水平滚动条而言*/
  778. &::-webkit-scrollbar-thumb {
  779. background: rgba(220, 231, 240, 0.2);
  780. border-radius: 2px;
  781. }
  782. .G1RenBox {
  783. position: relative;
  784. padding-left: 30px;
  785. cursor: pointer;
  786. font-size: 16px;
  787. height: 30px;
  788. line-height: 30px;
  789. &::before {
  790. opacity: .5;
  791. content: '';
  792. position: absolute;
  793. top: 50%;
  794. left: 8px;
  795. transform: translateY(-50%);
  796. width: 10px;
  797. height: 10px;
  798. background-color: #FFE59F;
  799. border-radius: 50%;
  800. }
  801. &::after {
  802. content: '';
  803. opacity: 0;
  804. position: absolute;
  805. top: 50%;
  806. left: 4px;
  807. transform: translateY(-50%);
  808. width: 16px;
  809. height: 16px;
  810. border: 1px dashed #FFE59F;
  811. border-radius: 50%;
  812. }
  813. &:hover {
  814. color: #FFE59F;
  815. &::before {
  816. opacity: 1;
  817. }
  818. &::after {
  819. opacity: 1;
  820. }
  821. }
  822. }
  823. }
  824. }
  825. }
  826. }
  827. .loading-mask {
  828. position: absolute;
  829. left: 0;
  830. top: 0;
  831. width: 100%;
  832. height: 100%;
  833. background: black;
  834. }
  835. }
  836. .mobile {
  837. .general {
  838. height: 100%;
  839. >.map-mask {
  840. position: absolute;
  841. left: 0;
  842. top: 0;
  843. width: 100%;
  844. height: 100%;
  845. pointer-events: none;
  846. }
  847. >h1 {
  848. position: absolute;
  849. top: calc(51 / 1080 * 83vh);
  850. left: calc(81 / 1080 * 83vh);
  851. max-width: 50%;
  852. overflow: hidden;
  853. white-space: pre;
  854. text-overflow: ellipsis;
  855. font-size: calc(48 / 1080 * 83vh);
  856. font-family: Source Han Sans CN-Heavy, Source Han Sans CN;
  857. font-weight: 800;
  858. color: #FFFFFF;
  859. padding-top: calc(20 / 1080 * 83vh);
  860. padding-bottom: calc(20 / 1080 * 83vh);
  861. border-top: 1px solid rgba(217, 217, 217, 0.2);
  862. border-bottom: 1px solid rgba(217, 217, 217, 0.2);
  863. }
  864. >form {
  865. position: absolute;
  866. top: calc(196 / 1080 * 110vh);
  867. left: calc(81 / 1080 * 110vh);
  868. display: flex;
  869. align-items: center;
  870. >input {
  871. background: rgba(255, 255, 255, 0.1);
  872. border-radius: calc(3 / 1080 * 110vh);
  873. border: 1px solid rgba(255, 255, 255, 0.5);
  874. width: calc(220 / 1080 * 110vh);
  875. height: calc(40 / 1080 * 110vh);
  876. padding-left: calc(13 / 1080 * 110vh);
  877. padding-right: calc(13 / 1080 * 110vh);
  878. font-size: calc(16 / 1080 * 110vh);
  879. font-family: Source Han Sans CN-Light, Source Han Sans CN;
  880. font-weight: 400;
  881. color: #FFFFFF;
  882. &:focus {
  883. border: 1px solid rgba(255, 255, 255, 1);
  884. }
  885. &::placeholder {
  886. font-size: calc(16 / 1080 * 110vh);
  887. font-family: Source Han Sans CN-Light, Source Han Sans CN;
  888. font-weight: 400;
  889. color: rgba(255, 255, 255, 0.5);
  890. }
  891. }
  892. >button {
  893. margin-left: calc(8 / 1080 * 110vh);
  894. width: calc(40 / 1080 * 110vh);
  895. height: calc(40 / 1080 * 110vh);
  896. background: rgba(255, 255, 255, 0.3);
  897. border-radius: 3px 3px 3px 3px;
  898. opacity: 1;
  899. border: 1px solid #FFFFFF;
  900. &:hover {
  901. background: rgba(255, 255, 255, 0.5);
  902. }
  903. >img {
  904. width: 100%;
  905. height: 100%;
  906. }
  907. }
  908. }
  909. >ul {
  910. position: absolute;
  911. top: calc(272 / 1080 * 110vh);
  912. left: calc(81 / 1080 * 110vh);
  913. max-height: 50vh;
  914. overflow: auto;
  915. user-select: none;
  916. >li {
  917. display: block;
  918. color: #fff;
  919. >h2 {
  920. width: calc(323 / 1080 * 110vh);
  921. height: calc(47 / 1080 * 110vh);
  922. background: linear-gradient(92deg, rgba(176, 161, 121, 0) 0%, rgba(176, 161, 121, 0.3) 50%, rgba(176, 161, 121, 0) 100%);
  923. // border-radius: 3px;
  924. font-size: calc(16 / 1080 * 110vh);
  925. font-family: Source Han Sans CN-Bold, Source Han Sans CN;
  926. font-weight: bold;
  927. color: #FFFFFF;
  928. text-shadow: 0px 0px 5px #FFD15B;
  929. display: flex;
  930. justify-content: center;
  931. align-items: center;
  932. margin-bottom: calc(17 / 1080 * 110vh);
  933. >span {
  934. margin-left: calc(13 / 1080 * 110vh);
  935. margin-right: calc(13 / 1080 * 110vh);
  936. }
  937. >img {
  938. width: calc(60 / 1080 * 110vh);
  939. height: calc(15 / 1080 * 110vh);
  940. }
  941. }
  942. >.corp-item {
  943. position: relative;
  944. width: calc(363 / 1080 * 110vh);
  945. height: calc(50 / 1080 * 110vh);
  946. background: linear-gradient(90deg, rgba(58, 69, 79, 0.5) 0%, rgba(22, 28, 33, 0) 100%);
  947. // background: linear-gradient(90deg, #3A454F 0%, rgba(22,28,33,0) 100%);
  948. backdrop-filter: blur(3px);
  949. border-radius: 3px 3px 3px 3px;
  950. opacity: 1;
  951. border: 1px solid;
  952. border-right: none;
  953. border-image: linear-gradient(98deg, rgba(78, 96, 112, 1), rgba(78, 96, 112, 0)) 1 1;
  954. padding-left: calc(72 / 1080 * 110vh);
  955. display: flex;
  956. flex-direction: column;
  957. justify-content: space-around;
  958. align-items: flex-start;
  959. margin-bottom: calc(24 / 1080 * 110vh);
  960. cursor: pointer;
  961. >.item-icon {
  962. position: absolute;
  963. border-radius: 50%;
  964. left: calc(35 / 1080 * 110vh);
  965. top: 50%;
  966. transform: translateY(-50%);
  967. width: calc(8 / 1080 * 110vh);
  968. height: calc(8 / 1080 * 110vh);
  969. background: #9AA4AB;
  970. z-index: 2;
  971. box-shadow: 0px 0px 12px 0px #6D9DC6, 0px 0px 8px 0px #6D9DC6;
  972. }
  973. >.verticle-line {
  974. position: absolute;
  975. top: -1px;
  976. left: calc(38 / 1080 * 110vh);
  977. width: calc(2 / 1080 * 110vh);
  978. height: calc(75 / 1080 * 110vh);
  979. background: #B0A179 50%;
  980. z-index: 1;
  981. }
  982. &:first-of-type {
  983. >.verticle-line {
  984. top: 50%;
  985. }
  986. }
  987. &:last-of-type {
  988. >.verticle-line {
  989. height: calc(25 / 1080 * 110vh);
  990. }
  991. }
  992. &:first-of-type:last-of-type {
  993. >.verticle-line {
  994. display: none;
  995. }
  996. }
  997. >span.corp-name {
  998. display: block;
  999. font-size: calc(16 / 1080 * 110vh);
  1000. font-family: Source Han Sans CN-Bold, Source Han Sans CN;
  1001. font-weight: bold;
  1002. color: #FFFFFF;
  1003. overflow: hidden;
  1004. white-space: pre;
  1005. text-overflow: ellipsis;
  1006. opacity: 0.6;
  1007. padding-right: 4px;
  1008. width: 100%;
  1009. }
  1010. &.active {
  1011. >span.corp-name {
  1012. font-size: calc(20 / 1080 * 110vh);
  1013. font-family: Source Han Sans CN-Bold, Source Han Sans CN;
  1014. text-shadow: 0px 0px calc(16 / 1080 * 110vh) #BD9D48;
  1015. opacity: initial;
  1016. }
  1017. }
  1018. >span.corp-time {
  1019. display: block;
  1020. font-size: calc(16 / 1080 * 110vh);
  1021. font-family: Source Han Sans CN-Light, Source Han Sans CN;
  1022. font-weight: 400;
  1023. color: #FFFFFF;
  1024. opacity: 0.5;
  1025. }
  1026. &:hover {
  1027. background: linear-gradient(90deg, #B0A179 0%, rgba(255, 209, 91, 0) 100%);
  1028. border-image: linear-gradient(98deg, rgba(176, 161, 121, 1), rgba(176, 161, 121, 0)) 1 1;
  1029. }
  1030. &.active {
  1031. background: linear-gradient(90deg, #B0A179 0%, rgba(255, 209, 91, 0) 100%);
  1032. border-image: linear-gradient(98deg, rgba(176, 161, 121, 1), rgba(176, 161, 121, 0)) 1 1;
  1033. >.item-icon {
  1034. background: #FFFFFF;
  1035. 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;
  1036. }
  1037. }
  1038. }
  1039. }
  1040. &::-webkit-scrollbar {
  1041. background: transparent;
  1042. width: calc(4 / 1080 * 110vh);
  1043. height: 0;
  1044. }
  1045. /*宽度是对垂直滚动条而言,高度是对水平滚动条而言*/
  1046. &::-webkit-scrollbar-thumb {
  1047. background: transparent;
  1048. border-radius: 2px;
  1049. }
  1050. &:hover {
  1051. &::-webkit-scrollbar-thumb {
  1052. background: rgba(220, 231, 240, 0.2);
  1053. }
  1054. }
  1055. }
  1056. >article {
  1057. position: absolute;
  1058. top: calc(74 / 1080 * 83vh);
  1059. right: calc(102 / 1080 * 83vh);
  1060. width: calc(653 / 1080 * 83vh);
  1061. height: 55vh;
  1062. backdrop-filter: blur(10px);
  1063. background-image: url(@/assets/images/general-article-bg.png);
  1064. background-size: 100% auto;
  1065. background-repeat: no-repeat;
  1066. background-position: left top;
  1067. padding: calc(32 / 1080 * 83vh) calc(50 / 1080 * 83vh) calc(50 / 1080 * 83vh) calc(50 / 1080 * 83vh);
  1068. display: flex;
  1069. flex-direction: column;
  1070. @media only screen and (max-width: 1700px) {
  1071. right: 0;
  1072. }
  1073. >button.close {
  1074. position: absolute;
  1075. top: calc(30 / 1080 * 83vh);
  1076. right: calc(50 / 1080 * 83vh);
  1077. width: calc(32 / 1080 * 83vh);
  1078. height: calc(32 / 1080 * 83vh);
  1079. background-image: url(@/assets/images/icon-close.png);
  1080. background-size: cover;
  1081. background-repeat: no-repeat;
  1082. background-position: center center;
  1083. }
  1084. >h2 {
  1085. flex: 0 0 auto;
  1086. font-size: calc(24 / 1080 * 83vh);
  1087. font-family: Source Han Sans CN-Bold, Source Han Sans CN;
  1088. font-weight: bold;
  1089. color: #FFFFFF;
  1090. margin-bottom: calc(21 / 1080 * 83vh);
  1091. display: -webkit-box;
  1092. -webkit-box-orient: vertical;
  1093. -webkit-line-clamp: 10;
  1094. overflow: hidden;
  1095. margin-right: calc(50 / 1080 * 83vh);
  1096. }
  1097. >img.splitter {
  1098. flex: 0 0 auto;
  1099. width: 100%;
  1100. margin-bottom: calc(37 / 1080 * 83vh);
  1101. }
  1102. >.swiper-root {
  1103. flex: 0 0 auto;
  1104. width: 100%;
  1105. height: 34.8%;
  1106. margin-bottom: calc(20 / 1080 * 83vh);
  1107. overflow: hidden;
  1108. position: relative;
  1109. >.swiper-button-prev {
  1110. left: 0;
  1111. width: 20px;
  1112. height: 20px;
  1113. background-image: url(@/assets/images/arrow-left-2.png);
  1114. background-repeat: no-repeat;
  1115. background-size: contain;
  1116. &::after {
  1117. content: '';
  1118. }
  1119. }
  1120. >.swiper-button-next {
  1121. right: 0;
  1122. width: 20px;
  1123. height: 20px;
  1124. background-image: url(@/assets/images/arrow-right-2.png);
  1125. background-repeat: no-repeat;
  1126. background-size: contain;
  1127. &::after {
  1128. content: '';
  1129. }
  1130. }
  1131. >.swiper-wrapper {
  1132. width: 100%;
  1133. height: 100%;
  1134. >img.banner {
  1135. width: calc(100% - 20px * 2 - 5px * 2);
  1136. height: 100%;
  1137. object-fit: contain;
  1138. }
  1139. }
  1140. }
  1141. >.txt {
  1142. flex: 1 0 1px;
  1143. font-size: calc(20 / 1080 * 83vh);
  1144. font-family: Source Han Sans CN-Light, Source Han Sans CN;
  1145. font-weight: 400;
  1146. color: rgba(255, 255, 255, 0.8);
  1147. line-height: 1.5;
  1148. overflow: auto;
  1149. padding-right: calc(10 / 1080 * 83vh);
  1150. margin-right: -calc(10 / 1080 * 83vh);
  1151. white-space: pre-wrap;
  1152. // text-indent: 2em;
  1153. &::-webkit-scrollbar {
  1154. background: transparent;
  1155. width: calc(4 / 1080 * 83vh);
  1156. }
  1157. /*宽度是对垂直滚动条而言,高度是对水平滚动条而言*/
  1158. &::-webkit-scrollbar-thumb {
  1159. background: rgba(220, 231, 240, 0.2);
  1160. border-radius: 2px;
  1161. }
  1162. }
  1163. }
  1164. .loading-mask {
  1165. position: absolute;
  1166. left: 0;
  1167. top: 0;
  1168. width: 100%;
  1169. height: 100%;
  1170. background: black;
  1171. }
  1172. }
  1173. }
  1174. </style>