index.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. <template>
  2. <view class="hotel">
  3. <zs-img class="banner" width="750rpx" height="556rpx" src="http://hyxhsh.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/bdb/user/avatar/y82Lt1MyVdPu5f5f6895568756dbbea184cccce3825b.png/1.png"></zs-img>
  4. <view class="search-box">
  5. <view class="address-box">
  6. <view class="address">
  7. 重庆江北国际机场T3航站楼楼楼楼楼楼楼楼
  8. </view>
  9. <image class="more" src="../../static/right.png" mode=""></image>
  10. <view class="nearby">
  11. 附近酒店
  12. </view>
  13. <image class="position" src="../../static/rePosition.png" mode=""></image>
  14. </view>
  15. <view class="chooose-box">
  16. <view class="time-box">
  17. <view class="start-time">
  18. 03月07日
  19. </view>
  20. <view class="day">
  21. 周四
  22. </view>
  23. <view class="line">
  24. </view>
  25. <view class="end-time">
  26. 03月07日
  27. </view>
  28. <view class="day">
  29. 周五
  30. </view>
  31. </view>
  32. <view class="total">
  33. 共1晚
  34. <image class="more" src="../../static/right.png" mode=""></image>
  35. </view>
  36. </view>
  37. <view class="input-box">
  38. <input class="input" type="text" v-model="value" placeholder="搜索酒店名/地名/关键词" />
  39. <image class="more" src="../../static/right.png" mode=""></image>
  40. </view>
  41. <view class="btn-box">
  42. <button class="btn" type="default">特惠购票</button>
  43. </view>
  44. </view>
  45. </view>
  46. </template>
  47. <script>
  48. export default {
  49. data() {
  50. return {
  51. value: ''
  52. }
  53. },
  54. }
  55. </script>
  56. <style lang="scss" scoped>
  57. .hotel{
  58. background: #F9F9F9;
  59. min-height: 100vh;
  60. .banner{
  61. }
  62. .search-box{
  63. padding: 28rpx 24rpx;
  64. width: 702rpx;
  65. background: #FFFFFF;
  66. border-radius: 16rpx 16rpx 16rpx 16rpx;
  67. margin: 0 24rpx 20rpx;
  68. position: relative;
  69. top: -224rpx;
  70. box-sizing: border-box;
  71. .address-box{
  72. display: flex;
  73. align-items: center;
  74. padding-bottom: 30rpx;
  75. .address{
  76. flex: 1;
  77. font-weight: 600;
  78. font-size: 32rpx;
  79. color: #222222;
  80. white-space: nowrap;
  81. overflow: hidden;
  82. text-overflow: ellipsis;
  83. }
  84. .more{
  85. width: 48rpx;
  86. height: 48rpx;
  87. margin: 0 16rpx;
  88. }
  89. .nearby{
  90. font-weight: 300;
  91. font-size: 24rpx;
  92. color: #222222;
  93. }
  94. .position{
  95. width: 48rpx;
  96. height: 48rpx;
  97. }
  98. }
  99. .chooose-box{
  100. padding: 78rpx 0 24rpx;
  101. display: flex;
  102. align-items: center;
  103. justify-content: space-between;
  104. border-top:1rpx solid #F0F0F0;
  105. border-bottom: 1rpx solid #F0F0F0;
  106. .time-box{
  107. display: flex;
  108. align-items: flex-end;
  109. .start-time,.end-time{
  110. font-weight: 600;
  111. font-size: 32rpx;
  112. color: #222222;
  113. position: relative;
  114. }
  115. .start-time::before{
  116. content: '入住';
  117. position: absolute;
  118. top:calc(-100% - 20rpx);
  119. left: 0;
  120. font-weight: 300;
  121. font-size: 24rpx;
  122. color: #222222;
  123. }
  124. .end-time::before{
  125. content: '离店';
  126. position: absolute;
  127. top:calc(-100% - 20rpx);
  128. left: 0;
  129. font-weight: 300;
  130. font-size: 24rpx;
  131. color: #222222;
  132. }
  133. .line{
  134. font-weight: 600;
  135. font-size: 32rpx;
  136. color: #222222;
  137. margin: 0 16rpx;
  138. }
  139. .day{
  140. font-weight: 300;
  141. font-size: 28rpx;
  142. color: #222222;
  143. margin-left: 16rpx;
  144. vertical-align: bottom;
  145. }
  146. }
  147. .total{
  148. display: flex;
  149. align-items: center;
  150. font-weight: 300;
  151. font-size: 24rpx;
  152. color: #222222;
  153. .more{
  154. width: 48rpx;
  155. height: 48rpx;
  156. }
  157. }
  158. }
  159. .input-box{
  160. position: relative;
  161. line-height: 84rpx;
  162. border-bottom: 1rpx solid #F0F0F0;
  163. .input{
  164. width: 100%;
  165. height: 84rpx;
  166. line-height: 84rpx;
  167. padding-right: 48rpx;
  168. font-size: 24rpx;
  169. color: #222222;
  170. }
  171. .more{
  172. width: 48rpx;
  173. height: 48rpx;
  174. position: absolute;
  175. top: 50%;
  176. right: 0%;
  177. transform: translateY(-50%);
  178. }
  179. }
  180. .btn-box{
  181. padding-top: 28rpx;
  182. .btn{
  183. height: 80rpx;
  184. background: #EE4320;
  185. border-radius: 40rpx;
  186. font-weight: 600;
  187. font-size: 28rpx;
  188. color: #FFFFFF;
  189. }
  190. }
  191. }
  192. }
  193. </style>