index.less 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  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: #4D565D;
  75. font-size: 13px;
  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. }
  105. /* 选中时添加这个 样式 */
  106. .active {
  107. background: #E6F1FF;
  108. border: 1px solid #C6DFFF;
  109. }
  110. /* 三角形 */
  111. .active::before {
  112. content: '';
  113. display: inline-block;
  114. position: absolute;
  115. top: 0;
  116. left: 5px;
  117. width: 0;
  118. height: 0;
  119. border-top: 25px solid #407DB8;
  120. border-right: 25px solid transparent;
  121. }
  122. /* 小勾 */
  123. .active::after {
  124. content: '';
  125. position: absolute;
  126. left: 7.5px;
  127. top: 5px;
  128. width: 8px;
  129. height: 4px;
  130. display: inline-block;
  131. border: 1px solid #fff;
  132. border-width: 0 0 2px 2px;
  133. transform: rotate(-45deg);
  134. -ms-transform: rotate(-45deg);
  135. -moz-transform: rotate(-45deg);
  136. -webkit-transform: rotate(-45deg);
  137. -o-transform: rotate(-45deg);
  138. vertical-align: baseline;
  139. }
  140. .van-swipe-cell__right {
  141. height: inherit;
  142. color: white;
  143. display: flex;
  144. .item {
  145. width: 50px;
  146. text-align: center;
  147. display: flex;
  148. justify-content: center;
  149. align-items: center;
  150. font-size: 12px;
  151. }
  152. }
  153. .buttom_view {
  154. position: sticky;
  155. bottom: 10px;
  156. z-index: 999;
  157. display: flex;
  158. flex-direction: column;
  159. justify-content: space-between;
  160. margin-top: 20px;
  161. align-items: center;
  162. align-content: center;
  163. width: 100%;
  164. }