|
@@ -6,6 +6,7 @@
|
|
<div @click="onBimChecked">
|
|
<div @click="onBimChecked">
|
|
<i class="iconfont icon-BIM"></i>
|
|
<i class="iconfont icon-BIM"></i>
|
|
</div>
|
|
</div>
|
|
|
|
+ <span v-show="showBimTips">BIM</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="tools" v-show="!bimChecked">
|
|
<div class="tools" v-show="!bimChecked">
|
|
@@ -29,6 +30,8 @@ import browser from '@/utils/browser'
|
|
import Calendar from '@/components/calendar/mobile.vue'
|
|
import Calendar from '@/components/calendar/mobile.vue'
|
|
import sync, { loadSourceScene, loadTargetScene } from '@/utils/sync'
|
|
import sync, { loadSourceScene, loadTargetScene } from '@/utils/sync'
|
|
|
|
|
|
|
|
+const showBimTips = ref(false)
|
|
|
|
+
|
|
const showTips = ref(null)
|
|
const showTips = ref(null)
|
|
const bimChecked = ref(null)
|
|
const bimChecked = ref(null)
|
|
const sourceFrame = ref(null)
|
|
const sourceFrame = ref(null)
|
|
@@ -57,7 +60,7 @@ const sourceURL = computed(() => {
|
|
let pose = ''
|
|
let pose = ''
|
|
if (sourceFrame.value && sourceFrame.value.contentWindow.app && sourceFrame.value.contentWindow.app.Camera) {
|
|
if (sourceFrame.value && sourceFrame.value.contentWindow.app && sourceFrame.value.contentWindow.app.Camera) {
|
|
let sdk = sourceFrame.value.contentWindow.app
|
|
let sdk = sourceFrame.value.contentWindow.app
|
|
- pose = '&'+sdk.Camera.getPoseUrlParams()
|
|
|
|
|
|
+ pose = '&' + sdk.Camera.getPoseUrlParams()
|
|
}
|
|
}
|
|
// 看看、看见场景
|
|
// 看看、看见场景
|
|
return `smart-kankan.html?m=${source.value.num}${pose}`
|
|
return `smart-kankan.html?m=${source.value.num}${pose}`
|
|
@@ -141,6 +144,17 @@ const onNextDate = name => {
|
|
|
|
|
|
// bim点击
|
|
// bim点击
|
|
const onBimChecked = () => {
|
|
const onBimChecked = () => {
|
|
|
|
+
|
|
|
|
+ showBimTips.value = true;
|
|
|
|
+
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ showBimTips.value = false
|
|
|
|
+ }, 2000);
|
|
|
|
+
|
|
|
|
+ if (!project.value || !project.value.bimData) {
|
|
|
|
+ showTips.value = '未发现BIM文件'
|
|
|
|
+ return
|
|
|
|
+ }
|
|
if (bimChecked.value) {
|
|
if (bimChecked.value) {
|
|
bimChecked.value = false
|
|
bimChecked.value = false
|
|
} else {
|
|
} else {
|
|
@@ -222,6 +236,27 @@ main {
|
|
z-index: 1000;
|
|
z-index: 1000;
|
|
display: flex;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
|
|
+ span {
|
|
|
|
+ position: absolute;
|
|
|
|
+ left: 130%;
|
|
|
|
+ top: 48%;
|
|
|
|
+ background: rgba(27, 27, 28, 0.8);
|
|
|
|
+ padding: 4px;
|
|
|
|
+ border-radius: 4px;
|
|
|
|
+ color:#fff;
|
|
|
|
+ &::before {
|
|
|
|
+ content: '';
|
|
|
|
+ position: absolute;
|
|
|
|
+ right: 100%;
|
|
|
|
+ top: 50%;
|
|
|
|
+ margin-top:-7px;
|
|
|
|
+ width: 0;
|
|
|
|
+ height: 0;
|
|
|
|
+ border-top: 7px solid transparent;
|
|
|
|
+ border-right: 14px solid rgba(27, 27, 28, 0.8);
|
|
|
|
+ border-bottom: 7px solid transparent;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
> div {
|
|
> div {
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
width: 50px;
|
|
width: 50px;
|
|
@@ -250,8 +285,8 @@ main {
|
|
&.disable {
|
|
&.disable {
|
|
opacity: 0.5;
|
|
opacity: 0.5;
|
|
}
|
|
}
|
|
- i{
|
|
|
|
- font-size:20px
|
|
|
|
|
|
+ i {
|
|
|
|
+ font-size: 20px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|