SwkkView.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866
  1. <template>
  2. <div
  3. class="skww-view"
  4. >
  5. <div
  6. class="swkk-wrap"
  7. />
  8. <h1 v-if="!$isMobile">
  9. 安徽省纪录小康工程数据库云展馆
  10. </h1>
  11. <menu
  12. :style="{
  13. bottom: isShowTourGuide ? 'calc(183px + 30px)' : '',
  14. }"
  15. >
  16. <button
  17. id="auto-moving"
  18. @click="onClickAutoMoving"
  19. >
  20. <img
  21. v-show="!isAutoMoving"
  22. src="@/assets\images\swkk\zidongmanyou.png"
  23. alt=""
  24. draggable="false"
  25. >
  26. <img
  27. v-show="isAutoMoving"
  28. src="@/assets\images\swkk\zidongmanyou_1.png"
  29. alt=""
  30. draggable="false"
  31. >
  32. <!-- <div>自动漫游</div> -->
  33. </button>
  34. <button
  35. id="tour-guide"
  36. :class="{active: isShowTourGuide}"
  37. @click="onClickChangjingdaolan"
  38. >
  39. <img
  40. src="@/assets\images\swkk\changjingdaolan.png"
  41. alt=""
  42. draggable="false"
  43. >
  44. <!-- <div>场景导览</div> -->
  45. </button>
  46. <button
  47. v-if="!$isMobile"
  48. id="qjmy"
  49. :class="{active: mode === 2}"
  50. @click="onClickQuanjingmanyou"
  51. >
  52. <img
  53. src="@/assets\images\swkk\quanjingmanyou.png"
  54. alt=""
  55. draggable="false"
  56. >
  57. <!-- <div>全景漫游</div> -->
  58. </button>
  59. <button
  60. v-if="!$isMobile"
  61. id="overlook"
  62. :class="{active: mode === 3}"
  63. @click="onClickDingbufushi"
  64. >
  65. <img
  66. src="@/assets\images\swkk\dingbufushi.png"
  67. alt=""
  68. draggable="false"
  69. >
  70. <!-- <div>顶部俯视</div> -->
  71. </button>
  72. <button
  73. v-if="!$isMobile"
  74. id="mini-model"
  75. :class="{active: mode === 4}"
  76. @click="onClickMinimoxing"
  77. >
  78. <img
  79. src="@/assets\images\swkk\minimoxing.png"
  80. alt=""
  81. draggable="false"
  82. >
  83. <!-- <div>迷你模型</div> -->
  84. </button>
  85. <!-- <button
  86. id="hotspot-list"
  87. :class="{active: isShowHotspotList}"
  88. @click="isShowHotspotList = true"
  89. >
  90. <img
  91. v-show="!isShowHotspotList"
  92. src="@/assets\images\swkk\hotspot-list.png"
  93. alt=""
  94. draggable="false"
  95. >
  96. <img
  97. v-show="isShowHotspotList"
  98. src="@/assets\images\swkk\hotspot-list-active.png"
  99. alt=""
  100. draggable="false"
  101. >
  102. <div>热点列表</div>
  103. </button> -->
  104. </menu>
  105. <!-- 右上地图 -->
  106. <div
  107. v-show="!isLoading && mode === 2"
  108. id="mini-map"
  109. class="mini-map"
  110. >
  111. <img
  112. class="mini-map-top"
  113. :src="require(`@/assets/images/swkk/mini-map-${$isMobile ? 'mobile' : 'pc'}.png`)"
  114. alt=""
  115. draggable="false"
  116. >
  117. <div class="selector">
  118. <div
  119. v-if="$isMobile"
  120. class="bottom-bar"
  121. >
  122. <button
  123. class="plain"
  124. @click="onClickDingbufushi"
  125. >
  126. <img
  127. class=""
  128. src="@/assets/images/swkk/dingbufushi-mobile.png"
  129. alt=""
  130. draggable="false"
  131. >
  132. <span>平面</span>
  133. </button>
  134. <button
  135. class="model"
  136. @click="onClickMinimoxing"
  137. >
  138. <img
  139. class=""
  140. src="@/assets/images/swkk/minimoxing-mobile.png"
  141. alt=""
  142. draggable="false"
  143. >
  144. <span>三维</span>
  145. </button>
  146. </div>
  147. </div>
  148. </div>
  149. <!-- 导览栏 -->
  150. <div
  151. v-show="isShowTourGuide"
  152. class="tour-guide-wrap swiper-root"
  153. :style="{
  154. zIndex: $globalConfig.zIndex.swkkGuideBar.self
  155. }"
  156. >
  157. <ul
  158. v-if="tourList.length"
  159. class="tour-guide swiper-wrapper"
  160. >
  161. <li
  162. v-for="(item, index) in tourList"
  163. :key="item.sid"
  164. ref="scene-item"
  165. class="swiper-slide"
  166. :class="{active: curSceneIdx === index}"
  167. @click="changeScene(index)"
  168. >
  169. <img
  170. :src="item.list[0].enter.cover"
  171. alt=""
  172. draggable="false"
  173. >
  174. <div class="mask" />
  175. <div
  176. v-show="isAutoMoving && (curSceneIdx === index)"
  177. class="progress"
  178. :style="{
  179. width: autoMovingProgress + '%',
  180. }"
  181. />
  182. <div class="title">
  183. {{ item.name }}
  184. </div>
  185. </li>
  186. </ul>
  187. </div>
  188. <HotspotDetail
  189. v-if="isShowDetail"
  190. class="hotspot-detail"
  191. :style="{
  192. zIndex: $globalConfig.zIndex.swkkHotspotDetail.self
  193. }"
  194. :hotspot-list="relatedHotspotList"
  195. :scene-code="sceneCode"
  196. @close="isShowDetail = false"
  197. />
  198. <HotspotList
  199. v-if="isShowHotspotList"
  200. class="hotspot-list"
  201. :style="{
  202. zIndex: $globalConfig.zIndex.swkkHotspotList.self
  203. }"
  204. :hotspot-data="baseHotData"
  205. @back="isShowHotspotList = false"
  206. @click-hotspot="onClickHotspot"
  207. />
  208. </div>
  209. </template>
  210. <script>
  211. import HotspotDetail from "@/components/HotspotDetail.vue"
  212. import HotspotList from "@/components/HotspotList.vue"
  213. import Swiper from 'swiper/swiper-bundle.esm.js'
  214. import 'swiper/swiper-bundle.css'
  215. export default {
  216. components: {
  217. HotspotDetail,
  218. HotspotList,
  219. },
  220. data() {
  221. return {
  222. // 四维看看库相关
  223. kankan: null,
  224. tagView: null,
  225. mode: 2,
  226. isLoading: true,
  227. // 楼层
  228. floor: 0,
  229. sceneCode: '',
  230. // 自动巡游相关
  231. canClickAutoMoving: false,
  232. isAutoMoving: false,
  233. isChangingAutoMovingStatus: false,
  234. autoMovingProgress: 0,
  235. // 自动导览与切换场景相关
  236. isShowTourGuide: false,
  237. tourList: [],
  238. isChangingScene: false,
  239. curSceneIdx: null,
  240. // 热点相关
  241. baseHotData: null,
  242. isShowDetail: false,
  243. isShowHotspotList: false,
  244. }
  245. },
  246. computed: {
  247. ...globalMapState([
  248. 'isMuted',
  249. ])
  250. },
  251. watch: {
  252. isMuted: {
  253. handler(vNew) {
  254. if (!vNew) {
  255. this.stopAutoMoving()
  256. }
  257. }
  258. },
  259. isAutoMoving: {
  260. handler(vNew) {
  261. if (vNew) {
  262. this.isShowTourGuide = true
  263. } else {
  264. }
  265. }
  266. },
  267. isShowTourGuide: {
  268. handler(vNew) {
  269. if (vNew) {
  270. this.$msgCenter.publish('tour-guide-show')
  271. } else {
  272. this.$msgCenter.publish('tour-guide-hide')
  273. }
  274. }
  275. }
  276. },
  277. beforeCreate() {
  278. },
  279. beforeMount() {
  280. if (this.$route.query.isMuted === 'false') {
  281. this.setIsMuted(false)
  282. let newHref = location.href.substring(0, location.href.length - 14)
  283. location.href = newHref
  284. } else if (this.$route.query.isMuted === 'true') {
  285. this.setIsMuted(true)
  286. let newHref = location.href.substring(0, location.href.length - 13)
  287. location.href = newHref
  288. }
  289. },
  290. mounted() {
  291. // setTimeout(() => {
  292. // const haveShownSwkkGuide = localStorage.getItem('haveShownSwkkGuide')
  293. // if (!haveShownSwkkGuide) {
  294. // localStorage.setItem('haveShownSwkkGuide', '1')
  295. // this.$root.userGuide.beginGuide([
  296. // {
  297. // selector: '#auto-moving',
  298. // title: '自动漫游',
  299. // content: '自动游览线上场馆',
  300. // },
  301. // {
  302. // selector: '#tour-guide',
  303. // title: '场景导览',
  304. // content: '查看场景内所有镜头点位',
  305. // },
  306. // {
  307. // selector: '#qjmy',
  308. // title: '全景漫游',
  309. // content: '手动自主漫游',
  310. // },
  311. // {
  312. // selector: '#mini-model',
  313. // title: '迷你模型',
  314. // content: '查看场景3D模型',
  315. // },
  316. // {
  317. // selector: '#overlook',
  318. // title: '顶部俯视',
  319. // content: '查看场景平面图',
  320. // },
  321. // {
  322. // selector: '#hotspot-list',
  323. // title: '热点列表',
  324. // content: '查看场景内所有交互热点',
  325. // },
  326. // {
  327. // selector: '#bottom-bar',
  328. // title: '更多',
  329. // content: '可回到首页,关闭/开启声音,点赞和分享等',
  330. // },
  331. // {
  332. // selector: '#mini-map',
  333. // title: '地图',
  334. // content: '可切换楼层,或查看场景3D模型',
  335. // customWidth: '18rem',
  336. // customHeight: '18rem + 4.6rem',
  337. // },
  338. // ])
  339. // }
  340. // }, 500)
  341. this.$msgCenter.publish('show-loading')
  342. let floor = this.$route.query.floor
  343. this.floor = floor
  344. if (floor === "1") this.sceneCode = process.env.VUE_APP_SCENE_CODE_FLOOR_1
  345. else if (floor === "2") this.sceneCode = process.env.VUE_APP_SCENE_CODE_FLOOR_2
  346. console.assert(this.sceneCode, 'no sceneCode!')
  347. let kankan = new KanKan({
  348. dom: ".swkk-wrap",
  349. num: this.sceneCode,
  350. })
  351. kankan.use("MinMap", {
  352. theme: {
  353. camera_fillStyle: "#930909",
  354. },
  355. })
  356. kankan.use("TourPlayer").then((player) => {
  357. player.on("play", ({ partId, frameId }) => {
  358. this.isAutoMoving = true
  359. this.isChangingAutoMovingStatus = false
  360. this.mustMute()
  361. })
  362. player.on("pause", ({ partId, frameId }) => {
  363. this.isAutoMoving = false
  364. this.isChangingAutoMovingStatus = false
  365. this.cancelMustMute()
  366. })
  367. player.on("end", async () => {
  368. this.isAutoMoving = false
  369. this.isChangingAutoMovingStatus = false
  370. this.autoMovingProgress = 0
  371. this.frameId = null
  372. this.cancelMustMute()
  373. })
  374. player.on("progress", ({ partId, frameId, progress }) => {
  375. if (partId !== this.curSceneIdx) {
  376. this.curSceneIdx = partId
  377. this.autoMovingProgress = 0
  378. this.$refs['scene-item'][this.curSceneIdx].scrollIntoView()
  379. }
  380. this.autoMovingProgress = (frameId / this.tourList[partId].list.length + Number(progress).toFixed(5) / this.tourList[partId].list.length) * 100
  381. })
  382. })
  383. // 导览数据
  384. kankan.TourManager.on("loaded", (tours) => {
  385. try {
  386. this.tourList = tours
  387. console.log('tour list: ', this.tourList)
  388. setTimeout(() => {
  389. new Swiper('.swiper-root', {
  390. slidesPerView: 'auto',
  391. freeMode: true,
  392. mousewheel: true,
  393. grabCursor: true,
  394. // If we need pagination
  395. // pagination: {
  396. // el: '.swiper-pagination',
  397. // },
  398. // Navigation arrows
  399. // navigation: {
  400. // nextEl: '.swiper-button-next',
  401. // prevEl: '.swiper-button-prev',
  402. // },
  403. })
  404. }, 0)
  405. setTimeout(() => {
  406. this.canClickAutoMoving = true
  407. }, 1000)
  408. } catch (e) {
  409. console.error('没拿到导览数据:', e)
  410. this.tourList = []
  411. }
  412. this.$msgCenter.publish('hide-loading')
  413. })
  414. // 全部热点数据
  415. kankan.store.on("tags", (tags) => {
  416. this.baseHotData = tags.tags
  417. console.log('baseHotData: ', this.baseHotData)
  418. })
  419. // 热点
  420. kankan.use("TagView", {
  421. render(data) {
  422. let ifNeedShow = false
  423. // data.title如果没有“&”或者是“a&b&show”这样子,就要显示。
  424. let arrTitle = data.title.split("&")
  425. if (arrTitle[2] === 'show' || !data.title.includes("&")) {
  426. ifNeedShow = true
  427. }
  428. let title = data.title.split("&")[0]
  429. return `
  430. <span class="tag-icon animate" title=${title} style="${ifNeedShow ? "" : "display: none;"}; background-image: url({{icon}})"></span>
  431. <div class="tag-body"></div>
  432. `
  433. },
  434. }).then((TagView) => {
  435. this.tagView = TagView
  436. // 监听手动点击事件
  437. TagView.on("click", (e) => {
  438. this.relatedHotspotList = []
  439. if (e.data.title.split("&")[1]) { // 如果是多个热点合并
  440. this.baseHotData.forEach((item) => {
  441. if (item.title.split("&")[1] === e.data.title.split("&")[1]) {
  442. this.relatedHotspotList.push(item)
  443. }
  444. })
  445. } else { // 单个热点
  446. this.relatedHotspotList.push(e.data)
  447. }
  448. // 聚焦当前点击的热点
  449. TagView.focus(e.data.sid)
  450. this.isShowDetail = true
  451. })
  452. })
  453. // 球幕视频的播放与暂停影响背景音乐的播放状态
  454. kankan.Scene.on("panorama.videorenderer.startvideo", () => {
  455. console.log('startvideo')
  456. this.mustMute()
  457. })
  458. kankan.Scene.on("panorama.videorenderer.suspendrender", () => {
  459. console.log('suspend')
  460. this.cancelMustMute()
  461. })
  462. kankan.Scene.on("panorama.videorenderer.resumerender", () => {
  463. console.log('resume')
  464. this.mustMute()
  465. })
  466. kankan.Scene.on("loaded", () => {
  467. console.log('loaded!')
  468. this.isLoading = false
  469. //设置地面logo
  470. kankan.Scene.setFloorLogo({
  471. url: "./static-swkk/diBiao.png",
  472. size: 40,
  473. })
  474. })
  475. // 监听看看的模式
  476. kankan.Camera.on("mode.beforeChange", ({ toMode }) => {
  477. this.mode = {
  478. panorama: 2,
  479. floorplan: 3,
  480. dollhouse: 4,
  481. }[toMode]
  482. })
  483. kankan.render()
  484. this.kankan = kankan
  485. },
  486. beforeDestroy() {
  487. this.stopAutoMoving()
  488. },
  489. methods: {
  490. ...globalMapMutations([
  491. 'mustMute',
  492. 'cancelMustMute',
  493. 'setIsMuted',
  494. ]),
  495. changeFloor(val) {
  496. let newHref = location.href.substring(0, location.href.length - 1) + val + `&isMuted=${this.isMuted}`
  497. location.href = newHref
  498. location.reload()
  499. },
  500. onClickAutoMoving() {
  501. if (!this.canClickAutoMoving) {
  502. return
  503. }
  504. if (this.isAutoMoving) {
  505. this.stopAutoMoving()
  506. } else {
  507. this.startAutoMoving()
  508. }
  509. },
  510. async startAutoMoving() {
  511. if (this.isChangingAutoMovingStatus || this.isAutoMoving) {
  512. return
  513. }
  514. this.isChangingAutoMovingStatus = true
  515. let player = await this.kankan.TourManager.player
  516. player.play()
  517. },
  518. async stopAutoMoving() {
  519. if (this.isChangingAutoMovingStatus || !this.isAutoMoving) {
  520. return
  521. }
  522. this.isChangingAutoMovingStatus = true
  523. let player = await this.kankan.TourManager.player
  524. player.pause()
  525. },
  526. onClickChangjingdaolan() {
  527. this.isShowTourGuide = !this.isShowTourGuide
  528. },
  529. onClickQuanjingmanyou() {
  530. this.kankan.Camera.panorama()
  531. },
  532. onClickMinimoxing() {
  533. this.stopAutoMoving()
  534. this.kankan.Camera.dollhouse()
  535. },
  536. onClickDingbufushi() {
  537. this.stopAutoMoving()
  538. this.kankan.Camera.floorplan()
  539. },
  540. async changeScene(index) {
  541. if (this.isChangingScene) {
  542. return
  543. }
  544. this.stopAutoMoving()
  545. this.isChangingScene = true
  546. this.curSceneIdx = index
  547. this.$refs['scene-item'][this.curSceneIdx].scrollIntoView()
  548. let player = await this.kankan.TourManager.player
  549. player.pause()
  550. await player.selectPart(index)
  551. this.isChangingScene = false
  552. },
  553. onClickHotspot(hotspot) {
  554. this.isShowHotspotList = false
  555. this.relatedHotspotList = []
  556. if (hotspot.title.split("&")[1]) { // 如果是多个热点合并
  557. this.baseHotData.forEach((item) => {
  558. if (item.title.split("&")[1] === hotspot.title.split("&")[1]) {
  559. this.relatedHotspotList.push(item)
  560. }
  561. })
  562. } else { // 单个热点
  563. this.relatedHotspotList.push(hotspot)
  564. }
  565. // 聚焦当前点击的热点
  566. this.tagView && this.tagView.focus(hotspot.sid)
  567. this.isShowDetail = true
  568. }
  569. },
  570. }
  571. </script>
  572. <style lang="less" scoped>
  573. .skww-view {
  574. position: relative;
  575. width: 100%;
  576. height: 100%;
  577. .swkk-wrap {
  578. position: absolute;
  579. top: 0;
  580. left: 0;
  581. width: 100%;
  582. height: 100%;
  583. }
  584. > h1 {
  585. position: absolute;
  586. z-index: 1;
  587. top: 23px;
  588. left: 50%;
  589. transform: translateX(-50%);
  590. background: rgba(0,0,0,0.45);
  591. border-radius: 33px;
  592. font-size: 16px;
  593. color: #FFFFFF;
  594. padding: 9px 29px;
  595. }
  596. > menu {
  597. position: absolute;
  598. z-index: 1;
  599. bottom: 30px;
  600. display: flex;
  601. align-items: center;
  602. pointer-events: none;
  603. > button {
  604. pointer-events: initial;
  605. margin-left: 30px;
  606. opacity: 0.7;
  607. &:hover {
  608. opacity: 1;
  609. }
  610. > img {
  611. width: 50px;
  612. height: 50px;
  613. }
  614. > div {
  615. color: #fff;
  616. text-shadow: 0px 0px 0.2rem rgba(255,255,255,0.6);
  617. margin-top: 0.17rem;
  618. font-size: 1.17rem;
  619. }
  620. &.active {
  621. opacity: 1;
  622. > div {
  623. color: #930909;
  624. text-shadow: 0px 0px 0.2rem rgba(255,255,255,0.6);
  625. }
  626. }
  627. }
  628. }
  629. /deep/[xui_min_map] {
  630. top: 28px;
  631. right: 20px;
  632. width: 237px;
  633. height: 149px;
  634. border: none;
  635. background: rgba(86,86,86,0.2);
  636. border-radius: 0;
  637. backdrop-filter: blur(10px);
  638. }
  639. .mini-map {
  640. position: absolute;
  641. z-index: 1;
  642. right: 12px;
  643. top: 10px;
  644. width: 254px;
  645. height: 18px;
  646. > img {
  647. position: absolute;
  648. left: 0;
  649. top: 0;
  650. width: 100%;
  651. height: 100%;
  652. }
  653. }
  654. .tour-guide-wrap {
  655. ::-webkit-scrollbar { width: 0; height: 5px; } /*宽度是对垂直滚动条而言,高度是对水平滚动条而言*/
  656. ::-webkit-scrollbar-track {
  657. background: #fff;
  658. }
  659. position: absolute;
  660. left: 0;
  661. bottom: 0;
  662. width: 100%;
  663. background: rgba(133, 119, 69, 0.50);
  664. backdrop-filter: blur(10px);
  665. .tour-guide {
  666. height: 100%;
  667. padding: 24px 0;
  668. width: fit-content !important;
  669. > li {
  670. margin-right: 10px;
  671. &:first-child {
  672. margin-left: 46px;
  673. }
  674. &:last-child {
  675. margin-right: 46px;
  676. }
  677. width: 187px;
  678. height: 135px;
  679. position: relative;
  680. > img {
  681. background: #D26868;
  682. width: 100%;
  683. height: 100%;
  684. object-fit: cover;
  685. }
  686. > .mask {
  687. position: absolute;
  688. left: 0;
  689. top: 0;
  690. width: 100%;
  691. height: 100%;
  692. background: rgba(0,0,0,0.5);
  693. }
  694. > .progress {
  695. position: absolute;
  696. left: 0;
  697. bottom: 0;
  698. height: 10px;
  699. background-color: #930909;
  700. }
  701. .title {
  702. position: absolute;
  703. left: 50%;
  704. top: 50%;
  705. transform: translate(-50%, -50%);
  706. font-size: 16px;
  707. color: #FFFFFF;
  708. white-space: pre;
  709. word-break: break-all;
  710. overflow: hidden;
  711. text-overflow: ellipsis;
  712. pointer-events: none;
  713. user-select: none;
  714. }
  715. &.active {
  716. > .mask {
  717. border: 4px solid #A10E0C;
  718. background: linear-gradient(180deg, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.5) 100%);
  719. }
  720. .title {
  721. top: initial;
  722. bottom: 12px;
  723. transform: translateX(-50%);
  724. }
  725. }
  726. }
  727. }
  728. }
  729. .hotspot-detail {
  730. position: absolute;
  731. top: 0;
  732. left: 0;
  733. width: 100%;
  734. height: 100%;
  735. }
  736. }
  737. .mobile {
  738. .skww-view {
  739. > menu {
  740. width: 50%;
  741. justify-content: space-around;
  742. > button {
  743. margin-left: initial;
  744. &:hover {
  745. opacity: 0.7;
  746. }
  747. &:active {
  748. opacity: 1;
  749. }
  750. }
  751. }
  752. /deep/[xui_min_map] {
  753. top: 25px;
  754. right: 10px;
  755. width: 160px;
  756. height: 137px;
  757. backdrop-filter: initial;
  758. background: initial;
  759. }
  760. .mini-map {
  761. position: absolute;
  762. z-index: 9;
  763. right: 5px;
  764. top: 12px;
  765. width: 170px;
  766. height: calc(12px + 137px + 44px);
  767. background: transparent;
  768. > img {
  769. height: 12px;
  770. }
  771. > .selector {
  772. position: absolute;
  773. left: 50%;
  774. top: 12px;
  775. transform: translateX(-50%);
  776. width: 160px;
  777. height: calc(137px + 44px);
  778. background: rgba(86, 86, 86, 0.2);
  779. backdrop-filter: blur(10px);
  780. > .bottom-bar {
  781. position: absolute;
  782. left: 0;
  783. bottom: 12px;
  784. width: 100%;
  785. display: flex;
  786. justify-content: space-around;
  787. align-items: center;
  788. > button.plain {
  789. display: flex;
  790. align-items: center;
  791. > img {
  792. width: 19px;
  793. height: 19px;
  794. margin-right: 4px;
  795. }
  796. > span {
  797. font-size: 16px;
  798. color: #FFF0BD;
  799. }
  800. }
  801. > button.model {
  802. display: flex;
  803. align-items: center;
  804. > img {
  805. width: 23px;
  806. height: 22px;
  807. margin-right: 4px;
  808. }
  809. > span {
  810. font-size: 16px;
  811. color: #FFF0BD;
  812. }
  813. }
  814. }
  815. }
  816. }
  817. }
  818. }
  819. </style>