<template>
|
<WebViewPlus :src="`${viewUrl}`" @webMessage="onPostMessage"/>
|
</template>
|
<script setup>
|
import {onHide, onLoad, onShow} from "@dcloudio/uni-app";
|
import WebViewPlus from "@/components/WebViewPlus.vue";
|
import {getWebViewUrl} from "@/utils/index.js";
|
|
const viewUrl = ref('')
|
const wayLineJodInfoId = ref(null)
|
function onPostMessage(event) {
|
|
}
|
|
onLoad((options) => {
|
wayLineJodInfoId.value = options.wayLineJodInfoId
|
viewUrl.value = getWebViewUrl('/DroneConsole', {wayLineJodInfoId: wayLineJodInfoId.value})
|
})
|
|
|
// onShow(() => {
|
// // #ifdef APP-PLUS
|
// plus.screen.lockOrientation("landscape-primary");
|
// // #endif
|
// });
|
//
|
// onHide(() => {
|
// // #ifdef APP-PLUS
|
// plus.screen.lockOrientation("portrait-primary");
|
// // #endif
|
// });
|
</script>
|
<style scoped lang="scss">
|
|
</style>
|