index.less 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. @red: #F01740;
  2. @yellow: #FFE300;
  3. @grey: #666666;
  4. page {
  5. background: #f6f6f6;
  6. font-family: Source Han Sans CN;
  7. .box {
  8. display: flex;
  9. flex-wrap: wrap;
  10. justify-content: space-between;
  11. padding: 20rpx;
  12. font-size: 24rpx;
  13. .hotel {
  14. width: 48%;
  15. padding: 10rpx;
  16. margin-top: 20rpx;
  17. background: #ffffff;
  18. border-radius: 20rpx;
  19. .hotel-image {
  20. width: 100%;
  21. height: 240rpx;
  22. text-align: center;
  23. border-radius: 20rpx;
  24. }
  25. .hotel-name {
  26. margin-top: 10rpx;
  27. min-height: 80rpx;
  28. font-size: 30rpx;
  29. color:#222222;
  30. overflow: hidden; //一定要写
  31. text-overflow: ellipsis; //超出省略号
  32. display: -webkit-box; //一定要写
  33. -webkit-line-clamp: 2; //控制行数
  34. -webkit-box-orient: vertical; //一定要写
  35. }
  36. .hotel-describe {
  37. margin-top: 10rpx;
  38. height: 80rpx;
  39. overflow: hidden; //一定要写
  40. text-overflow: ellipsis; //超出省略号
  41. display: -webkit-box; //一定要写
  42. -webkit-line-clamp: 2; //控制行数
  43. -webkit-box-orient: vertical; //一定要写
  44. }
  45. .price {
  46. display: flex;
  47. color: @red;
  48. margin-top: 10rpx;
  49. .hotel-price {
  50. margin: 0 10rpx 0 0;
  51. }
  52. .hotel-price-num{
  53. font-size: 28rpx;
  54. font-weight: 600;
  55. }
  56. }
  57. .performance {
  58. display: flex;
  59. color: @red;
  60. margin-top: 10rpx;
  61. .hotel-performance {
  62. margin: 0 0rpx 0 10rpx;
  63. }
  64. }
  65. .address {
  66. margin-top: 10rpx;
  67. display: flex;
  68. .hotel-address {
  69. color:@grey;
  70. }
  71. }
  72. }
  73. }
  74. .flexd {
  75. position: fixed;
  76. z-index: 999;
  77. width: 100%;
  78. .nav-background {
  79. background: #f39283;
  80. height: 40rpx;
  81. }
  82. .v-search {
  83. position: relative;
  84. top: -40rpx;
  85. // box-shadow: 0px 5rpx 10rpx rgba(0, 0, 0, 0.2);
  86. background-color: transparent;
  87. }
  88. }
  89. }
  90. .tab_title {
  91. flex: none;
  92. // width: 280rpx;
  93. }
  94. .tab_page {
  95. width: 100%;
  96. height: 100%;
  97. overflow: hidden;
  98. }