123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296 |
- <template>
- <div class="general">
- <img
- class="map-mask"
- src="@/assets/images/mask-general-map.png"
- alt=""
- draggable="false"
- >
- <h1 :title="activeCorpInfo?.name || '上海市工业博物馆'">
- {{ activeCorpInfo?.name || '上海市工业博物馆' }}
- </h1>
- <form @submit.prevent="onSearch">
- <input
- v-model="filterKeyword"
- type="text"
- placeholder="请输入企业名称"
- >
- <button type="submit">
- <img
- class=""
- src="@/assets/images/icon_search.png"
- alt=""
- draggable="false"
- >
- </button>
- </form>
- <ul>
- <li
- v-for="(decade) in corpListMap.keys()"
- :key="decade"
- >
- <h2>
- <img
- class=""
- src="@/assets/images/decade-decorator-left.png"
- alt=""
- draggable="false"
- >
- <span>{{ decade }}</span>
- <img
- class=""
- src="@/assets/images/decade-decorator-right.png"
- alt=""
- draggable="false"
- >
- </h2>
- <div
- v-for="(corpItem) in corpListMap.get(decade)"
- :id="`corp-item-${corpItem.id}`"
- :key="corpItem.id"
- class="corp-item"
- :class="{
- active: activeCorpId === corpItem.id
- }"
- @click="onClickCorpItem(corpItem.id)"
- >
- <div class="item-icon" />
- <div class="verticle-line" />
- <span
- class="corp-name"
- :title="corpItem.name"
- >
- {{ corpItem.name }}
- </span>
- <span class="corp-time">
- {{ corpItem.createDay }}
- </span>
- </div>
- </li>
- </ul>
- <article v-if="activeCorpInfo && isShowDesc">
- <button
- class="close"
- @click="isShowDesc = false"
- />
- <h2 :title="activeCorpInfo.name">
- {{ activeCorpInfo.name + '111' }}
- </h2>
- <img
- class="splitter"
- src="@/assets/images/splitter.png"
- alt=""
- draggable="false"
- >
- <!-- 邵根修改1-大盒子包裹起来 -->
- <div class="G1MainBox">
- <!-- 类型 -->
- <div
- v-if="G4ResList.length"
- class="G1MainBox1"
- >
- <div class="G1MainBoxTit">
- 类型
- </div>
- <div class="G1MainBoxTabBox">
- <div
- v-for="item in G4ResList"
- :key="item.id"
- class="G1MainBoxTab"
- @click="$router.push(`/metaverse?id=${item.id}`)"
- >
- {{ item.name }}
- </div>
- </div>
- </div>
- <!-- 简介 -->
- <div class="G1MainBox2">
- <div class="G1MainBoxTit">
- 简介
- </div>
- <div
- v-if="bannerImgList.value.length"
- class="swiper-root"
- >
- <div class="swiper-button-prev" />
- <div class="swiper-button-next" />
- <div class="swiper-wrapper">
- <img
- v-for="(item, index) in bannerImgList.value"
- :key="index"
- class="banner swiper-slide"
- :src="`${prefix}/${item.filePath}`"
- alt=""
- draggable="false"
- >
- </div>
- </div>
- <div
- class="txt"
- v-html="activeCorpInfo?.description ? activeCorpInfo.description.replace(/\x20\x20/g, '  ') : ''"
- />
- </div>
- <!-- 人物 -->
- <div
- v-if="G4RenList.length"
- class="G1MainBox3"
- >
- <div class="G1MainBoxTit">
- 人物
- </div>
- <!-- G4RenList -->
- <div
- v-for="item in G4RenList"
- :key="item.id"
- class="G1RenBox"
- >
- <img
- v-if="item.thumb"
- :src="`${prefix}/${item.thumb}`"
- alt=""
- >
- <img
- v-else
- :src="require('@/assets/images/imgErr.jpg')"
- alt=""
- >
- <div class="G1RenBoxTxt">
- <h3>{{ item.name }}</h3>
- <p>  {{ item.description }}</p>
- </div>
- </div>
- </div>
- </div>
- </article>
- <!-- element-ui的loading效果从调用到出现有延时,这期间要遮盖住组件 -->
- <div
- v-show="isShowLoadingMask"
- class="loading-mask"
- />
- </div>
- </template>
- <script>
- import {
- computed,
- onMounted,
- onUnmounted,
- watch,
- reactive,
- ref,
- nextTick,
- } from 'vue'
- import Swiper from 'swiper/bundle'
- import 'swiper/css/bundle'
- export default {
- name: 'GeneralView',
- components: {
- },
- setup() {
- const prefix = ref(process.env.VUE_APP_API_ORIGIN)
- const filterKeyword = ref('')
- // 初始化数据列表
- const corpListRaw = reactive({ value: null })
- const corpListMap = reactive(new Map())
- onMounted(async () => {
- corpListRaw.value = await api.getGeneralList()
- corpListRaw.value.forEach(element => {
- let decade = ''
- if (element.createDay.substring(0, 2) === '18') {
- decade = `十九世纪`
- } else if (element.createDay.substring(0, 2) === '19') {
- const decadeValue = element.createDay[2]
- decade = `上世纪${decadeValue}0年代`
- } else {
- const decadeValue = element.createDay[2]
- decade = `本世纪${decadeValue}0年代`
- }
- if (!corpListMap.get(decade)) {
- corpListMap.set(decade, [])
- }
- corpListMap.get(decade).push(element)
- })
- })
- // 自动选中第一个条目
- function selectFirstItemAuto() {
- onClickCorpItem(corpListRaw.value[0].id)
- }
- window.gMitt.on('RequestApiSuccess-general', selectFirstItemAuto)
- onUnmounted(() => {
- window.gMitt.off('RequestApiSuccess-general', selectFirstItemAuto)
- })
- // 搜索框功能
- watch(filterKeyword, utils.debounce(async (vNew) => {
- // 可能此前已经选中了某个企业,所以在更新列表前先清空选中状态
- for (let index = 0; index < corpListRaw.value.length; index++) {
- const element = corpListRaw.value[index]
- window.gUnityInst.SendMessage('Panel1', 'HideEnterprise', element.id) //隐藏某个企业
- window.gUnityInst.SendMessage('Panel1', 'HideEnterpriseName', element.id) //隐藏某个企业名称
- }
- isShowDesc.value = false
- activeCorpId.value = null
- corpListRaw.value = await api.getGeneralList({
- searchKey: vNew,
- })
- corpListMap.clear()
- corpListRaw.value.forEach(element => {
- let decade = ''
- if (element.createDay.substring(0, 2) === '18') {
- decade = `十九世纪`
- } else if (element.createDay.substring(0, 2) === '19') {
- const decadeValue = element.createDay[2]
- decade = `上世纪${decadeValue}0年代`
- } else {
- const decadeValue = element.createDay[2]
- decade = `本世纪${decadeValue}0年代`
- }
- if (!corpListMap.get(decade)) {
- corpListMap.set(decade, [])
- }
- corpListMap.get(decade).push(element)
- })
- }, 500, false), {
- immediate: true,
- })
- /**
- * swiper 相关
- */
- let swiper = null
- const activeSwiperItemIndex = ref(0)
- function initSwiper() {
- swiper = new Swiper('.swiper-root', {
- // pagination: {
- // el: '.swiper-pagination',
- // },
- // Navigation arrows
- navigation: {
- nextEl: '.swiper-button-next',
- prevEl: '.swiper-button-prev',
- },
- on: {
- afterInit: function (e) {
- activeSwiperItemIndex.value = e.activeIndex
- },
- slideChange: function (e) {
- activeSwiperItemIndex.value = e.activeIndex
- }
- }
- })
- }
- // 被选中的数据
- const activeCorpId = ref(null)
- const isShowDesc = ref(true)
- const activeCorpInfo = computed(() => {
- if (corpListRaw.value) {
- return corpListRaw.value.find((item) => {
- return item.id === activeCorpId.value
- })
- } else {
- return {}
- }
- })
- const bannerImgList = reactive({ value: [] })
- const G4ResList = ref([])
- // 人物列表
- const G4RenList = ref([])
- // 无论是网页里还是unity内部点击了企业,都调用这个
- function onClickCorpItem(id) {
- console.log('pppppppppp', id)
- // 被选中的,既显示位置又显示名字,还要有选中特效。在它之前的,只显示位置。
- let isFound = false
- for (let index = 0; index < corpListRaw.value.length; index++) {
- const element = corpListRaw.value[index]
- window.gUnityInst.SendMessage('Panel1', 'HideEnterprise', element.id) //隐藏某个企业
- window.gUnityInst.SendMessage('Panel1', 'HideEnterpriseName', element.id) //隐藏某个企业名称
- if (element.id === id) {
- isFound = true
- window.gUnityInst.SendMessage('Panel1', 'ShowEnterprise', element.id) //显示某个企业
- window.gUnityInst.SendMessage('Panel1', 'ShowEnterpriseName', element.id) //显示某个企业名称
- window.gUnityInst.SendMessage('Panel1', 'SetEnterpriseSelected', element.id) //高亮某个企业
- } else if (!isFound) {
- window.gUnityInst.SendMessage('Panel1', 'ShowEnterprise', element.id) //显示某个企业
- } else {
- }
- }
- // scroll into view
- const clickedElement = document.querySelector(`#corp-item-${id}`)
- if (clickedElement) {
- clickedElement.scrollIntoView()
- }
- // 显示详情界面
- activeCorpId.value = id
- isShowDesc.value = true
- // 详情界面图片
- if (activeCorpId.value) {
- api.getGeneralDetail(activeCorpId.value).then((res) => {
- // 回到顶部
- const scroolDom = document.querySelector('.G1MainBox')
- if (scroolDom) scroolDom.scrollTop = 0
- // 获取类型相关列表
- G4RenList.value = res.person
- // 获取 类型相关id
- let acIds = res.entity.mateIds
- if (acIds) {
- acIds = acIds.split(',')
- //[2,7,8]
- G4ResList.value = window.G4AllList.filter(v => acIds.includes(v.id + ''))
- } else G4ResList.value = []
- bannerImgList.value = res.file
- if (swiper) {
- swiper.destroy()
- }
- if (bannerImgList.value.length) {
- nextTick(() => {
- initSwiper()
- })
- }
- })
- } else {
- bannerImgList.value = []
- }
- }
- window.handleClickEnterprise = onClickCorpItem
- // loading mask相关
- const isShowLoadingMask = ref(true)
- onMounted(() => {
- setTimeout(() => {
- isShowLoadingMask.value = false
- }, 200)
- })
- // 从源宇宙跳到 总览
- onMounted(async () => {
- const url = window.location.href
- if (url.includes('id=')) {
- const id = url.split('id=')[1]
- // console.log('ppppppppppppppppp', id)
- setTimeout(() => {
- onClickCorpItem(Number(id))
- }, 1000)
- }
- })
- return {
- activeCorpId,
- activeCorpInfo,
- bannerImgList,
- corpListMap,
- filterKeyword,
- isShowDesc,
- isShowLoadingMask,
- onClickCorpItem,
- prefix,
- G4ResList,
- G4RenList
- }
- },
- data() {
- return {
- }
- },
- computed: {
- ...mapState([
- ]),
- },
- mounted() {
- },
- beforeUnmount() {
- },
- unmounted() {
- },
- methods: {
- ...mapMutations([
- ]),
- onSearch() {
- console.log('search!')
- }
- },
- }
- </script>
- <style lang="less" scoped>
- .general {
- height: 100%;
- >.map-mask {
- position: absolute;
- left: 0;
- top: 0;
- width: 100%;
- height: 100%;
- pointer-events: none;
- }
- >h1 {
- position: absolute;
- top: 51px;
- left: 81px;
- max-width: 50%;
- overflow: hidden;
- white-space: pre;
- text-overflow: ellipsis;
- font-size: 48px;
- font-family: Source Han Sans CN-Heavy, Source Han Sans CN;
- font-weight: 800;
- color: #FFFFFF;
- padding-top: 20px;
- padding-bottom: 20px;
- border-top: 1px solid rgba(217, 217, 217, 0.2);
- border-bottom: 1px solid rgba(217, 217, 217, 0.2);
- }
- >form {
- position: absolute;
- top: 196px;
- left: 81px;
- display: flex;
- align-items: center;
- >input {
- background: rgba(255, 255, 255, 0.1);
- border-radius: 3px 3px 3px 3px;
- border: 1px solid rgba(255, 255, 255, 0.5);
- width: 220px;
- height: 40px;
- padding-left: 13px;
- padding-right: 13px;
- font-size: 16px;
- font-family: Source Han Sans CN-Light, Source Han Sans CN;
- font-weight: 400;
- color: #FFFFFF;
- &:focus {
- border: 1px solid rgba(255, 255, 255, 1);
- }
- &::placeholder {
- font-size: 16px;
- font-family: Source Han Sans CN-Light, Source Han Sans CN;
- font-weight: 400;
- color: rgba(255, 255, 255, 0.5);
- }
- }
- >button {
- margin-left: 8px;
- width: 40px;
- height: 40px;
- background: rgba(255, 255, 255, 0.3);
- border-radius: 3px 3px 3px 3px;
- opacity: 1;
- border: 1px solid #FFFFFF;
- &:hover {
- background: rgba(255, 255, 255, 0.5);
- }
- >img {
- width: 100%;
- height: 100%;
- }
- }
- }
- >ul {
- position: absolute;
- top: 272px;
- left: 81px;
- max-height: calc(100% - 305px);
- overflow: auto;
- user-select: none;
- >li {
- display: block;
- color: #fff;
- >h2 {
- width: 323px;
- height: 47px;
- background: linear-gradient(92deg, rgba(176, 161, 121, 0) 0%, rgba(176, 161, 121, 0.3) 50%, rgba(176, 161, 121, 0) 100%);
- // border-radius: 3px;
- font-size: 16px;
- font-family: Source Han Sans CN-Bold, Source Han Sans CN;
- font-weight: bold;
- color: #FFFFFF;
- text-shadow: 0px 0px 5px #FFD15B;
- display: flex;
- justify-content: center;
- align-items: center;
- margin-bottom: 17px;
- >span {
- margin-left: 13px;
- margin-right: 13px;
- }
- >img {
- width: 60px;
- height: 15px;
- }
- }
- >.corp-item {
- position: relative;
- width: 363px;
- height: 50px;
- background: linear-gradient(90deg, rgba(58, 69, 79, 0.5) 0%, rgba(22, 28, 33, 0) 100%);
- // background: linear-gradient(90deg, #3A454F 0%, rgba(22,28,33,0) 100%);
- backdrop-filter: blur(3px);
- border-radius: 3px 3px 3px 3px;
- opacity: 1;
- border: 1px solid;
- border-right: none;
- border-image: linear-gradient(98deg, rgba(78, 96, 112, 1), rgba(78, 96, 112, 0)) 1 1;
- padding-left: 72px;
- display: flex;
- flex-direction: column;
- justify-content: space-around;
- align-items: flex-start;
- margin-bottom: 24px;
- cursor: pointer;
- >.item-icon {
- position: absolute;
- border-radius: 50%;
- left: 35px;
- top: 50%;
- transform: translateY(-50%);
- width: 8px;
- height: 8px;
- background: #9AA4AB;
- z-index: 2;
- box-shadow: 0px 0px 12px 0px #6D9DC6, 0px 0px 8px 0px #6D9DC6;
- }
- >.verticle-line {
- position: absolute;
- top: -1px;
- left: 38px;
- width: 2px;
- height: 75px;
- background: #B0A179 50%;
- z-index: 1;
- }
- &:first-of-type {
- >.verticle-line {
- top: 50%;
- }
- }
- &:last-of-type {
- >.verticle-line {
- height: 25px;
- }
- }
- &:first-of-type:last-of-type {
- >.verticle-line {
- display: none;
- }
- }
- >span.corp-name {
- display: block;
- font-size: 16px;
- font-family: Source Han Sans CN-Bold, Source Han Sans CN;
- font-weight: bold;
- color: #FFFFFF;
- overflow: hidden;
- white-space: pre;
- text-overflow: ellipsis;
- opacity: 0.6;
- padding-right: 4px;
- width: 100%;
- }
- &.active {
- >span.corp-name {
- font-size: 20px;
- font-family: Source Han Sans CN-Bold, Source Han Sans CN;
- text-shadow: 0px 0px 16px #BD9D48;
- opacity: initial;
- }
- }
- >span.corp-time {
- display: block;
- font-size: 16px;
- font-family: Source Han Sans CN-Light, Source Han Sans CN;
- font-weight: 400;
- color: #FFFFFF;
- opacity: 0.5;
- }
- &:hover {
- background: linear-gradient(90deg, #B0A179 0%, rgba(255, 209, 91, 0) 100%);
- border-image: linear-gradient(98deg, rgba(176, 161, 121, 1), rgba(176, 161, 121, 0)) 1 1;
- }
- &.active {
- background: linear-gradient(90deg, #B0A179 0%, rgba(255, 209, 91, 0) 100%);
- border-image: linear-gradient(98deg, rgba(176, 161, 121, 1), rgba(176, 161, 121, 0)) 1 1;
- >.item-icon {
- background: #FFFFFF;
- box-shadow: 0px 0px 12px 0px #FFD15B, 0px 0px 8px 0px #FFD15B, 0px 0px 10px 0px #FFD15B, 0px 0px 5px 0px #FFD15B;
- }
- }
- }
- }
- &::-webkit-scrollbar {
- background: transparent;
- width: 4px;
- height: 0;
- }
- /*宽度是对垂直滚动条而言,高度是对水平滚动条而言*/
- &::-webkit-scrollbar-thumb {
- background: transparent;
- border-radius: 2px;
- }
- &:hover {
- &::-webkit-scrollbar-thumb {
- background: rgba(220, 231, 240, 0.2);
- }
- }
- }
- >article {
- position: absolute;
- top: 74px;
- right: 102px;
- width: 653px;
- height: calc(100% - 74px - 50px);
- max-height: 740px;
- backdrop-filter: blur(10px);
- background-image: url(@/assets/images/general-article-bg.png);
- background-size: 100% auto;
- background-repeat: no-repeat;
- background-position: left top;
- padding: 32px 50px 50px 50px;
- display: flex;
- flex-direction: column;
- @media only screen and (max-width: 1700px) {
- right: 0;
- }
- >button.close {
- position: absolute;
- top: 30px;
- right: 50px;
- width: 32px;
- height: 32px;
- background-image: url(@/assets/images/icon-close.png);
- background-size: cover;
- background-repeat: no-repeat;
- background-position: center center;
- }
- >h2 {
- flex: 0 0 auto;
- font-size: 24px;
- font-family: Source Han Sans CN-Bold, Source Han Sans CN;
- font-weight: bold;
- color: #FFFFFF;
- margin-bottom: 21px;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 10;
- overflow: hidden;
- margin-right: calc(50 / 1080 * 83vh);
- }
- >img.splitter {
- flex: 0 0 auto;
- width: 100%;
- margin-bottom: 37px;
- }
- // 邵根-样式1
- .G1MainBox {
- width: 100%;
- height: 100%;
- padding-right: 10px;
- overflow-y: auto;
- overflow-x: hidden;
- &::-webkit-scrollbar {
- background: transparent;
- width: 4px;
- }
- /*宽度是对垂直滚动条而言,高度是对水平滚动条而言*/
- &::-webkit-scrollbar-thumb {
- background: rgba(220, 231, 240, 0.2);
- border-radius: 2px;
- }
- &>div {
- width: 100%;
- .G1MainBoxTabBox {
- display: flex;
- flex-wrap: wrap;
- margin-top: 14px 0;
- .G1MainBoxTab {
- font-size: 14px;
- margin-right: 10px;
- border: 1px solid #F3CB60;
- padding: 6px 8px;
- border-radius: 2px;
- color: #F3CB60;
- cursor: pointer;
- margin-bottom: 10px;
- }
- }
- .G1MainBoxTit {
- margin-top: 10px;
- height: 46px;
- line-height: 46px;
- color: #fff;
- font-size: 22px;
- font-weight: 700;
- }
- }
- .G1MainBox2 {
- .swiper-root {
- flex: 0 0 auto;
- width: 100%;
- height: 34.8%;
- margin-bottom: 20px;
- overflow: hidden;
- position: relative;
- .swiper-button-prev {
- left: 0;
- width: 40px;
- height: 40px;
- background-image: url(@/assets/images/arrow-left-2.png);
- background-repeat: no-repeat;
- background-size: contain;
- &::after {
- content: '';
- }
- }
- .swiper-button-next {
- right: 0;
- width: 40px;
- height: 40px;
- background-image: url(@/assets/images/arrow-right-2.png);
- background-repeat: no-repeat;
- background-size: contain;
- &::after {
- content: '';
- }
- }
- .swiper-wrapper {
- width: 100%;
- height: 100%;
- img.banner {
- width: calc(100% - 40px * 2 - 5px * 2);
- height: 100%;
- max-height: 220px;
- object-fit: contain;
- }
- }
- }
- >.txt {
- flex: 1 0 1px;
- font-size: 20px;
- font-family: Source Han Sans CN-Light, Source Han Sans CN;
- font-weight: 400;
- color: rgba(255, 255, 255, 0.8);
- line-height: 1.5;
- overflow: auto;
- padding-right: 10px;
- margin-right: -10px;
- white-space: pre-wrap;
- // text-indent: 2em;
- }
- }
- .G1MainBox3 {
- .G1RenBox {
- margin-top: 20px;
- align-items: flex-start;
- display: flex;
- &>img {
- width: 105px;
- object-fit: contain;
- }
- .G1RenBoxTxt {
- width: calc(100% - 125px);
- margin-left: 20px;
- color: #fff;
- &>h3 {
- font-size: 20px;
- font-weight: 700;
- margin-bottom: 15px;
- }
- &>p {
- font-size: 20px;
- font-family: Source Han Sans CN-Light, Source Han Sans CN;
- font-weight: 400;
- color: rgba(255, 255, 255, 0.8);
- line-height: 1.5;
- white-space: pre-wrap;
- }
- }
- }
- }
- }
- }
- .loading-mask {
- position: absolute;
- left: 0;
- top: 0;
- width: 100%;
- height: 100%;
- background: black;
- }
- }
- .mobile {
- .general {
- height: 100%;
- >.map-mask {
- position: absolute;
- left: 0;
- top: 0;
- width: 100%;
- height: 100%;
- pointer-events: none;
- }
- >h1 {
- position: absolute;
- top: calc(51 / 1080 * 83vh);
- left: calc(81 / 1080 * 83vh);
- max-width: 50%;
- overflow: hidden;
- white-space: pre;
- text-overflow: ellipsis;
- font-size: calc(48 / 1080 * 83vh);
- font-family: Source Han Sans CN-Heavy, Source Han Sans CN;
- font-weight: 800;
- color: #FFFFFF;
- padding-top: calc(20 / 1080 * 83vh);
- padding-bottom: calc(20 / 1080 * 83vh);
- border-top: 1px solid rgba(217, 217, 217, 0.2);
- border-bottom: 1px solid rgba(217, 217, 217, 0.2);
- }
- >form {
- position: absolute;
- top: calc(196 / 1080 * 110vh);
- left: calc(81 / 1080 * 110vh);
- display: flex;
- align-items: center;
- >input {
- background: rgba(255, 255, 255, 0.1);
- border-radius: calc(3 / 1080 * 110vh);
- border: 1px solid rgba(255, 255, 255, 0.5);
- width: calc(220 / 1080 * 110vh);
- height: calc(40 / 1080 * 110vh);
- padding-left: calc(13 / 1080 * 110vh);
- padding-right: calc(13 / 1080 * 110vh);
- font-size: calc(16 / 1080 * 110vh);
- font-family: Source Han Sans CN-Light, Source Han Sans CN;
- font-weight: 400;
- color: #FFFFFF;
- &:focus {
- border: 1px solid rgba(255, 255, 255, 1);
- }
- &::placeholder {
- font-size: calc(16 / 1080 * 110vh);
- font-family: Source Han Sans CN-Light, Source Han Sans CN;
- font-weight: 400;
- color: rgba(255, 255, 255, 0.5);
- }
- }
- >button {
- margin-left: calc(8 / 1080 * 110vh);
- width: calc(40 / 1080 * 110vh);
- height: calc(40 / 1080 * 110vh);
- background: rgba(255, 255, 255, 0.3);
- border-radius: 3px 3px 3px 3px;
- opacity: 1;
- border: 1px solid #FFFFFF;
- &:hover {
- background: rgba(255, 255, 255, 0.5);
- }
- >img {
- width: 100%;
- height: 100%;
- }
- }
- }
- >ul {
- position: absolute;
- top: calc(272 / 1080 * 110vh);
- left: calc(81 / 1080 * 110vh);
- max-height: 50vh;
- overflow: auto;
- user-select: none;
- >li {
- display: block;
- color: #fff;
- >h2 {
- width: calc(323 / 1080 * 110vh);
- height: calc(47 / 1080 * 110vh);
- background: linear-gradient(92deg, rgba(176, 161, 121, 0) 0%, rgba(176, 161, 121, 0.3) 50%, rgba(176, 161, 121, 0) 100%);
- // border-radius: 3px;
- font-size: calc(16 / 1080 * 110vh);
- font-family: Source Han Sans CN-Bold, Source Han Sans CN;
- font-weight: bold;
- color: #FFFFFF;
- text-shadow: 0px 0px 5px #FFD15B;
- display: flex;
- justify-content: center;
- align-items: center;
- margin-bottom: calc(17 / 1080 * 110vh);
- >span {
- margin-left: calc(13 / 1080 * 110vh);
- margin-right: calc(13 / 1080 * 110vh);
- }
- >img {
- width: calc(60 / 1080 * 110vh);
- height: calc(15 / 1080 * 110vh);
- }
- }
- >.corp-item {
- position: relative;
- width: calc(363 / 1080 * 110vh);
- height: calc(50 / 1080 * 110vh);
- background: linear-gradient(90deg, rgba(58, 69, 79, 0.5) 0%, rgba(22, 28, 33, 0) 100%);
- // background: linear-gradient(90deg, #3A454F 0%, rgba(22,28,33,0) 100%);
- backdrop-filter: blur(3px);
- border-radius: 3px 3px 3px 3px;
- opacity: 1;
- border: 1px solid;
- border-right: none;
- border-image: linear-gradient(98deg, rgba(78, 96, 112, 1), rgba(78, 96, 112, 0)) 1 1;
- padding-left: calc(72 / 1080 * 110vh);
- display: flex;
- flex-direction: column;
- justify-content: space-around;
- align-items: flex-start;
- margin-bottom: calc(24 / 1080 * 110vh);
- cursor: pointer;
- >.item-icon {
- position: absolute;
- border-radius: 50%;
- left: calc(35 / 1080 * 110vh);
- top: 50%;
- transform: translateY(-50%);
- width: calc(8 / 1080 * 110vh);
- height: calc(8 / 1080 * 110vh);
- background: #9AA4AB;
- z-index: 2;
- box-shadow: 0px 0px 12px 0px #6D9DC6, 0px 0px 8px 0px #6D9DC6;
- }
- >.verticle-line {
- position: absolute;
- top: -1px;
- left: calc(38 / 1080 * 110vh);
- width: calc(2 / 1080 * 110vh);
- height: calc(75 / 1080 * 110vh);
- background: #B0A179 50%;
- z-index: 1;
- }
- &:first-of-type {
- >.verticle-line {
- top: 50%;
- }
- }
- &:last-of-type {
- >.verticle-line {
- height: calc(25 / 1080 * 110vh);
- }
- }
- &:first-of-type:last-of-type {
- >.verticle-line {
- display: none;
- }
- }
- >span.corp-name {
- display: block;
- font-size: calc(16 / 1080 * 110vh);
- font-family: Source Han Sans CN-Bold, Source Han Sans CN;
- font-weight: bold;
- color: #FFFFFF;
- overflow: hidden;
- white-space: pre;
- text-overflow: ellipsis;
- opacity: 0.6;
- padding-right: 4px;
- width: 100%;
- }
- &.active {
- >span.corp-name {
- font-size: calc(20 / 1080 * 110vh);
- font-family: Source Han Sans CN-Bold, Source Han Sans CN;
- text-shadow: 0px 0px calc(16 / 1080 * 110vh) #BD9D48;
- opacity: initial;
- }
- }
- >span.corp-time {
- display: block;
- font-size: calc(16 / 1080 * 110vh);
- font-family: Source Han Sans CN-Light, Source Han Sans CN;
- font-weight: 400;
- color: #FFFFFF;
- opacity: 0.5;
- }
- &:hover {
- background: linear-gradient(90deg, #B0A179 0%, rgba(255, 209, 91, 0) 100%);
- border-image: linear-gradient(98deg, rgba(176, 161, 121, 1), rgba(176, 161, 121, 0)) 1 1;
- }
- &.active {
- background: linear-gradient(90deg, #B0A179 0%, rgba(255, 209, 91, 0) 100%);
- border-image: linear-gradient(98deg, rgba(176, 161, 121, 1), rgba(176, 161, 121, 0)) 1 1;
- >.item-icon {
- background: #FFFFFF;
- 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;
- }
- }
- }
- }
- &::-webkit-scrollbar {
- background: transparent;
- width: calc(4 / 1080 * 110vh);
- height: 0;
- }
- /*宽度是对垂直滚动条而言,高度是对水平滚动条而言*/
- &::-webkit-scrollbar-thumb {
- background: transparent;
- border-radius: 2px;
- }
- &:hover {
- &::-webkit-scrollbar-thumb {
- background: rgba(220, 231, 240, 0.2);
- }
- }
- }
- >article {
- position: absolute;
- top: calc(74 / 1080 * 83vh);
- right: calc(102 / 1080 * 83vh);
- width: calc(653 / 1080 * 83vh);
- height: 55vh;
- backdrop-filter: blur(10px);
- background-image: url(@/assets/images/general-article-bg.png);
- background-size: 100% auto;
- background-repeat: no-repeat;
- background-position: left top;
- padding: calc(32 / 1080 * 83vh) calc(50 / 1080 * 83vh) calc(50 / 1080 * 83vh) calc(50 / 1080 * 83vh);
- display: flex;
- flex-direction: column;
- @media only screen and (max-width: 1700px) {
- right: 0;
- }
- >button.close {
- position: absolute;
- top: calc(30 / 1080 * 83vh);
- right: calc(50 / 1080 * 83vh);
- width: calc(32 / 1080 * 83vh);
- height: calc(32 / 1080 * 83vh);
- background-image: url(@/assets/images/icon-close.png);
- background-size: cover;
- background-repeat: no-repeat;
- background-position: center center;
- }
- >h2 {
- flex: 0 0 auto;
- font-size: calc(24 / 1080 * 83vh);
- font-family: Source Han Sans CN-Bold, Source Han Sans CN;
- font-weight: bold;
- color: #FFFFFF;
- margin-bottom: calc(21 / 1080 * 83vh);
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 10;
- overflow: hidden;
- margin-right: calc(50 / 1080 * 83vh);
- }
- >img.splitter {
- flex: 0 0 auto;
- width: 100%;
- margin-bottom: calc(37 / 1080 * 83vh);
- }
- >.swiper-root {
- flex: 0 0 auto;
- width: 100%;
- height: 34.8%;
- margin-bottom: calc(20 / 1080 * 83vh);
- overflow: hidden;
- position: relative;
- >.swiper-button-prev {
- left: 0;
- width: 20px;
- height: 20px;
- background-image: url(@/assets/images/arrow-left-2.png);
- background-repeat: no-repeat;
- background-size: contain;
- &::after {
- content: '';
- }
- }
- >.swiper-button-next {
- right: 0;
- width: 20px;
- height: 20px;
- background-image: url(@/assets/images/arrow-right-2.png);
- background-repeat: no-repeat;
- background-size: contain;
- &::after {
- content: '';
- }
- }
- >.swiper-wrapper {
- width: 100%;
- height: 100%;
- >img.banner {
- width: calc(100% - 20px * 2 - 5px * 2);
- height: 100%;
- object-fit: contain;
- }
- }
- }
- >.txt {
- flex: 1 0 1px;
- font-size: calc(20 / 1080 * 83vh);
- font-family: Source Han Sans CN-Light, Source Han Sans CN;
- font-weight: 400;
- color: rgba(255, 255, 255, 0.8);
- line-height: 1.5;
- overflow: auto;
- padding-right: calc(10 / 1080 * 83vh);
- margin-right: -calc(10 / 1080 * 83vh);
- white-space: pre-wrap;
- // text-indent: 2em;
- &::-webkit-scrollbar {
- background: transparent;
- width: calc(4 / 1080 * 83vh);
- }
- /*宽度是对垂直滚动条而言,高度是对水平滚动条而言*/
- &::-webkit-scrollbar-thumb {
- background: rgba(220, 231, 240, 0.2);
- border-radius: 2px;
- }
- }
- }
- .loading-mask {
- position: absolute;
- left: 0;
- top: 0;
- width: 100%;
- height: 100%;
- background: black;
- }
- }
- }
- </style>
|