| | |
| | | import dayjs from "dayjs"; |
| | | import {useUserStore} from "@/store/index.js"; |
| | | |
| | | const wayLineJodInfoId = ref(null) |
| | | const queryParams = ref({}) |
| | | |
| | | const viewUrl = computed(() => { |
| | | return getWebViewUrl('/DroneConsole', { |
| | | wayLineJodInfoId: wayLineJodInfoId.value, |
| | | }) |
| | | return getWebViewUrl('/DroneConsole', queryParams.value) |
| | | }) |
| | | |
| | | function onPostMessage(data) { |
| | |
| | | } |
| | | |
| | | onLoad((options) => { |
| | | wayLineJodInfoId.value = options.wayLineJodInfoId |
| | | queryParams.value = options |
| | | }) |
| | | |
| | | |
| | | // onShow(() => { |
| | | // // #ifdef APP-PLUS |
| | | // plus.screen.lockOrientation("landscape-primary"); |
| | | // // #endif |
| | | // }); |
| | | // |
| | | // onHide(() => { |
| | | // // #ifdef APP-PLUS |
| | | // plus.screen.lockOrientation("portrait-primary"); |
| | | // // #endif |
| | | // }); |
| | | onShow(() => { |
| | | // #ifdef APP-PLUS |
| | | plus.navigator.setFullscreen(true); // 加入全屏 |
| | | plus.screen.lockOrientation("landscape-primary");//横屏 |
| | | // #endif |
| | | }); |
| | | |
| | | onHide(() => { |
| | | // #ifdef APP-PLUS |
| | | plus.navigator.setFullscreen(false); |
| | | plus.screen.lockOrientation("portrait-primary"); |
| | | // #endif |
| | | }); |
| | | </script> |
| | | <style scoped lang="scss"> |
| | | |