map.vue 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <!--
  2. * @Author: suyuanyuan 1205763462@qq.com
  3. * @Date: 2024-05-10 11:04:34
  4. * @LastEditors: suyuanyuan 1205763462@qq.com
  5. * @LastEditTime: 2024-05-10 13:49:26
  6. * @FilePath: \qzcloud-h5\pages\broadband\map\index.vue
  7. * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  8. -->
  9. <template>
  10. <view class="map-box">
  11. <map-Point
  12. @commitCheck="commitCheck"
  13. :mapKey="mapKey"
  14. :showResetting="showResetting"
  15. :listIco="listIco"
  16. :orientationIco="orientationIco"
  17. :resettingIco="resettingIco"
  18. ></map-Point>
  19. </view>
  20. </template>
  21. <script>
  22. import mapPoint from "@/uni_modules/map-Point/components/map-Point/map-Point.vue";
  23. export default {
  24. components: { mapPoint },
  25. data() {
  26. return {
  27. mapKey: "513a86ab1ef90efebd0767716078f61e",
  28. address: "",
  29. latitude: "",
  30. longitude: "",
  31. listIco:
  32. "https://mp-6a7d27e4-49d1-42f7-b4bc-37bc5964c0a8.cdn.bspapp.com/item-inx.png",
  33. orientationIco:
  34. "https://mp-6a7d27e4-49d1-42f7-b4bc-37bc5964c0a8.cdn.bspapp.com/map-inx.png",
  35. resettingIco:
  36. "https://mp-6a7d27e4-49d1-42f7-b4bc-37bc5964c0a8.cdn.bspapp.com/position.png",
  37. showResetting: true,
  38. };
  39. },
  40. methods: {
  41. commitCheck(e) {
  42. uni.$emit("commitMapClick", e);
  43. uni.navigateBack({
  44. delta: 1,
  45. });
  46. },
  47. },
  48. };
  49. </script>
  50. <style lang="scss">
  51. .map-box {
  52. height: 100vh;
  53. width: 100vw;
  54. }
  55. </style>