index.less 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  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, .item-view-dwn {
  65. display: flex;
  66. flex-direction: row;
  67. justify-content: space-between;
  68. align-items: center;
  69. height: 50%;
  70. width: 100%;
  71. align-content: center;
  72. height: 25px;
  73. text {
  74. color: #000000;
  75. font-size: 14px;
  76. /*超出隐藏*/
  77. overflow: hidden;
  78. /*溢出不换行*/
  79. white-space: nowrap;
  80. /*溢出显示用省略号*/
  81. text-overflow: ellipsis;
  82. text-align: center;
  83. }
  84. :first-child {
  85. text-align: left;
  86. }
  87. :last-child {
  88. text-align: right;
  89. }
  90. }
  91. .item-view-up {
  92. border-bottom: 1px solid #C6DFFF;
  93. padding-bottom: 5px;
  94. text {
  95. width: 25%;
  96. }
  97. }
  98. .item-view-mid {
  99. padding: 5px 0px;
  100. :last-child {
  101. width: 30%;
  102. }
  103. }
  104. .item-view-dwn {
  105. text:nth-last-child(1) {
  106. color: #F55656;
  107. }
  108. }
  109. }
  110. /* 选中时添加这个 样式 */
  111. .active {
  112. background: #E6F1FF;
  113. border: 1px solid #C6DFFF;
  114. }
  115. /* 三角形 */
  116. .active::before {
  117. content: '';
  118. display: inline-block;
  119. position: absolute;
  120. top: 0;
  121. left: 5px;
  122. width: 0;
  123. height: 0;
  124. border-top: 25px solid #407DB8;
  125. border-right: 25px solid transparent;
  126. }
  127. /* 小勾 */
  128. .active::after {
  129. content: '';
  130. position: absolute;
  131. left: 7.5px;
  132. top: 5px;
  133. width: 8px;
  134. height: 4px;
  135. display: inline-block;
  136. border: 1px solid #fff;
  137. border-width: 0 0 2px 2px;
  138. transform: rotate(-45deg);
  139. -ms-transform: rotate(-45deg);
  140. -moz-transform: rotate(-45deg);
  141. -webkit-transform: rotate(-45deg);
  142. -o-transform: rotate(-45deg);
  143. vertical-align: baseline;
  144. }
  145. .van-swipe-cell__right {
  146. height: inherit;
  147. color: white;
  148. display: flex;
  149. .item {
  150. width: 50px;
  151. text-align: center;
  152. display: flex;
  153. justify-content: center;
  154. align-items: center;
  155. font-size: 12px;
  156. }
  157. }
  158. .buttom_view {
  159. position: sticky;
  160. bottom: 10px;
  161. z-index: 999;
  162. display: flex;
  163. flex-direction: column;
  164. justify-content: space-between;
  165. margin-top: 20px;
  166. align-items: center;
  167. align-content: center;
  168. width: 100%;
  169. }