智慧工地修改
This commit is contained in:
parent
49a3bd911c
commit
d347e62b32
|
@ -46,6 +46,13 @@ function receiveMessageFromIframePage (event) {
|
|||
} else if (event.data.data.includes('noparams')) {
|
||||
router.push({ name: 'landChild' })
|
||||
}
|
||||
if (event.data.data.includes('建筑工地')) {
|
||||
var params = event.data.data
|
||||
var wisUrl = event.data.url
|
||||
router.push({ name: 'wisdomChild', params: { params, wisUrl } })
|
||||
} else if (event.data.data.includes('noparams')) {
|
||||
router.push({ name: 'wisdomChild' })
|
||||
}
|
||||
}
|
||||
window.addEventListener("message", receiveMessageFromIframePage, false);
|
||||
new Vue({
|
||||
|
|
|
@ -7,21 +7,16 @@
|
|||
'url(' + require(`../assets/${backgroundPic.index}.png`) + ')',
|
||||
}"
|
||||
>-->
|
||||
<div
|
||||
class="bg"
|
||||
>
|
||||
<iframe src="/build/sgs.html" ref="iframe" frameborder="0" width="100%" height="100%" style="position: absolute"></iframe>
|
||||
<div class="bg">
|
||||
<iframe src="/build/sgs.html" ref="iframe" frameborder="0" width="100%" height="100%"
|
||||
style="position: absolute"></iframe>
|
||||
<!-- <div class="body-header"></div> -->
|
||||
<!-- <div class="body-left"></div>-->
|
||||
<!-- <div class="body-right"></div>-->
|
||||
<!-- <div class="body-bottom"></div>-->
|
||||
<dv-loading v-if="loading">Loading...</dv-loading>
|
||||
<div v-else class="host-body">
|
||||
<headerIndex
|
||||
:cdata="{ title: '首页', margin: '40px auto' }"
|
||||
:isShow="false"
|
||||
style="position: relative"
|
||||
/>
|
||||
<headerIndex :cdata="{ title: '首页', margin: '40px auto' }" :isShow="false" style="position: relative" />
|
||||
|
||||
<div class="body-box">
|
||||
<!-- 第三行数据 -->
|
||||
|
@ -120,6 +115,10 @@
|
|||
<div class="bottom-box">
|
||||
<!-- <dv-border-box-13> </dv-border-box-13>
|
||||
<dv-border-box-12> </dv-border-box-12> -->
|
||||
<div class="baseBlock changeCar" @click='goPage(1)' v-show="isShow">
|
||||
<img src="../assets/car/car.png" alt="">
|
||||
<p>停车场1</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer-nav">
|
||||
<!-- <div class="carChange" v-show="carChangeShow">
|
||||
|
@ -136,8 +135,7 @@
|
|||
</div>
|
||||
<!-- <div class="baseBlock carAdmin" @mouseover="mouseOver"
|
||||
@mouseleave="mouseLeave"> -->
|
||||
<div class="baseBlock carAdmin" @mouseover="mouseOver"
|
||||
@mouseleave="mouseLeave">
|
||||
<div class="baseBlock carAdmin" @mouseover="mouseOver" @mouseleave="mouseLeave">
|
||||
<div class="carChange" v-show="carChangeShow">
|
||||
<!-- <div class="carChange"> -->
|
||||
<div class="carMange" @click="goPage(0)">
|
||||
|
|
|
@ -5,10 +5,12 @@
|
|||
backgroundImage:
|
||||
'url(' + require(`../../../assets/${backgroundPic.index}.png`) + ')',
|
||||
}"> -->
|
||||
<iframe src="/wisdom/wisdomMap.html" frameborder="0" width="100%" height="100%" style="position: absolute"></iframe>
|
||||
<!-- <iframe src="/wisdom/wisdomMap.html" frameborder="0" width="100%" height="100%" style="position: absolute"></iframe> -->
|
||||
<!-- <div class="body-left"></div>
|
||||
<div class="body-right"></div>
|
||||
<div class="body-bottom"></div> -->
|
||||
<iframe :src="buildingUrl" id="ifr" frameborder="0" ref="iframe" width="100%" height="100%"
|
||||
style="position: absolute"></iframe>
|
||||
<dv-loading v-if="loading">Loading...</dv-loading>
|
||||
<div v-else class="host-body" id="wis">
|
||||
<headerIndex :cdata="{ title: '智慧工地', margin: '26px auto' }" style="position: relative" />
|
||||
|
@ -146,6 +148,10 @@ export default {
|
|||
|
||||
data() {
|
||||
return {
|
||||
scenes: '',
|
||||
gongdi:"GongDi",
|
||||
buildingUrl: this.$route.params.wisUrl,
|
||||
// buildingUrl: '/sgs/index.html',
|
||||
backgroundPic: {
|
||||
index: "wisdom/bg",
|
||||
},
|
||||
|
@ -195,8 +201,20 @@ export default {
|
|||
BasicBox,
|
||||
CustomDvScrollBoard, Chart1
|
||||
},
|
||||
created() {
|
||||
},
|
||||
mounted() {
|
||||
let that = this;
|
||||
this.cancelLoading();
|
||||
window.OnSceneLoaded = function (scene) {
|
||||
console.log("scene", scene);
|
||||
that.scenes = scene
|
||||
console.log("that.scenes", that.scenes)
|
||||
window.GotoScene(that.gongdi)
|
||||
// window.FloorBase('true')
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
beforeDestroy() {
|
||||
clearInterval(this.timing);
|
||||
|
|
Loading…
Reference in New Issue