page5.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <template>
  2. <skeleton title="地址导航" titleLine="">
  3. <div class="location animate__animated animate__backInUp">
  4. <img src="./img/location.jpg" />
  5. <div class="head">
  6. <div class="location_icon" @click="toDaohang">
  7. <svg
  8. t="1691454235194"
  9. viewBox="0 0 1024 1024"
  10. version="1.1"
  11. xmlns="http://www.w3.org/2000/svg"
  12. p-id="4917"
  13. width="22"
  14. height="22"
  15. >
  16. <path
  17. d="M97.535919 458.060507c-20.485567 9.580193-33.399691 29.584806-33.691333 52.195779-0.290619 22.603811 12.085246 42.944068 32.307823 53.06252l243.028059 121.499192 121.499192 243.013733c9.973142 19.946284 30.007431 32.32215 52.283784 32.32215 22.944572 0 43.256176-12.898775 52.981678-33.69031L960.158485 83.662445l-11.661597-8.16803-8.165983-11.647271L97.535919 458.060507zM93.662705 510.649236c0.145309-11.254322 6.318916-20.813025 16.510022-25.587771l765.934456-358.2595L347.348498 655.567813 109.489158 536.645306C99.429035 531.615757 93.517395 521.896394 93.662705 510.649236zM538.921651 913.824715c-4.833075 10.338463-14.529925 16.511046-25.958208 16.511046-11.08036 0-20.645203-5.910617-25.611308-15.839757L368.430652 676.649967l528.758686-528.751522L538.921651 913.824715z"
  18. fill="#ffffff"
  19. ></path>
  20. </svg>
  21. <div style="font-size: 12px; height: 1em">路线</div>
  22. </div>
  23. <p style="padding: 1.2em 0">西安航天国际会议中心<br />东方红会议厅</p>
  24. </div>
  25. </div>
  26. <div class="bg bg5 animate__animated animate__backInUp">
  27. <p class="duanluo">联系人:王经理 18991696905</p>
  28. <p class="duanluo">嘉宾入场时间:8月22日 14:30</p>
  29. <p class="duanluo">会议中心电话:85832260</p>
  30. <div class="duanluo">
  31. <p class="left">地址:</p>
  32. <p class="right">
  33. 航天基地京东大道和少陵路十字西北角西安航天国际会议中心东方红会议厅
  34. </p>
  35. </div>
  36. </div>
  37. </skeleton>
  38. </template>
  39. <script setup>
  40. import skeleton from './skeleton.vue';
  41. function toDaohang() {
  42. if (!window.wx) return;
  43. window.wx.checkJsApi({
  44. jsApiList: ['openLocation'],
  45. success: () => {
  46. //打开指定位置
  47. window.wx.openLocation({
  48. latitude: 34.140384, // 纬度,浮点数,范围为90 ~ -90
  49. longitude: 108.98944, // 经度,浮点数,范围为180 ~ -180。
  50. name: '航天基地京东大道和少陵路十字西北角西安航天国际会议中心东方红会议厅', // 位置名
  51. address: '', // 地址详情说明
  52. scale: 18, // 地图缩放级别,整型值,范围从1~28。默认为最大
  53. infoUrl: '', // 在查看位置界面底部显示的超链接,可点击跳转
  54. });
  55. },
  56. });
  57. }
  58. </script>
  59. <style lang="scss">
  60. // 动画库
  61. @import url(./sass/animation.scss);
  62. @import url(./sass/base.scss);
  63. .location {
  64. position: relative;
  65. font-family: PingFangSC-Regular, PingFang SC;
  66. text-align: center;
  67. background: #0007461a;
  68. line-height: 1.5em;
  69. width: 68vw;
  70. height: 68vw;
  71. padding: 10px;
  72. margin: 0 auto;
  73. border-radius: 6px;
  74. border: 1px solid;
  75. border-image: linear-gradient(
  76. 225deg,
  77. rgba(50, 197, 255, 1),
  78. rgba(25, 52, 178, 1)
  79. )
  80. 1 1;
  81. img {
  82. width: 100%;
  83. border-radius: 6px;
  84. }
  85. .head {
  86. position: absolute;
  87. width: 100%;
  88. height: 30%;
  89. left: 10px;
  90. bottom: 10px;
  91. width: calc(100% - 20px);
  92. background-color: #fff;
  93. color: #000;
  94. border-bottom-left-radius: 6px;
  95. border-bottom-right-radius: 6px;
  96. .location_icon {
  97. position: absolute;
  98. border-radius: 50%;
  99. right: 10%;
  100. color: #fff;
  101. background-color: #1360fc;
  102. width: 46px;
  103. height: 46px;
  104. margin-top: -2.5em;
  105. line-height: 1.1em;
  106. text-align: center;
  107. padding-top: 5px;
  108. }
  109. }
  110. }
  111. .bg5 {
  112. .duanluo {
  113. text-indent: 0 !important;
  114. .left,
  115. .right {
  116. display: inline-block;
  117. width: 3.3em;
  118. vertical-align: top;
  119. }
  120. .right {
  121. width: calc(100% - 3.3em);
  122. }
  123. }
  124. }
  125. </style>