index.less 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. .top-view {
  2. position: sticky;
  3. top: 0px;
  4. z-index: 999;
  5. .nav-view {
  6. background-color: #407DB8;
  7. width: 100%;
  8. padding-bottom: 10px;
  9. .tab-view {
  10. --tabs-nav-background-color: #407DB8;
  11. width: 50%;
  12. .van-tabs__nav {
  13. background-color: #407DB8;
  14. width: 100%;
  15. }
  16. }
  17. }
  18. .title-view {
  19. background-color: #fff;
  20. border-radius: 10px;
  21. display: flex;
  22. align-items: center;
  23. align-content: center;
  24. flex-direction: column;
  25. padding: 5px 10px;
  26. .title-view-up, .title-view-mid, .title-view-dwn {
  27. display: flex;
  28. flex-direction: row;
  29. justify-content: space-between;
  30. align-items: center;
  31. width: 100%;
  32. align-content: center;
  33. height: 25px;
  34. text {
  35. color: #999999;
  36. font-size: 13px;
  37. text-align: center;
  38. }
  39. :first-child {
  40. text-align: left;
  41. }
  42. :last-child {
  43. text-align: right;
  44. }
  45. }
  46. .title-view-up {
  47. border-bottom: 1px solid #ddd;
  48. padding-bottom: 5px;
  49. }
  50. .title-view-mid {
  51. padding: 5px 0px;
  52. }
  53. }
  54. }
  55. .item-view {
  56. margin: 5px;
  57. border-radius: 10px;
  58. display: flex;
  59. align-items: center;
  60. align-content: center;
  61. flex-direction: column;
  62. padding: 10px 10px;
  63. background-color: #fff;
  64. .item-view-up {
  65. text:nth-child(3) {
  66. width: 120px;
  67. }
  68. }
  69. .item-view-up, .item-view-dwn {
  70. display: flex;
  71. flex-direction: row;
  72. justify-content: space-between;
  73. align-items: center;
  74. height: 50%;
  75. width: 100%;
  76. align-content: center;
  77. height: 25px;
  78. text {
  79. color: #333;
  80. font-size: 14px;
  81. /*超出隐藏*/
  82. overflow: hidden;
  83. /*溢出不换行*/
  84. white-space: nowrap;
  85. /*溢出显示用省略号*/
  86. text-overflow: ellipsis;
  87. text-align: center;
  88. }
  89. :first-child {
  90. text-align: left;
  91. }
  92. :last-child {
  93. text-align: right;
  94. }
  95. }
  96. .item-view-up {
  97. border-bottom: 1px solid #C6DFFF;
  98. padding-bottom: 5px;
  99. text {
  100. width: 25%;
  101. }
  102. }
  103. .item-view-mid {
  104. padding: 5px 0px;
  105. :last-child {
  106. width: 30%;
  107. }
  108. }
  109. .item-view-dwn {
  110. text:nth-last-child(1) {
  111. color: #F55656;
  112. }
  113. }
  114. }
  115. /* 选中时添加这个 样式 */
  116. .active {
  117. background: #E6F1FF;
  118. border: 1px solid #C6DFFF;
  119. }
  120. /* 三角形 */
  121. .active::before {
  122. content: '';
  123. display: inline-block;
  124. position: absolute;
  125. top: 0;
  126. left: 5px;
  127. width: 0;
  128. height: 0;
  129. border-top: 25px solid #407DB8;
  130. border-right: 25px solid transparent;
  131. }
  132. /* 小勾 */
  133. .active::after {
  134. content: '';
  135. position: absolute;
  136. left: 7.5px;
  137. top: 5px;
  138. width: 8px;
  139. height: 4px;
  140. display: inline-block;
  141. border: 1px solid #fff;
  142. border-width: 0 0 2px 2px;
  143. transform: rotate(-45deg);
  144. -ms-transform: rotate(-45deg);
  145. -moz-transform: rotate(-45deg);
  146. -webkit-transform: rotate(-45deg);
  147. -o-transform: rotate(-45deg);
  148. vertical-align: baseline;
  149. }
  150. .van-swipe-cell__right {
  151. height: inherit;
  152. color: white;
  153. display: flex;
  154. .item {
  155. width: 50px;
  156. text-align: center;
  157. display: flex;
  158. justify-content: center;
  159. align-items: center;
  160. font-size: 12px;
  161. }
  162. }
  163. .buttom_view {
  164. position: sticky;
  165. bottom: 10px;
  166. z-index: 999;
  167. display: flex;
  168. flex-direction: column;
  169. justify-content: space-between;
  170. margin-top: 20px;
  171. align-items: center;
  172. align-content: center;
  173. width: 100%;
  174. }