MapGps.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <script setup>
  2. import { watch, ref } from "vue";
  3. let iframeId = ref("mapGpsIframe");
  4. let url = ref("http://223.83.74.66:18062/nongcun/#/monitorMapLite");
  5. </script>
  6. <template>
  7. <div class="MapGps">
  8. <div class="main">
  9. <!-- <iframe
  10. :id="iframeId" :name="iframeId"
  11. class="iframeCom"
  12. scrolling="auto" frameborder="no" marginwidth="0" marginheight="0"
  13. :src="url"
  14. >
  15. </iframe> -->
  16. </div>
  17. </div>
  18. </template>
  19. <style lang="less" scoped>
  20. .MapGps * {
  21. -moz-user-select: none;
  22. -webkit-user-select: none;
  23. -ms-user-select: none;
  24. -khtml-user-select: none;
  25. user-select: none;
  26. }
  27. .MapGps {
  28. position: fixed;
  29. top: 0px;
  30. right: 0px;
  31. width: 0px;
  32. height: 0px;
  33. .main {
  34. position: fixed;
  35. top: 0px;
  36. left: 0px;
  37. width: 100%;
  38. height: 100%;
  39. z-index: 9;
  40. background-image: url("../../assets/res/img/for.png");
  41. -webkit-background-size: cover;
  42. -moz-background-size: cover;
  43. -o-background-size: cover;
  44. background-size: cover;
  45. background-position: center center;
  46. .iframeCom {
  47. width: 100%;
  48. height: 100%;
  49. position: absolute;
  50. left: 0px;
  51. top: 0px;
  52. z-index: 0;
  53. /* 注意这里必须是被允许穿透点击的,否则堆叠高于了 canvas,则会出现无法点击到canvas了。加了这个即可解决这个问题 */
  54. // pointer-events: none;
  55. }
  56. }
  57. }
  58. </style>