vshare.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. <template>
  2. <view class="warrbox flexdc" :style="'padding-top:'+nvaHeight+'px;'">
  3. <view class="navbox">
  4. <uni-nav-bar title="地址分享" left-icon="left" @clickLeft="getBackFn" color="#FFFFFF" :background-color="backgroundColor" :border="false" statusBar='true' fixed="true">
  5. </uni-nav-bar>
  6. </view>
  7. <!-- <image :src="mbg" class="navbg"></image> -->
  8. <view class="vdmain flexdc">
  9. <view class="flex1">
  10. <view class="flexcc mb26">
  11. <view class="line lia"></view>
  12. <view class="vdtop">邀请详情</view>
  13. <view class="line lib"></view>
  14. </view>
  15. <view class="vdlist mb26">
  16. <view class="list"><text>访客姓名:</text>王女士</view>
  17. <view class="list"><text>来访时间:</text>2024-11-20 10:00</view>
  18. <view class="flexc">
  19. <view class="list mw50"><text>来访人数:</text>1人</view>
  20. <view class="list mw50"><text>来访事由:</text>亲友</view>
  21. </view>
  22. <view class="flexc">
  23. <view class="list mw50"><text>车牌号码:</text>皖A B8888</view>
  24. <view class="list mw50"><text>手机号码:</text>1870566558</view>
  25. </view>
  26. </view>
  27. <!-- 地图 -->
  28. <view class="mb22">
  29. <map
  30. id="container"
  31. class="map"
  32. :latitude="center.lat"
  33. :longitude="center.lng"
  34. @poitap="onClcikImgMap"
  35. @tap="onClcikImgMap"
  36. :markers="covers"
  37. scale="17"
  38. :style="'width: 638rpx;height:280rpx;'"
  39. ></map>
  40. </view>
  41. <view class="adrbox mb16">
  42. <view class="tit mb10">分享人</view>
  43. <view class="txt">袁玥</view>
  44. </view>
  45. <view class="adrbox mb16">
  46. <view class="tit mb10">房屋地址</view>
  47. <view class="txt">安徽省合肥市蜀山区高新技术产业开发区幸福大街88号
  48. 幸福小区5#1304</view>
  49. </view>
  50. </view>
  51. </view>
  52. <loading></loading>
  53. </view>
  54. </template>
  55. <script>
  56. import config from '@/config'
  57. const baseUrl = config.baseUrl
  58. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  59. export default{
  60. components:{},
  61. data(){
  62. return{
  63. check: require('@/mine/static/check.png'),
  64. ncheck: require('@/mine/static/ncheck.png'),
  65. nvaHeight:44,
  66. checkflag:false,
  67. backgroundColor: "transparent",
  68. baseUrl:config.baseUrl,
  69. type:'',
  70. finshtype:3,
  71. center:{
  72. lng:'117.211954',
  73. lat:'31.839676',
  74. },
  75. covers: [{
  76. id:0,
  77. latitude: '31.839676',
  78. longitude: '117.211954',
  79. width:18, //宽
  80. height:19, //高
  81. iconPath: require("@/static/images/home/adr.png"),
  82. anchor:{x: 0.5, y: 0.5}
  83. }],
  84. }
  85. },
  86. onLoad: function() {
  87. uni.getSystemInfo({
  88. success: (e) => {
  89. this.nvaHeight = Number(e.statusBarHeight)+44;
  90. }
  91. })
  92. },
  93. onReady() {
  94. this.getcreateMap()
  95. },
  96. onPageScroll(e) {
  97. var scrollTop = Number(e.scrollTop);
  98. if (scrollTop > 0) {
  99. this.backgroundColor = '#0256FD'
  100. } else {
  101. this.backgroundColor = 'transparent'
  102. }
  103. },
  104. methods:{
  105. checkPermi, checkRole,
  106. getcreateMap(){
  107. //mapId 就是你在 map 标签中定义的 id
  108. this.mapContext = uni.createMapContext('container', this);
  109. },
  110. getAssignFn(){
  111. this.type='assign'
  112. },
  113. getCheckFn(){
  114. this.type='assigncheck'
  115. },
  116. getOpenFn(){
  117. },
  118. getBackFn(){
  119. uni.navigateBack({
  120. delta:1
  121. })
  122. },
  123. getClose(){
  124. this.type='';
  125. },
  126. getSure(){
  127. this.type='';
  128. },
  129. getPhoneFn(){
  130. uni.makePhoneCall({
  131. phoneNumber: '114' //仅为示例
  132. });
  133. },
  134. getPreviewImage(arr,idx){
  135. var newArr=[];
  136. arr.forEach(ite=>{
  137. var ds=this.baseUrl+ite
  138. newArr.push(ds)
  139. })
  140. uni.previewImage({
  141. urls: newArr,
  142. current:idx,
  143. success: function(data) {
  144. },
  145. fail: function(err) {
  146. }
  147. });
  148. },
  149. }
  150. }
  151. </script>
  152. <style>
  153. page{background: #F3F3F0;}
  154. </style>
  155. <style lang="scss" scoped>
  156. .warrbox{min-height: 100vh;background: linear-gradient(180deg, #0256FD 0%,#528AF9 60%, rgba(255,255,255,0) 100%) no-repeat;background-size: 100% 722rpx;padding:0 30rpx 26rpx;}
  157. .rfbga{background: #2ACA8E !important;}
  158. .navbg{width: 100%;height: 722rpx;z-index: 0;}
  159. .navbox{position: fixed;left: 0;right: 0;top: 0;z-index: 4; }
  160. .vdmain{z-index: 2;position: relative;background: #FFFFFF;border-radius: 20rpx;flex: 1;padding: 60rpx 26rpx 98rpx;
  161. .line{width: 168rpx;height: 2rpx;
  162. &.lia{background: linear-gradient(270deg, #0256FD 0%, rgba(2,86,253,0) 100%);}
  163. &.lib{background: linear-gradient(90deg, #0256FD 0%, rgba(2,86,253,0) 100%);}
  164. }
  165. .vdtop{font-weight: bold;font-size: 26rpx;color: #272727;margin: 0 32rpx;}
  166. .vdlist{
  167. .list{font-weight: 500;font-size: 26rpx;color: #272727;margin-bottom: 24rpx;}
  168. }
  169. .adrbox{
  170. .tit{font-weight: bold;font-size: 26rpx;color: #272727;}
  171. .txt{font-weight: 500;font-size: 26rpx;color: #666666;line-height: 36rpx;}
  172. .txts{font-weight: 500;font-size: 22rpx;color: #AAAAAA;}
  173. .checkimg{width: 80rpx;height: 40rpx;margin-left: 8rpx;}
  174. }
  175. }
  176. </style>