detail.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. <template>
  2. <view class="container">
  3. <!-- 顶部民宿图片区域 -->
  4. <view class="banner">
  5. <img class="img" src="../../static/index/banner.png" />
  6. <view class="slogan">
  7. <img src="../../static/index/slogan.png" />
  8. </view>
  9. </view>
  10. <!-- 民宿详细信息区域 -->
  11. <view class="detail">
  12. <view class="detail_name">民宿名称</view>
  13. <view class="detail_info">
  14. <view class="info_left">2021年装修|2023年开业</view>
  15. <view class="info_right">
  16. 设施/详情
  17. <img src="../../static/index/right.png" />
  18. </view>
  19. </view>
  20. <view class="detail_group">
  21. <view class="group_item">
  22. <img src="../../static/index/meeting.png" />
  23. 会议室
  24. </view>
  25. <view class="group_item">
  26. <img src="../../static/index/brekker.png" />
  27. 含早
  28. </view>
  29. <view class="group_item">
  30. <img src="../../static/index/parking.png" />
  31. 免费停车场
  32. </view>
  33. </view>
  34. <view class="address">
  35. <view class="address_left">宜春市靖安县北高速路口什么路899号</view>
  36. <view class="address_right">
  37. <view class="right_box">
  38. <img src="../../static/index/map.png" />
  39. </view>
  40. <view class="right_box">
  41. <img src="../../static/index/phone.png" />
  42. </view>
  43. </view>
  44. </view>
  45. <view class="distance">距离我520km</view>
  46. </view>
  47. <!-- 房型信息区域 -->
  48. <view class="body">
  49. <view class="body_header">123</view>
  50. <view class="body_content">456</view>
  51. </view>
  52. </view>
  53. </template>
  54. <script>
  55. export default {
  56. data() {
  57. return {}
  58. },
  59. onLoad(options) {
  60. // console.log(JSON.parse(options.info))
  61. }
  62. }
  63. </script>
  64. <style lang="scss" scoped>
  65. .container {
  66. display: flex;
  67. flex-direction: column;
  68. position: relative;
  69. min-height: 100vh;
  70. background-color: #ebeced;
  71. .banner {
  72. position: relative;
  73. margin-top: 20rpx;
  74. width: 750rpx;
  75. height: 422rpx;
  76. .img {
  77. width: 100%;
  78. height: 100%;
  79. }
  80. .slogan {
  81. position: absolute;
  82. top: 0;
  83. left: 0;
  84. display: flex;
  85. justify-content: center;
  86. align-items: center;
  87. width: 163rpx;
  88. height: 60rpx;
  89. background-color: rgba(255, 255, 255, 0.4);
  90. img {
  91. width: 125rpx;
  92. height: 44rpx;
  93. }
  94. }
  95. }
  96. .detail {
  97. position: absolute;
  98. top: 265rpx;
  99. left: 20rpx;
  100. box-sizing: border-box;
  101. padding: 0 30rpx;
  102. width: 710rpx;
  103. height: 254rpx;
  104. border-radius: 10rpx;
  105. background-color: #fff;
  106. .detail_name {
  107. margin-top: 25rpx;
  108. font-size: 34rpx;
  109. font-weight: bold;
  110. }
  111. .detail_info {
  112. display: flex;
  113. justify-content: space-between;
  114. margin-top: 10rpx;
  115. .info_left {
  116. color: #999999;
  117. font-size: 20rpx;
  118. }
  119. .info_right {
  120. display: flex;
  121. align-items: center;
  122. color: #096562;
  123. font-size: 24rpx;
  124. img {
  125. margin-left: 6rpx;
  126. width: 10rpx;
  127. height: 20rpx;
  128. }
  129. }
  130. }
  131. .detail_group {
  132. display: flex;
  133. flex-wrap: wrap;
  134. margin-top: 5rpx;
  135. .group_item {
  136. display: flex;
  137. align-items: center;
  138. margin-right: 10rpx;
  139. color: #999999;
  140. font-size: 20rpx;
  141. img {
  142. margin-right: 5rpx;
  143. width: 22rpx;
  144. height: 22rpx;
  145. }
  146. }
  147. }
  148. .address {
  149. display: flex;
  150. justify-content: space-between;
  151. margin-top: 8rpx;
  152. font-size: 28rpx;
  153. font-weight: bold;
  154. .address_left {
  155. width: 480rpx;
  156. overflow: hidden;
  157. text-overflow: ellipsis;
  158. white-space: nowrap;
  159. }
  160. .address_right {
  161. display: flex;
  162. .right_box {
  163. margin-left: 28rpx;
  164. width: 50rpx;
  165. height: 78rpx;
  166. img {
  167. width: 100%;
  168. height: 100%;
  169. }
  170. }
  171. }
  172. }
  173. .distance {
  174. margin-top: -35rpx;
  175. color: #999999;
  176. font-size: 24rpx;
  177. }
  178. }
  179. .body {
  180. position: absolute;
  181. top: 539rpx;
  182. left: 20rpx;
  183. width: 710rpx;
  184. border-radius: 10rpx;
  185. background-color: #fff;
  186. .body_header {
  187. height: 150rpx;
  188. border-radius: 10rpx 10rpx 0 0;
  189. background-color: skyblue;
  190. }
  191. .body_content {
  192. }
  193. }
  194. }
  195. </style>