park_deatil.vue 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. <template>
  2. <view class="content">
  3. <view class="page-section-spacing" style="width: 100%;">
  4. <swiper class="swiper"
  5. indicator-dots="true"
  6. autoplay="true"
  7. duration="500"
  8. style="height:300rpx">
  9. <swiper-item v-for="(item , index) in swiperList" :key="index">
  10. <image :src="item.img" mode="aspectFill" style="width: 100%;height: 100%;"></image>
  11. </swiper-item>
  12. </swiper>
  13. </view>
  14. <view class="header-detail-box">
  15. <view class="header-title">
  16. {{detailObj.parkName}}
  17. </view>
  18. <view class="header-content-box display-around display-wrap">
  19. <view class="display-between-column items-center width-30 margin-bottom-20">
  20. <view class="display-flex-start"><image src="/static/park/detail/enterprise.png" mode="aspectFill" class="park-footer-img"></image>{{detailObj.nums}}</view>
  21. <view class="park-footer-font">入驻企业</view>
  22. </view>
  23. <view class="display-between-column items-center width-30 margin-bottom-20">
  24. <view class="display-flex-start">
  25. <image src="/static/park/detail/mu.png" mode="aspectFill" class="park-footer-img"></image>
  26. {{detailObj.area1}}<text style="font-size: 12rpx;">万亩</text>
  27. </view>
  28. <view class="park-footer-font">占地亩数</view>
  29. </view>
  30. <view class="display-between-column items-center width-30 margin-bottom-20">
  31. <view class="display-flex-start">
  32. <image src="/static/park/detail/rent.png" mode="aspectFill" class="park-footer-img"></image>
  33. {{detailObj.price}}<text style="font-size: 12rpx;">元/㎡/月</text>
  34. </view>
  35. <view class="park-footer-font">租赁价格</view>
  36. </view>
  37. <view class="display-between-column items-center width-30 margin-bottom-20">
  38. <view class="display-flex-start">
  39. <image src="/static/park/detail/area.png" mode="aspectFill" class="park-footer-img"></image>
  40. {{detailObj.area2}}<text style="font-size: 12rpx;">万㎡</text>
  41. </view>
  42. <view class="park-footer-font">建设面积</view>
  43. </view>
  44. <view class="display-between-column items-center width-30 margin-bottom-20">
  45. <view class="display-flex-start">
  46. <image src="/static/park/detail/area1.png" mode="aspectFill" class="park-footer-img"></image>
  47. {{detailObj.area3}}<text style="font-size: 12rpx;">万㎡</text>
  48. </view>
  49. <view class="park-footer-font">出租面积</view>
  50. </view>
  51. <view class="display-between-column items-center width-30 margin-bottom-20">
  52. <view class="display-flex-start"><image src="/static/park/detail/level.png" mode="aspectFill" class="park-footer-img"></image>{{detailObj.level}}</view>
  53. <view class="park-footer-font">园区级别</view>
  54. </view>
  55. </view>
  56. </view>
  57. <view class="header-detail-box">
  58. <view class="header-title">
  59. 园区基本信息
  60. </view>
  61. <view class="display-around-column content-font">
  62. <view class="display-flex-start items-center margin-bottom-20">
  63. <view class="width-30 margin-left-60 color-cf">运营机构</view>
  64. <view>{{detailObj.parkName}}</view>
  65. </view>
  66. <view class="display-flex-start items-center margin-bottom-20">
  67. <view class="width-30 margin-left-60 color-cf">产业定位</view>
  68. <view>{{detailObj.direction}}</view>
  69. </view>
  70. <view class="display-flex-start items-center margin-bottom-20">
  71. <view class="width-30 margin-left-60 color-cf">园区类型</view>
  72. <view>{{detailObj.type}}</view>
  73. </view>
  74. <view class="display-flex-start items-center margin-bottom-20">
  75. <view class="width-30 margin-left-60 color-cf">物业费</view>
  76. <view>{{detailObj.property}}<text style="font-size: 16rpx;">元/㎡/月</text></view>
  77. </view>
  78. <view class="display-flex-start items-center margin-bottom-20">
  79. <view class="width-30 margin-left-60 color-cf">电费</view>
  80. <view>{{detailObj.elePrice}}<text style="font-size: 16rpx;">KW·h</text></view>
  81. </view>
  82. <view class="display-flex-start items-center margin-bottom-20">
  83. <view class="width-30 margin-left-60 color-cf">水费</view>
  84. <view>{{detailObj.waterPrice}}<text style="font-size: 16rpx;">m³</text></view>
  85. </view>
  86. <view class="display-flex-start items-center margin-bottom-20">
  87. <view class="width-30 margin-left-60 color-cf">一层楼高</view>
  88. <view>{{detailObj.oneHeight}}<text style="font-size: 16rpx;">m</text></view>
  89. </view>
  90. <view class="display-flex-start items-center margin-bottom-20">
  91. <view class="width-30 margin-left-60 color-cf">最大承重</view>
  92. <view>{{detailObj.bearing}}<text style="font-size: 16rpx;">kg</text></view>
  93. </view>
  94. <view class="display-flex-start items-center margin-bottom-20">
  95. <view class="width-30 margin-left-60 color-cf">联系电话</view>
  96. <view @click="makeCall(detailObj.tel)" style="color: #007AFF;">{{detailObj.tel}}</view>
  97. </view>
  98. <view class="display-flex-start items-center">
  99. <view class="width-30 margin-left-60 color-cf">详细地址</view>
  100. <view>{{detailObj.address}}</view>
  101. </view>
  102. </view>
  103. <map style="width: 100%;height: 300rpx;margin-top: 20rpx;" :latitude="latitude" :longitude="longitude" :markers="covers" @tap="goTxMap(latitude,longitude)">
  104. </map>
  105. </view>
  106. <view class="detail-footer-tabs">
  107. <v-tabs v-model="current" :tabs="tabs" @change="changeTab"></v-tabs>
  108. <view class="tabs-box">
  109. <view v-if="current == 0" class="margin-bottom-20 content-font">
  110. {{detailObj.introduce}}
  111. </view>
  112. <view v-if="current == 1" class="margin-bottom-20 content-font">
  113. {{detailObj.facilities}}
  114. </view>
  115. </view>
  116. </view>
  117. <footer-share style="width: 100%;" :isCollection="false"></footer-share>
  118. </view>
  119. </view>
  120. </template>
  121. <script>
  122. export default {
  123. data() {
  124. return {
  125. swiperList:[
  126. {
  127. img:'/static/swiper/swiper1.jpg'
  128. },
  129. {
  130. img:'/static/swiper/swiper2.jpg'
  131. },
  132. ],
  133. detailObj:{
  134. parkName:'新鸿辉工业园',
  135. nums:484,
  136. area1:1,
  137. price:20,
  138. area2:1.2,
  139. area3:0.9,
  140. level:'区级',
  141. direction:'制造,智能制造',
  142. type:'工业厂房,办公写字楼,商业综合体',
  143. property:1,
  144. elePrice:1.1,
  145. waterPrice:8,
  146. oneHeight:4.5,
  147. bearing:750, //承重
  148. tel:'81190876',
  149. address:'西咸新区空港新城底张镇',
  150. introduce:'新鸿辉工业园坐落于陕西省西安市西咸新区空港新城底张镇,占地面积一万平方米,内有大小企业共484家。',
  151. facilities:'食堂、停车场、公寓、咖啡厅、便利店' //设施
  152. },
  153. latitude: 39.909,
  154. longitude: 116.39742,
  155. covers: [{
  156. latitude: 39.909,
  157. longitude: 116.39742,
  158. }],
  159. current: 0,
  160. tabs: ['园区介绍', '配套设施']
  161. }
  162. },
  163. onLoad(option) {
  164. console.log(option)
  165. },
  166. methods: {
  167. makeCall(tel){
  168. uni.makePhoneCall({
  169. phoneNumber:tel
  170. })
  171. },
  172. goTxMap(la,lo){
  173. uni.openLocation({
  174. latitude:la,
  175. longitude:lo,
  176. name:'新鸿辉工业园',
  177. address:'新鸿辉工业园'
  178. })
  179. },
  180. changeTab(index) {
  181. console.log('当前选中的项:' + index)
  182. }
  183. }
  184. }
  185. </script>
  186. <style>
  187. .content {
  188. display: flex;
  189. flex-direction: column;
  190. align-items: center;
  191. justify-content: center;
  192. }
  193. .logo {
  194. height: 200rpx;
  195. width: 200rpx;
  196. margin-top: 200rpx;
  197. margin-left: auto;
  198. margin-right: auto;
  199. margin-bottom: 50rpx;
  200. }
  201. .text-area {
  202. display: flex;
  203. justify-content: center;
  204. }
  205. .title {
  206. font-size: 36rpx;
  207. color: #8f8f94;
  208. }
  209. .header-title {
  210. font-size: 28rpx;
  211. font-weight: 600;
  212. line-height: 36rpx;
  213. letter-spacing: 0.02em;
  214. color: #0D1937;
  215. margin: 20rpx 0 25rpx 10rpx;
  216. }
  217. .header-content-box {
  218. font-size: 24rpx;
  219. }
  220. .header-detail-box {
  221. width: 90%;
  222. border-radius: 10rpx;
  223. box-shadow: 0px 2px 16px rgba(0, 0, 0, 0.1);
  224. margin-top: 20rpx;
  225. padding: 20rpx;
  226. }
  227. .park-footer-img{
  228. width: 24rpx;
  229. height: 24rpx;
  230. margin-right: 6rpx;
  231. }
  232. .park-footer-font {
  233. color: #CFCFCF;
  234. font-size: 19rpx;
  235. margin-top: 10rpx;
  236. }
  237. .width-30 {
  238. width: 30%;
  239. }
  240. .content-font {
  241. font-size: 20rpx;
  242. }
  243. .margin-left-60 {
  244. margin-left: 60rpx;
  245. }
  246. .margin-bottom-20 {
  247. margin-bottom: 20rpx;
  248. }
  249. .color-cf {
  250. color: #ccc;
  251. }
  252. .detail-footer-tabs {
  253. width: 90%;
  254. padding: 20rpx;
  255. margin-bottom:80rpx;
  256. }
  257. .tabs-box {
  258. padding-left: 20rpx;
  259. margin-top: 20rpx;
  260. }
  261. </style>