类型:开发
描述:
This commit is contained in:
@@ -20,10 +20,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="main">
|
<div class="main">
|
||||||
<img v-if="scenicSpotId == 'root000000'" src="@/assets/images/bdc.png" alt="" />
|
<iframe v-if="scenicSpotId == 'root000000' || scenicSpotId == 'root00000000'" width="100%" height="100%" src="/sxzd/sxzd.html"></iframe>
|
||||||
<img v-if="scenicSpotId == 'root00000000'" src="@/assets/images/sxzd.png" alt="" />
|
<iframe v-if="scenicSpotId == '龙桥河'" width="100%" height="100%" src="/lqh/lqh.html"></iframe>
|
||||||
<img v-if="scenicSpotId == '龙桥河'" src="@/assets/images/lqh.jpg" alt="" />
|
|
||||||
<!-- <div class="scenic-box" id="scenic-map"></div> -->
|
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
@@ -97,6 +95,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<video-dialog v-model="videoShow" :src="src" :cameraIndexCode="cameraIndexCode" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
@@ -108,8 +107,7 @@
|
|||||||
import { useScenicStore } from '@/stores/scenic'
|
import { useScenicStore } from '@/stores/scenic'
|
||||||
|
|
||||||
import { useMap } from '@/hooks/map'
|
import { useMap } from '@/hooks/map'
|
||||||
|
import {getPreviewUrlApi} from "@/api/home.js";
|
||||||
import sxzd from '@/assets/images/sxzd.png'
|
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const scenicStore = useScenicStore()
|
const scenicStore = useScenicStore()
|
||||||
@@ -126,6 +124,20 @@
|
|||||||
const handleMore = () => {
|
const handleMore = () => {
|
||||||
router.push('/workOrder')
|
router.push('/workOrder')
|
||||||
}
|
}
|
||||||
|
let src = ref('')
|
||||||
|
let cameraIndexCode = ref('')
|
||||||
|
let videoShow = ref(false)
|
||||||
|
window.addEventListener("message", async(e) => {
|
||||||
|
let {code,data} = await getPreviewUrlApi({
|
||||||
|
type: 'hls',
|
||||||
|
cameraIndexCode:e.data.cameraIndexCode
|
||||||
|
})
|
||||||
|
if(code===200){
|
||||||
|
src.value = data.url
|
||||||
|
cameraIndexCode.value = e.data.cameraIndexCode
|
||||||
|
videoShow.value = true
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// onMounted(() => {
|
// onMounted(() => {
|
||||||
// scenicChange = PubSub.subscribe('scenicChange', (msg, data) => {
|
// scenicChange = PubSub.subscribe('scenicChange', (msg, data) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user