index.wxss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. .list-warpper {
  2. position: relative;
  3. width: 100%;
  4. height: 100%;
  5. box-sizing: border-box;
  6. background: #fff;
  7. }
  8. .list-scroll {
  9. width: 100%;
  10. height: 100%;
  11. box-sizing: border-box;
  12. }
  13. .list-scroll.top {
  14. padding-top: 90rpx;
  15. }
  16. /* 样式控制 */
  17. .list-title {
  18. background: #f5f5f5;
  19. color: #999;
  20. font-size: 24rpx;
  21. padding: 8rpx;
  22. padding-left: 30rpx;
  23. }
  24. .list-name {
  25. position: relative;
  26. font-size: 26rpx;
  27. padding: 15rpx;
  28. padding-left: 30rpx;
  29. color: #222;
  30. transition: all 0.3s;
  31. }
  32. .list-name:active {
  33. background: rgba(245,245,245,.2);
  34. }
  35. .list-name.border::after {
  36. display: none;
  37. content: "";
  38. position: absolute;
  39. left: 30rpx;
  40. right: 0;
  41. top: 0;
  42. height: 1px;
  43. background: #f5f5f5;
  44. }
  45. .list-right-wrapper {
  46. position: absolute;
  47. top: 100rpx;
  48. right: 20rpx;
  49. padding: 10rpx 0;
  50. border-radius: 20rpx;
  51. z-index: 2;
  52. }
  53. .right-item {
  54. display: flex;
  55. justify-content: center;
  56. align-items: center;
  57. padding: 2rpx 10rpx;
  58. font-size: 26rpx;
  59. color: #FFCA00;
  60. }
  61. .list-search {
  62. position: absolute;
  63. top: 0;
  64. left: 0;
  65. display: flex;
  66. align-items: center;
  67. width: 100%;
  68. height: 90rpx;
  69. padding: 10rpx 30rpx;
  70. box-sizing: border-box;
  71. z-index: 20;
  72. background: #fff;
  73. }
  74. .search-title {
  75. flex-shrink: 0;
  76. font-size: 28rpx;
  77. padding-right: 10rpx;
  78. }
  79. .list-search-box {
  80. display: flex;
  81. align-items: center;
  82. padding: 0 30rpx;
  83. width: 100%;
  84. height: 62rpx;
  85. background: #f5f5f5;
  86. border-radius: 90rpx;
  87. font-size: 24rpx;
  88. box-sizing: border-box;
  89. }
  90. .list-search-box input {
  91. width: 100%;
  92. padding-left: 10rpx;
  93. }
  94. .search-button {
  95. /* width: 100rpx; */
  96. flex-shrink: 0;
  97. height: 60rpx;
  98. line-height: 60rpx;
  99. font-size: 28rpx;
  100. margin-left: 10rpx;
  101. }
  102. /* 热门城市横排显示样式 */
  103. .list-horizontal {
  104. display: flex;
  105. flex-wrap: wrap;
  106. padding: 10rpx;
  107. padding-right: 50rpx;
  108. }
  109. .list-horizontal .list-name {
  110. box-sizing: border-box;
  111. width: 200rpx;
  112. height: 60rpx;
  113. padding: 5rpx 20rpx;
  114. border: 1px #ccc solid;
  115. border-radius: 10rpx;
  116. margin: 10rpx;
  117. font-size: 28rpx;
  118. display: flex;
  119. align-items: center;
  120. justify-content: center;
  121. }
  122. .list-horizontal .list-name:nth-child(3n+1) {
  123. margin-left: 20rpx;
  124. }
  125. .list-horizontal.my-city .list-name, .list-horizontal .list-name:active {
  126. background: #FFCA00;
  127. color: #fff;
  128. border-color: #FFCA00;
  129. }
  130. /* 无数据 */
  131. .nodata {
  132. padding-top: 200rpx;
  133. text-align: center;
  134. font-size: 32rpx;
  135. color: #ddd;
  136. }