detailInfo.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. <template>
  2. <view class="container">
  3. <!-- 顶部民宿信息区域 -->
  4. <view class="header">
  5. <img src="../../static/my/headerImg.png" />
  6. <!-- 标题区域 -->
  7. <view class="header_title">设施详情</view>
  8. <!-- 返回图标区域 -->
  9. <img class="header_icon" src="../../static/index/left.png" @click="handleBack" />
  10. <!-- 民宿名称区域 -->
  11. <view class="header_name">民宿名称</view>
  12. <!-- 开业时间区域 -->
  13. <view class="header_info">2017年开业 I 2017年装修 I 114间客房</view>
  14. <!-- 类型区域 -->
  15. <view class="header_types">
  16. <view class="types_item">包吃住型</view>
  17. </view>
  18. </view>
  19. <!-- 主体内容详细民宿信息区域 -->
  20. <view class="body">
  21. <view class="body_title">基本信息</view>
  22. <view class="body_towns">所属乡镇:宝峰镇</view>
  23. <view class="body_address">
  24. <view class="address_text">地址:</view>
  25. <view>
  26. 宝峰镇宝峰镇宝峰镇宝峰镇宝峰镇宝峰镇宝峰镇
  27. <img src="../../static/index/address.png" />
  28. </view>
  29. </view>
  30. <view class="body_phone">联系电话:13656895689</view>
  31. <view class="body_title">政策</view>
  32. <view class="body_box">
  33. <img class="box_icon" src="../../static/index/time.png" />
  34. <view class="box_text">入离时间</view>
  35. </view>
  36. <view class="body_time">
  37. <view class="time_start">入住时间:14:00以后</view>
  38. <view class="time_end">离店时间:12点以前</view>
  39. </view>
  40. <view class="body_box">
  41. <img class="box_icon2" src="../../static/index/info.png" />
  42. <view class="box_text">民宿介绍</view>
  43. </view>
  44. <view class="body_desc">
  45. 酒店共18层,设有豪华客房与套房共一百余间。房内优异的观景角度,绝不会错过外滩白昼与黑夜截然不同的精彩。秉承璞硯“一城一画”的美学理念,酒店以兼具东方风情与现代意识的空间营造,完美呈现外滩传承百年的海派文化风骨——现代亦怀旧,摩登亦复古。在这片旧时的十里洋场,今日的金融枢纽中心,璞硯用现代的笔触细致地描摹着岁月迭代的点滴:空间内局部传统造型的精彩沿用、细节工艺的精致雕琢,尽承东方雅贵;整体色调明暗的和谐共处,线条延伸的极简艺术,兼容现代韵律。种种设计巧思,在现代与传统中不断的创建微妙平衡,一如老上海兼容并蓄的文化脉络。
  46. </view>
  47. </view>
  48. </view>
  49. </template>
  50. <script>
  51. export default {
  52. data() {
  53. return {}
  54. },
  55. methods: {
  56. handleBack() {
  57. uni.navigateBack(1)
  58. }
  59. }
  60. }
  61. </script>
  62. <style lang="scss" scoped>
  63. .container {
  64. position: relative;
  65. height: 100vh;
  66. overflow: hidden;
  67. background-color: #fff;
  68. .header {
  69. position: relative;
  70. height: 480rpx;
  71. color: #fff;
  72. overflow: hidden;
  73. img {
  74. width: 100%;
  75. }
  76. .header_title {
  77. position: absolute;
  78. top: 65rpx;
  79. left: 308rpx;
  80. color: #fff;
  81. font-size: 28rpx;
  82. }
  83. .header_icon {
  84. position: absolute;
  85. top: 56rpx;
  86. left: 5rpx;
  87. width: 47rpx;
  88. height: 47rpx;
  89. }
  90. .header_name {
  91. position: absolute;
  92. top: 135rpx;
  93. left: 30rpx;
  94. font-size: 40rpx;
  95. font-weight: bold;
  96. }
  97. .header_info {
  98. position: absolute;
  99. top: 215rpx;
  100. left: 30rpx;
  101. font-size: 24rpx;
  102. }
  103. .header_types {
  104. position: absolute;
  105. top: 261rpx;
  106. left: 30rpx;
  107. display: flex;
  108. font-size: 20rpx;
  109. .types_item {
  110. box-sizing: border-box;
  111. padding: 0 10rpx;
  112. margin-right: 15rpx;
  113. height: 30rpx;
  114. border-radius: 9rpx;
  115. background-color: rgba(255, 255, 255, 0.2);
  116. }
  117. }
  118. }
  119. .body {
  120. position: absolute;
  121. top: 322rpx;
  122. left: 0;
  123. right: 0;
  124. box-sizing: border-box;
  125. padding: 0 30rpx 50rpx;
  126. height: calc(100vh - 322rpx);
  127. border-radius: 20rpx 20rpx 0 0;
  128. background-color: #fff;
  129. overflow-y: auto;
  130. .body_title {
  131. line-height: 90rpx;
  132. font-size: 32rpx;
  133. font-weight: bold;
  134. }
  135. .body_towns {
  136. line-height: 55rpx;
  137. font-size: 28rpx;
  138. }
  139. .body_address {
  140. display: flex;
  141. height: auto;
  142. line-height: 55rpx;
  143. .address_text {
  144. width: 125rpx;
  145. }
  146. img {
  147. margin-left: 20rpx;
  148. width: 28rpx;
  149. height: 28rpx;
  150. }
  151. }
  152. .body_phone {
  153. line-height: 55rpx;
  154. font-size: 28rpx;
  155. }
  156. .body_box {
  157. display: flex;
  158. align-items: center;
  159. .box_icon {
  160. width: 36rpx;
  161. height: 36rpx;
  162. }
  163. .box_icon2 {
  164. margin-top: 4rpx;
  165. width: 40rpx;
  166. height: 40rpx;
  167. }
  168. .box_text {
  169. margin-left: 16rpx;
  170. font-size: 28rpx;
  171. }
  172. }
  173. .body_time {
  174. display: flex;
  175. align-items: center;
  176. margin: 20rpx 0;
  177. color: #808080;
  178. font-size: 24rpx;
  179. .time_start {
  180. margin-left: 50rpx;
  181. margin-right: 60rpx;
  182. }
  183. }
  184. .body_desc {
  185. margin: 10rpx 0 0 50rpx;
  186. line-height: 45rpx;
  187. color: #808080;
  188. font-size: 24rpx;
  189. }
  190. }
  191. }
  192. </style>