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