detailInfo.vue 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  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" @click="handlePhone('18320846714')">联系电话: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. handlePhone(phone) {
  60. uni.makePhoneCall({
  61. phoneNumber: phone
  62. })
  63. }
  64. }
  65. }
  66. </script>
  67. <style lang="scss" scoped>
  68. .container {
  69. position: relative;
  70. height: 100vh;
  71. overflow: hidden;
  72. background-color: #fff;
  73. .header {
  74. position: relative;
  75. height: 480rpx;
  76. color: #fff;
  77. overflow: hidden;
  78. img {
  79. width: 100%;
  80. }
  81. .header_title {
  82. position: absolute;
  83. top: 65rpx;
  84. left: 308rpx;
  85. color: #fff;
  86. font-size: 28rpx;
  87. }
  88. .header_icon {
  89. position: absolute;
  90. top: 76rpx;
  91. left: 5rpx;
  92. width: 47rpx;
  93. height: 47rpx;
  94. }
  95. .header_name {
  96. position: absolute;
  97. top: 155rpx;
  98. left: 30rpx;
  99. font-size: 40rpx;
  100. font-weight: bold;
  101. }
  102. .header_info {
  103. position: absolute;
  104. top: 230rpx;
  105. left: 30rpx;
  106. font-size: 24rpx;
  107. }
  108. .header_types {
  109. position: absolute;
  110. top: 281rpx;
  111. left: 30rpx;
  112. display: flex;
  113. font-size: 20rpx;
  114. .types_item {
  115. box-sizing: border-box;
  116. padding: 0 10rpx;
  117. margin-right: 15rpx;
  118. height: 30rpx;
  119. border-radius: 9rpx;
  120. background-color: rgba(255, 255, 255, 0.2);
  121. }
  122. }
  123. }
  124. .body {
  125. position: absolute;
  126. top: 350rpx;
  127. left: 0;
  128. right: 0;
  129. box-sizing: border-box;
  130. padding: 0 30rpx 50rpx;
  131. height: calc(100vh - 350rpx);
  132. border-radius: 20rpx 20rpx 0 0;
  133. background-color: #fff;
  134. overflow-y: auto;
  135. .body_title {
  136. line-height: 90rpx;
  137. font-size: 32rpx;
  138. font-weight: bold;
  139. }
  140. .body_towns {
  141. line-height: 55rpx;
  142. font-size: 28rpx;
  143. }
  144. .body_address {
  145. display: flex;
  146. height: auto;
  147. line-height: 55rpx;
  148. .address_text {
  149. width: 125rpx;
  150. }
  151. img {
  152. margin-left: 20rpx;
  153. width: 28rpx;
  154. height: 28rpx;
  155. }
  156. }
  157. .body_phone {
  158. line-height: 55rpx;
  159. font-size: 28rpx;
  160. }
  161. .body_box {
  162. display: flex;
  163. align-items: center;
  164. .box_icon {
  165. width: 36rpx;
  166. height: 36rpx;
  167. }
  168. .box_icon2 {
  169. margin-top: 4rpx;
  170. width: 40rpx;
  171. height: 40rpx;
  172. }
  173. .box_text {
  174. margin-left: 16rpx;
  175. font-size: 28rpx;
  176. }
  177. }
  178. .body_time {
  179. display: flex;
  180. align-items: center;
  181. margin: 20rpx 0;
  182. color: #808080;
  183. font-size: 24rpx;
  184. .time_start {
  185. margin-left: 50rpx;
  186. margin-right: 60rpx;
  187. }
  188. }
  189. .body_desc {
  190. margin: 10rpx 0 0 50rpx;
  191. line-height: 45rpx;
  192. color: #808080;
  193. font-size: 24rpx;
  194. }
  195. }
  196. }
  197. </style>