12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031 |
- <template>
- <Rules v-if="showRules" @close="closeRules" />
- <AppHeader v-show="!fscChecked" :project="project" @getUserId="getUserId" :show-adjust="showAdjust" @update="onPointsUpdate" />
- <article>
- <main>
- <div class="split">
- <iframe ref="sourceFrame" v-if="sourceURL" :src="sourceURL" frameborder="0" @load="onLoadSource"></iframe>
- <div class="tools" v-if="source && !showRules && !ruleChecked" v-show="showWidget && !showAdjust && !fscChecked && (dbsChecked || (!target && !bimChecked))">
- <div class="item-date">
- <calendar
- name="source"
- :count="scenes.length"
- :controls="controls"
- :value="sourceDate"
- :highlighted="sourceDays"
- @selected="onSelected"
- @pick="onPickDate"
- @prev="onPrevDate"
- @next="onNextDate"
- ></calendar>
- </div>
- <div class="item-mode" v-if="source.type == 2 || source.type == 3">
- <div class="iconfont icon-show_roaming" :class="{ active: mode == 0 }" @click="onModeChange(0)"></div>
- <div class="iconfont icon-show_plane" :class="{ active: mode == 1 }" @click="onModeChange(1)"></div>
- </div>
- <div class="item-density" v-if="(source.type == 2 && mode == 1) || (source.type == 3 && mode == 1)" :class="{ active: showDensity }" @click="showDensity = !showDensity">
- <span>{{ densityType.text }}</span>
- <i class="iconfont icon-arrows_down"></i>
- <ul>
- <li v-for="density in densityTypes" @click="onDensityChange(density)">{{ density.text }}</li>
- </ul>
- </div>
- </div>
- <div class="points" v-if="showAdjust">
- <div :class="{ active: points.p1 }" @click="onP1Click('left')">
- <i class="iconfont" :class="[points.p1 ? 'icon-positioning01' : 'icon-positioning02']"></i>
- <span>P1</span>
- </div>
- <div :class="{ active: points.p2 }" @click="onP2Click('left')">
- <i class="iconfont" :class="[points.p2 ? 'icon-positioning01' : 'icon-positioning02']"></i>
- <span>P2</span>
- </div>
- </div>
- </div>
- <div class="split" v-if="target">
- <iframe ref="targetFrame" :src="targetURL" frameborder="0" @load="onLoadTarget"></iframe>
- <div class="tools" v-show="!fscChecked && !bimChecked">
- <div class="item-date target">
- <calendar
- name="target"
- :count="scenes.length"
- :controls="controls"
- :value="targetDate"
- :highlighted="targetDays"
- @selected="onSelected"
- @pick="onPickDate"
- @prev="onPrevDate"
- @next="onNextDate"
- ></calendar>
- </div>
- </div>
- <div class="points" v-if="showAdjust">
- <div :class="{ active: points.p1 }" @click="onP1Click('right')">
- <i class="iconfont" :class="[points.p1 ? 'icon-positioning01' : 'icon-positioning02']"></i>
- <span>P1</span>
- </div>
- <div :class="{ active: points.p2 }" @click="onP2Click('right')">
- <i class="iconfont" :class="[points.p2 ? 'icon-positioning01' : 'icon-positioning02']"></i>
- <span>P2</span>
- </div>
- </div>
- </div>
- <div class="model" v-show="showWidget && !showAdjust && !showRules">
- <div class="rule" :class="{ active: ruleChecked, disable: fileDisable }" v-show="!fscChecked && !showBim && !dbsChecked && !bimChecked">
- <div @click="onRuleChecked">
- <i class="iconfont icon-measurement"></i>
- <span>{{ $t('common.measure') }}</span>
- </div>
- </div>
- <div v-if="isLogin && isAuth" class="file" :class="{ active: fileChecked, disable: fileDisable }" v-show="!fscChecked && !showBim && !dbsChecked && !bimChecked && !ruleChecked">
- <div @click="onFileChecked">
- <i class="iconfont icon-note1"></i>
- <span>{{ $t('home.tag') }}</span>
- </div>
- </div>
- <div class="bim" :class="{ active: bimChecked, disable: bimDisable }" v-show="!fscChecked && !showBim && !ruleChecked">
- <div @click="onBimChecked">
- <i class="iconfont icon-BIM"></i>
- <span>BIM</span>
- </div>
- </div>
- <div class="dbs" :class="{ active: dbsChecked, disable: dbsDisable }" v-show="!fscChecked && !showBim && !ruleChecked">
- <div @click="onDbsChecked">
- <i class="iconfont icon-split_screen"></i>
- <span>{{ $t('home.splitScreen') }}</span>
- </div>
- </div>
- <div class="fsc" :class="{ active: fscChecked }" @click="onFscChecked">
- <i class="iconfont" :class="[fscChecked ? 'icon-full_screen_selected' : 'icon-full_screen_normal']"></i>
- <span>{{ $t('home.fullScreen') }}</span>
- </div>
- </div>
- <TagManager ref="tagManager" />
- </main>
- </article>
- <Toast v-if="showTips" type="warn" :content="showTips" :close="() => (showTips = null)" />
- <Files :show="fileChecked" @exit="() => (fileChecked = false)" />
- </template>
- <script setup>
- import { ref, onMounted, computed, nextTick, provide, watch } from 'vue'
- import { http } from '@/utils/request'
- import axios from 'axios'
- import browser from '@/utils/browser'
- import Toast from '@/components/dialog/Toast'
- import AppHeader from '@/components/header'
- import Calendar from '@/components/calendar'
- import Files from '@/components/files'
- import TagManager from '@/components/files/TagManager'
- import sync, { beforeChangeURL, loadSourceScene, loadTargetScene, setPanoWithBim, flyToP1P2 } from '@/utils/sync'
- import i18n, { getLocale, useI18n, useScope, setI18nLanguage, loadLocaleMessages } from '@/i18n'
- import Rules from './Rules'
- const { t } = useI18n({ useScope: 'global' })
- const isDev = process.env.VUE_APP_TEST == 1
- const rules = []
- const tags = ref([])
- const notify = ref(null)
- const isEdit = ref(false)
- const isLogin = ref(false)
- const isFlying = ref(false)
- const editTagId = ref(null)
- const isAuth = ref(false)
- const source = ref(null)
- const tagManager = ref(null)
- provide('tags', tags)
- provide('notify', notify)
- provide('isEdit', isEdit)
- provide('editTagId', editTagId)
- provide('isLogin', isLogin)
- provide('isFlying', isFlying)
- provide('isAuth', isAuth)
- provide('source', source)
- const userId = ref(localStorage.getItem('userId') || null)
- const getUserId = id => {
- userId.value = id
- }
- const showRules = ref(false)
- const closeRules = () => {
- showRules.value = false
- window.kankan.TagManager.cancelMeasure()
- }
- // 是否BIM模式
- const showBim = ref(browser.urlHasValue('bim'))
- // 是否校准模式
- const showSplit = ref(browser.urlHasValue('split'))
- const showAdjust = ref(browser.urlHasValue('adjust'))
- const bimChecked = ref()
- const dbsChecked = ref(null)
- const fscChecked = ref(null)
- const fileChecked = ref(false)
- const ruleChecked = ref(false)
- const datepickName = ref(null)
- const sourceFrame = ref(null)
- const targetFrame = ref(null)
- const mode = ref(0)
- const target = ref(null)
- const project = ref(null)
- const points = ref({ p1: null, p2: null })
- const densityTypes = ref([
- { type: 'high', text: t('common.high') },
- { type: 'middle', text: t('common.middle') },
- { type: 'low', text: t('common.low') },
- ])
- const densityType = ref(densityTypes.value[0])
- const showTips = ref(null)
- const showDensity = ref(false)
- const showWidget = computed(() => {
- if (fileChecked.value) {
- return false
- }
- return true
- })
- const scenes = computed(() => {
- if (!project.value) {
- return []
- }
- return project.value.sceneList.map(item => {
- return {
- num: item.num,
- type: item.type,
- createTime: item.createTime,
- }
- })
- })
- const controls = computed(() => {
- if (bimChecked.value) {
- return scenes.value.length > 1
- }
- return dbsChecked.value ? scenes.value.length > 2 : scenes.value.length > 1
- })
- const sourceURL = computed(() => {
- beforeChangeURL('source')
- if (bimChecked.value && !dbsChecked.value) {
- return `smart-bim.html?m=${project.value.bimData.bimOssFilePath}&lang=${getLocale()}`
- }
- if (!source.value) {
- return
- }
- getTagList(source.value.num)
- if (source.value.type < 2) {
- // 看看、看见场景
- return `smart-kankan.html?m=${source.value.num}${isDev ? '&dev' : ''}&lang=${getLocale()}`
- } else {
- getLaserInfo(source.value.num)
- // 深时场景
- return `smart-laser.html?m=${source.value.num}${isDev ? '&dev' : ''}&lang=${getLocale()}&serve_link=${process.env.VUE_APP_LASER_URL}&panoResourceBasePath=${
- process.env.VUE_APP_RESOURCE_URL
- }&resourceBasePath=${process.env.VUE_APP_LASER_RESOURCE_URL}`
- }
- })
- const noPanorama = ref(true)
- const getLaserInfo = num => {
- axios
- .get(process.env.VUE_APP_LASER_URL + `laser/dataset/${num}/getDataSet`)
- .then(res => {
- if (res.data.code == 200) {
- let list = res.data.data
- list.forEach(item => {
- if (item.pointCount) {
- noPanorama.value = false
- }
- })
- if (noPanorama.value) {
- // onModeChange(1)
- mode.value = 1
- }
- } else {
- }
- })
- .catch(() => {
- // showTips.value = t('code.failed')
- })
- }
- const targetURL = computed(() => {
- if (bimChecked.value) {
- return `smart-bim.html?m=${project.value.bimData.bimOssFilePath}&lang=${getLocale()}&serve_link=${process.env.VUE_APP_LASER_URL}`
- }
- // getTagList(target.value.num)
- if (target.value.type < 2) {
- // 看看、看见场景
- return `smart-kankan.html?m=${target.value.num}${isDev ? '&dev' : ''}&lang=${getLocale()}&serve_link=${process.env.VUE_APP_LASER_URL}`
- } else {
- // 深时场景
- return `smart-laser.html?m=${target.value.num}${isDev ? '&dev' : ''}&lang=${getLocale()}&serve_link=${process.env.VUE_APP_LASER_URL}&panoResourceBasePath=${
- process.env.VUE_APP_RESOURCE_URL
- }&resourceBasePath=${process.env.VUE_APP_LASER_RESOURCE_URL}`
- }
- })
- const sourceDate = computed(() => {
- if (source.value) {
- return source.value.createTime.toDate()
- }
- })
- const targetDate = computed(() => {
- if (target.value) {
- return target.value.createTime.toDate()
- }
- })
- const sourceDays = computed(() => {
- let dates = []
- if (datepickName.value == 'source') {
- if (dbsChecked.value) {
- // 分屏模式
- if (bimChecked.value) {
- // BIM模式
- dates = scenes.value.map(item => item.createTime.toDate())
- } else {
- // 非BIM模式
- dates = scenes.value.filter(item => item.createTime != target.value.createTime).map(item => item.createTime.toDate())
- }
- } else {
- // 非分屏模式
- dates = scenes.value.map(item => item.createTime.toDate())
- }
- }
- return {
- dates: dates,
- }
- })
- const targetDays = computed(() => {
- let dates = []
- if (datepickName.value == 'target') {
- dates = scenes.value.filter(item => item.createTime != source.value.createTime).map(item => item.createTime.toDate())
- }
- return {
- dates: dates,
- }
- })
- const fileDisable = computed(() => {
- return false
- })
- const bimDisable = computed(() => {
- if (!project.value || !project.value.bimData) {
- return true
- }
- })
- const dbsDisable = computed(() => {
- if (scenes.value.length == 0) {
- // 没有场景的情况
- return 1
- }
- if (!bimChecked.value && scenes.value.length == 1) {
- // 只有1个场景的情况
- return 2
- }
- })
- const onLoadSource = () => {
- if (bimChecked.value && !dbsChecked.value) {
- // BIM单屏模式
- return
- }
- if (source.value.type < 2) {
- window['laser'] = null
- window['kankan'] = sourceFrame.value.contentWindow.app
- window['kankan'].TagManager.load(tags.value)
- window['kankan'].Camera.on('flying.started', pano => {
- isFlying.value = true
- })
- window['kankan'].Camera.on('flying.ended', pano => {
- isFlying.value = false
- })
- } else {
- window['kankan'] = null
- window['laser'] = sourceFrame.value.contentWindow.loaded
- window.laser.then(sdk => {
- sdk.scene.on('posChange', cameraPos => {
- tags.value.forEach(tag => {
- const info2d = sdk.scene.getScreenByPoint(tag.position)
- tag.x = info2d.pos.x
- tag.y = info2d.pos.y
- tag.visible = info2d.trueSide
- })
- })
- window[0].viewer.images360.addEventListener('flyToPano', () => {
- isFlying.value = true
- })
- window[0].viewer.images360.addEventListener('flyToPanoDone', () => {
- isFlying.value = false
- })
- })
- }
- loadSourceScene(sourceFrame, source.value.type < 2 ? 'kankan' : 'laser', mode.value)
- }
- const onLoadTarget = () => {
- if (bimChecked.value) {
- loadTargetScene(targetFrame, 'bim')
- } else {
- loadTargetScene(targetFrame, target.value.type < 2 ? 'kankan' : 'laser', mode.value)
- }
- }
- const onModeChange = targetMode => {
- if (targetMode == 0 && noPanorama.value) {
- showTips.value = t('home.noPanorama')
- return
- }
- window.Log('changeMode:' + targetMode, '#3cffff')
- if (sync.sourceInst) {
- sync.sourceInst.loaded.then(sdk => sdk.scene.changeMode(targetMode))
- mode.value = targetMode
- sync.views.laserChangeMode(mode.value)
- }
- }
- const onDensityChange = density => {
- if (sync.sourceInst) {
- sync.sourceInst.loaded.then(sdk => {
- //console.log('onDensityChange',sync.sourceInst.sceneName, density.type)
- let data = sdk.scene.changePointDensity(density.type)
- sdk.scene.changeDensityPercent(data.percent)
- sync.sourceInst.viewer.dispatchEvent('densityChange')
- })
- densityType.value = density
- }
- }
- const onPickDate = name => {
- datepickName.value = name
- tagManager.value.onClose()
- }
- const onSelected = data => {
- if (!data.payload) {
- return
- }
- let { name, payload } = data
- let date = payload.format('YYYY-mm-dd')
- let dates = (name == 'source' ? sourceDays : targetDays).value.dates.map(item => item.format('YYYY-mm-dd'))
- if (dates.indexOf(date) != -1) {
- let time = payload.format('YYYY-mm-dd HH:MM')
- let find = scenes.value.find(c => c.createTime.indexOf(time) != -1)
- if (find) {
- if (name == 'source') {
- if (find.num != source.value.num) {
- source.value = find
- }
- } else {
- if (find.num != target.value.num) {
- target.value = find
- }
- }
- }
- } else {
- showTips.value = t('home.dateScene')
- }
- datepickName.value = null
- }
- const onPrevDate = name => {
- tagManager.value.onClose()
- let scene = null
- if (name == 'source') {
- scene = source
- } else {
- scene = target
- }
- let index = scenes.value.findIndex(item => item.num == scene.value.num)
- if (index == -1) {
- return
- }
- if (--index == -1) {
- index = scenes.value.length - 1
- }
- if (target.value && !bimChecked.value) {
- // 分屏模式判断
- if (name == 'source') {
- if (scenes.value[index].createTime == target.value.createTime) {
- index--
- }
- } else {
- if (scenes.value[index].createTime == source.value.createTime) {
- index--
- }
- }
- if (index == -1) {
- index = scenes.value.length - 1
- }
- }
- scene.value = scenes.value[index]
- }
- const onNextDate = name => {
- tagManager.value.onClose()
- let scene = null
- if (name == 'source') {
- scene = source
- } else {
- scene = target
- }
- let index = scenes.value.findIndex(item => item.num == scene.value.num)
- if (index == -1) {
- return
- }
- if (++index > scenes.value.length - 1) {
- index = 0
- }
- if (target.value && !bimChecked.value) {
- // 分屏模式判断
- if (name == 'source') {
- if (scenes.value[index].createTime == target.value.createTime) {
- index++
- }
- } else {
- if (scenes.value[index].createTime == source.value.createTime) {
- index++
- }
- }
- if (index > scenes.value.length - 1) {
- index = 0
- }
- }
- scene.value = scenes.value[index]
- }
- const onFileChecked = () => {
- fileChecked.value = !fileChecked.value
- }
- // bim点击
- const onBimChecked = () => {
- if (bimDisable.value) {
- return (showTips.value = t('home.notFindFile'))
- }
- if (bimChecked.value) {
- bimChecked.value = false
- if (dbsChecked.value) {
- // 如果没有多场景数据,取消分屏
- if (scenes.value.length < 2) {
- onDbsChecked()
- return
- }
- // 判断是否分屏状态
- let index = scenes.value.findIndex(item => item.num == source.value.num)
- if (index == -1) {
- return
- }
- if (++index > scenes.value.length - 1) {
- index = 0
- }
- target.value = scenes.value[index]
- }
- } else {
- bimChecked.value = true
- }
- }
- // 分屏点击
- const onDbsChecked = () => {
- if (dbsDisable.value && !dbsChecked.value) {
- return (showTips.value = t('home.notFindScene'))
- }
- dbsChecked.value = !dbsChecked.value
- if (dbsChecked.value) {
- if (bimChecked.value) {
- // BIM分屏
- source.value = scenes.value[scenes.value.length - 1]
- target.value = project.value.bimData
- } else {
- // 四维看看、激光场景分屏
- let index = scenes.value.findIndex(item => item.num == source.value.num)
- if (index == -1) {
- return
- }
- if (++index > scenes.value.length - 1) {
- index = 0
- }
- target.value = scenes.value[index]
- }
- } else {
- target.value = null
- }
- }
- // 全屏点击
- const onFscChecked = () => {
- let element = document.documentElement
- fscChecked.value = !fscChecked.value
- if (fscChecked.value) {
- if (element.requestFullscreen) {
- element.requestFullscreen()
- } else if (element.webkitRequestFullScreen) {
- element.webkitRequestFullScreen()
- } else if (element.mozRequestFullScreen) {
- element.mozRequestFullScreen()
- } else if (element.msRequestFullscreen) {
- element.msRequestFullscreen()
- }
- } else {
- if (document.exitFullscreen) {
- document.exitFullscreen()
- } else if (document.webkitCancelFullScreen) {
- document.webkitCancelFullScreen()
- } else if (document.mozCancelFullScreen) {
- document.mozCancelFullScreen()
- } else if (document.msExitFullscreen) {
- document.msExitFullscreen()
- }
- }
- }
- const onPointsUpdate = (type, data) => {
- points.value[type] = data
- }
- const onP1Click = type => {
- if (!points.value.p1) {
- showTips.value = t('home.notChoosePoint')
- return
- }
- console.log(points.value.p1)
- // todo 定位
- flyToP1P2(points.value.p1)
- }
- const onP2Click = type => {
- if (!points.value.p2) {
- showTips.value = t('home.notChoosePoint')
- return
- }
- // todo 定位
- flyToP1P2(points.value.p2)
- }
- const onRuleHandler = sdk => {
- let rule = sdk.startMeasure()
- rule.bus.on('end', () => {
- setTimeout(() => {
- onRuleHandler(sdk)
- }, 1)
- })
- rules.push(rule)
- }
- const onRuleChecked = () => {
- if (ruleChecked.value) {
- ruleChecked.value = false
- rules.forEach(rule => {
- rule.clear()
- })
- return
- }
- if (source.value.type < 2) {
- showRules.value = true
- window.kankan.TagManager.startMeasure()
- } else {
- sync.sourceInst.loaded.then(sdk => {
- onRuleHandler(sdk)
- })
- ruleChecked.value = true
- }
- }
- const getTagList = num => {
- http.post(`smart-site/marking/list`, {
- projectId: projectId,
- pageNum: 1,
- pageSize: 200,
- num: num ? num : browser.getURLParam('m'),
- }).then(response => {
- if (response.data && response.data.list) {
- tags.value = response.data.list.map(item => {
- item.hotData.visible = false
- item.hotData.id = item.markingId
- item.hotData.createTime = item.createTime
- item.hotData.createBy = item.createBy
- return item.hotData
- })
- }
- })
- }
- const getInfo = () => {
- http.get(`smart-site/project/info?projectId=${projectId}&sceneOrder=asc`)
- .then(response => {
- if (response.success) {
- if (response.data) {
- document.title = response.data.projectName
- if (response.data.panos) {
- try {
- response.data.panos = JSON.parse(response.data.panos)
- points.value.p1 = response.data.panos.p1
- points.value.p2 = response.data.panos.p2
- setPanoWithBim(response.data.panos)
- } catch (error) {
- console.error(error)
- }
- }
- project.value = response.data
- if (showBim.value) {
- onBimChecked()
- } else if (project.value.sceneList.length) {
- if (num) {
- source.value = project.value.sceneList.find(c => c.num == num)
- } else {
- source.value = project.value.sceneList[project.value.sceneList.length - 1]
- }
- if (!source.value) {
- return (showTips.value = t('home.sceneDelete'))
- }
- // mode.value = source.value?.location == 6 ? 1 : 0
- if (showAdjust.value || showSplit.value) {
- onBimChecked()
- nextTick(() => onDbsChecked())
- }
- } else {
- return (showTips.value = t('home.sceneDelete'))
- }
- }
- } else {
- if (response.code == 4008) {
- // 未登录
- localStorage.removeItem('token')
- } else {
- showTips.value = t(`code.${response.code}`)
- }
- }
- })
- .catch(() => {
- showTips.value = t('code.failed')
- })
- }
- const num = browser.valueFromUrl('m') || ''
- const projectId = browser.valueFromUrl('projectId') || 1
- onMounted(() => {
- getInfo()
- // getTagList()
- document.addEventListener('fullscreenchange', () => {
- if (document.fullscreenElement) {
- if (!fscChecked.value) {
- fscChecked.value = true
- }
- } else {
- if (fscChecked.value) {
- fscChecked.value = false
- }
- }
- })
- })
- </script>
- <style lang="scss" scoped>
- article {
- display: flex;
- width: 100%;
- height: 100%;
- overflow: hidden;
- }
- aside {
- width: 160px;
- height: 100%;
- background-color: rgba(0, 0, 0, 0.8);
- h4 {
- font-size: 16px;
- text-align: center;
- }
- ul {
- margin-top: 20px;
- }
- li {
- margin: 0;
- padding: 0;
- font-size: 16px;
- margin-left: 20px;
- cursor: pointer;
- &:hover,
- &.active {
- color: #00c8af;
- }
- }
- }
- main {
- flex: 1;
- width: 100%;
- height: 100%;
- position: relative;
- display: flex;
- &.full {
- .split {
- width: 50%;
- }
- }
- iframe {
- position: absolute;
- left: 0;
- top: 0;
- z-index: 1000;
- width: 100%;
- height: 100%;
- border: none;
- outline: none;
- }
- .split {
- margin-left: 2px;
- width: 100%;
- height: 100%;
- overflow: hidden;
- position: relative;
- &:first-child,
- &:last-child {
- margin-left: 0;
- }
- .points {
- position: absolute;
- left: 50%;
- top: 64px;
- z-index: 9999;
- display: flex;
- transform: translateX(-50%);
- div {
- cursor: pointer;
- margin-left: 20px;
- width: 70px;
- height: 88px;
- background: rgba(27, 27, 28, 0.8);
- box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25), inset 0px 0px 0px 2px rgba(255, 255, 255, 0.1);
- border-radius: 8px 8px 8px 8px;
- opacity: 1;
- border: 1px solid #000000;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- &.active {
- color: #0076f6;
- }
- i {
- font-size: 24px;
- }
- span {
- font-size: 16px;
- margin-top: 10px;
- }
- }
- }
- }
- .model {
- position: absolute;
- left: 50px;
- bottom: 40px;
- z-index: 1000;
- display: flex;
- flex-direction: column;
- > div {
- cursor: pointer;
- width: 50px;
- height: 50px;
- margin-top: 16px;
- background: rgba(27, 27, 28, 0.8);
- box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
- border-radius: 47px 47px 47px 47px;
- border: 1px solid #000000;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- > div {
- width: 100%;
- height: 100%;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- }
- &.active {
- color: #0076f6;
- }
- &.disable {
- opacity: 0.5;
- }
- span {
- font-size: 12px;
- padding-top: 1px;
- transform: scale(0.8);
- text-align: center;
- }
- }
- }
- .tools {
- position: absolute;
- width: 100%;
- bottom: 40px;
- z-index: 2000;
- display: flex;
- justify-content: center;
- align-items: center;
- color: #fff;
- pointer-events: none;
- > div {
- pointer-events: all;
- }
- .item-mode {
- height: 50px;
- background: rgba(27, 27, 28, 0.8);
- box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
- border-radius: 47px 47px 47px 47px;
- border: 1px solid #000000;
- display: flex;
- justify-content: center;
- align-items: center;
- margin-left: 10px;
- margin-right: 10px;
- font-size: 16px;
- padding: 0 16px;
- div {
- cursor: pointer;
- font-size: 18px;
- }
- div:last-child {
- margin-left: 20px;
- }
- div.active {
- color: #0076f6;
- }
- }
- .item-density {
- position: relative;
- cursor: pointer;
- height: 50px;
- width: 68px;
- background: rgba(27, 27, 28, 0.8);
- box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
- border-radius: 47px 47px 47px 47px;
- border: 1px solid #000000;
- display: flex;
- justify-content: center;
- align-items: center;
- margin-left: 10px;
- margin-right: 10px;
- font-size: 16px;
- padding: 0 16px;
- &.active {
- ul {
- display: block;
- }
- i {
- transform: scale(0.8) rotate(180deg);
- }
- }
- span {
- margin-right: 4px;
- }
- i {
- transform: scale(0.8);
- font-size: 14px;
- }
- ul {
- display: none;
- position: absolute;
- left: 0;
- bottom: calc(100% + 10px);
- width: 68px;
- padding: 10px 0;
- border-radius: 12px;
- text-align: center;
- background: rgba(27, 27, 28, 0.8);
- box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
- border: 1px solid #000000;
- list-style: none;
- li {
- padding: 5px 0;
- &:hover {
- color: #0076f6;
- }
- }
- }
- }
- }
- }
- </style>
- <style lang="scss">
- #app {
- background-color: rgba(0, 0, 0, 0.8);
- display: flex;
- flex-direction: column;
- }
- .vuejs3-datepicker__calendar {
- background: rgba(27, 27, 28, 0.8);
- box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
- border-radius: 4px 4px 4px 4px;
- opacity: 1;
- border: 1px solid #000000;
- filter: blur(undefinedpx);
- color: #fff;
- }
- .vuejs3-datepicker__calendar-topbar {
- display: none !important;
- }
- .vuejs3-datepicker__calendar header .up:not(.disabled):hover {
- background: rgba(0, 0, 0, 0.3);
- color: #fff;
- }
- .vuejs3-datepicker__calendar header .prev:after {
- border-left: 1px solid #fff;
- border-bottom: 1px solid #fff;
- }
- .vuejs3-datepicker__calendar header .prev:not(.disabled):hover {
- background: rgba(0, 0, 0, 0.3);
- }
- .vuejs3-datepicker__calendar header .next:after {
- border-top: 1px solid #fff;
- border-right: 1px solid #fff;
- }
- .vuejs3-datepicker__calendar header .next:not(.disabled):hover {
- background: rgba(0, 0, 0, 0.3);
- }
- .vuejs3-datepicker__calendar .cell {
- font-size: 16px !important;
- border-radius: 4px;
- }
- .highlighted {
- color: #076ede !important;
- background: transparent !important;
- }
- .selected {
- color: #fff !important;
- background: #0076f6 !important;
- }
- </style>
|