index.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <template>
  2. <div class="housingResources">
  3. <van-tabs :active="active" @change="onChange">
  4. <van-tab title="房源查询" :name="0">
  5. <houseList />
  6. </van-tab>
  7. <van-tab title="我的预定" :name="1">
  8. <myReservation />
  9. </van-tab>
  10. </van-tabs>
  11. </div>
  12. </template>
  13. <script>
  14. import houseList from "./components/houseList.vue";
  15. import myReservation from "./components/myReservation.vue";
  16. export default {
  17. name: "index",
  18. components:{
  19. houseList,
  20. myReservation
  21. },
  22. data(){
  23. return{
  24. active:0
  25. }
  26. },
  27. methods:{
  28. onChange(){
  29. }
  30. }
  31. }
  32. </script>
  33. <style lang="scss">
  34. .housingResources{
  35. .van-checkbox-group{
  36. display: flex;
  37. flex-wrap: wrap;
  38. .van-checkbox{
  39. margin-right: 24rpx;
  40. }
  41. .van-checkbox__label {
  42. padding-left: 6rpx;
  43. font-size: 28rpx;
  44. color: rgba(102, 102, 102, 1);
  45. }
  46. .van-checkbox__icon{
  47. width: 30rpx;
  48. height: 30rpx;
  49. }
  50. .van-icon, .van-icon:before {
  51. font-size: 24rpx;
  52. }
  53. .van-checkbox__icon--checked {
  54. background: rgba(3, 101, 249, 1);
  55. }
  56. }
  57. }
  58. .myReservation{
  59. margin-top: 24rpx;
  60. display: flex;
  61. flex-direction: column;
  62. align-items: center;
  63. padding-bottom: 100rpx;
  64. .historyItem{
  65. width: 686rpx;
  66. padding: 24rpx 0;
  67. background: white;
  68. box-sizing: border-box;
  69. position: relative;
  70. border-radius: 16rpx;
  71. margin-bottom: 24rpx;
  72. .tags{
  73. width: 160rpx;
  74. height: 56rpx;
  75. position: absolute;
  76. top: 0;
  77. right: 0;
  78. display: flex;
  79. align-items: center;
  80. justify-content: center;
  81. font-size: 26rpx;
  82. background-size: 100%;
  83. box-sizing: border-box;
  84. }
  85. .dqrTag{
  86. background: url('https://www.idea-co-sf.com/gardenProduct/image/bj05.png') no-repeat;
  87. color: rgba(226, 81, 0, 1);
  88. }
  89. .yslTag{
  90. background: url('https://www.idea-co-sf.com/gardenProduct/image/bj06.png') no-repeat;
  91. color: rgba(3, 101, 249, 1);
  92. }
  93. .historyItemTitle{
  94. padding: 8rpx 32rpx;
  95. width: 480rpx;
  96. color: rgba(34, 34, 34, 1);
  97. font-size: 32rpx;
  98. line-height: 40rpx;
  99. font-weight: 500;
  100. }
  101. .historyItemInfo{
  102. color: rgba(102, 102, 102, 1);
  103. font-size: 28rpx;
  104. padding: 10rpx 32rpx;
  105. }
  106. .historyItemBottom{
  107. display: flex;
  108. justify-content: flex-end;
  109. align-items: center;
  110. padding: 28rpx 32rpx 0 32rpx;
  111. border-top: 1px solid rgba(232, 237, 245, 1);
  112. margin-top: 22rpx;
  113. .btn{
  114. display: flex;
  115. align-items: center;
  116. justify-content: center;
  117. font-size: 28rpx;
  118. width: 160rpx;
  119. height: 60rpx;
  120. border-radius: 32rpx;
  121. border: 2rpx solid rgba(255, 107, 24, 1);
  122. color:rgba(255, 107, 24, 1);
  123. &::after{
  124. border: none;
  125. }
  126. }
  127. .zcBtn{
  128. background: linear-gradient( 316deg, #84AAFF 0%, #0365F9 100%);
  129. color: white;
  130. border: none;
  131. margin-left: 32rpx;
  132. }
  133. .yslBtn{
  134. border: none;
  135. background: rgba(236, 239, 243, 1);
  136. color: rgba(136, 136, 136, 1);
  137. }
  138. }
  139. }
  140. }
  141. </style>