common.scss 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. box-sizing: border-box;
  5. }
  6. ::-webkit-scrollbar {
  7. display: none;
  8. width: 0;
  9. height: 0;
  10. color: transparent;
  11. }
  12. view,
  13. text {
  14. box-sizing: border-box;
  15. }
  16. input {
  17. box-sizing: border-box;
  18. }
  19. button {
  20. margin: 0;
  21. padding: 0;
  22. }
  23. button::after {
  24. border: none;
  25. }
  26. .container {
  27. width: 100%;
  28. min-height: 100vh;
  29. font-size: 28rpx;
  30. }
  31. text {
  32. display: block;
  33. }
  34. button {
  35. text-align: center;
  36. border-radius: 8rpx;
  37. }
  38. /* border 1px样式 */
  39. .border_bottom,
  40. .border_top,
  41. .border_all {
  42. position: relative;
  43. }
  44. .border_top::after {
  45. position: absolute;
  46. content: "";
  47. width: 100%;
  48. left: 0;
  49. top: 0;
  50. height: 1px;
  51. padding: 0 32rpx;
  52. box-sizing: border-box;
  53. background-color: #e5e5e5;
  54. -webkit-transform: scale(1, 0.5);
  55. transform: scale(1, 0.5);
  56. -webkit-transform-origin: center bottom;
  57. transform-origin: center bottom;
  58. }
  59. .border_bottom::after {
  60. position: absolute;
  61. content: "";
  62. width: 100%;
  63. left: 0;
  64. bottom: 0;
  65. height: 1px;
  66. padding: 0 32rpx;
  67. box-sizing: border-box;
  68. background-color: #e5e5e5;
  69. -webkit-transform: scale(1, 0.5);
  70. transform: scale(1, 0.5);
  71. -webkit-transform-origin: center bottom;
  72. transform-origin: center bottom;
  73. }
  74. .border_all::before {
  75. content: "";
  76. display: block;
  77. position: absolute;
  78. width: 200%;
  79. height: 200%;
  80. border: 1px solid #d9d9d9;
  81. border-radius: 10rpx;
  82. transform-origin: 0 0;
  83. transform: scale(0.5, 0.5);
  84. -webkit-transform: scale(0.5, 0.5);
  85. box-sizing: border-box;
  86. }
  87. // 无数据
  88. .nodata {
  89. text-align: center;
  90. display: block;
  91. color: #666666;
  92. padding: 200rpx 0;
  93. margin: 0 auto;
  94. .nodata_ico {
  95. width: 374rpx;
  96. height: 288rpx;
  97. margin-bottom: 30rpx;
  98. }
  99. .nodata_img {
  100. width: 374rpx;
  101. height: 288rpx;
  102. margin-bottom: 50rpx;
  103. }
  104. }
  105. // 单行省略
  106. .text_oneLine {
  107. overflow: hidden;
  108. text-overflow: ellipsis;
  109. white-space: nowrap;
  110. }
  111. /* 2行省略 */
  112. .text_twoLine {
  113. text-overflow: -o-ellipsis-lastline;
  114. overflow: hidden;
  115. text-overflow: ellipsis;
  116. display: -webkit-box;
  117. -webkit-line-clamp: 2;
  118. line-clamp: 2;
  119. -webkit-box-orient: vertical;
  120. }
  121. .select-box {
  122. width: 100%;
  123. .box {
  124. height: 95prx;
  125. line-height: 95rpx;
  126. text-align: center;
  127. font-size: 32rpx;
  128. border-bottom: 1rpx solid #ebebeb;
  129. }
  130. .box-bottom {
  131. border-bottom: none !important;
  132. }
  133. }
  134. .slot-content {
  135. width: 100%;
  136. padding: 50rpx;
  137. text-align: center;
  138. font-size: 32rpx;
  139. color: #0f1826;
  140. line-height: 48rpx;
  141. }
  142. // 禁止拷贝
  143. .forbid-copy {
  144. -webkit-user-select: none;
  145. -khtml-user-select: none;
  146. -moz-user-select: none;
  147. -ms-user-select: none;
  148. user-select: none;
  149. }
  150. .cancel-attention {
  151. flex-shrink: 0;
  152. padding: 5rpx 28rpx;
  153. border-radius: 37rpx 37rpx 37rpx 37rpx;
  154. font-weight: 400;
  155. font-size: 24rpx;
  156. background-color: #f0f0f0;
  157. color: #999999;
  158. }
  159. .free-charge {
  160. position: fixed;
  161. display: flex;
  162. align-items: center;
  163. bottom: 320rpx;
  164. right: 41rpx;
  165. height: 156rpx;
  166. z-index: 888;
  167. }
  168. .footer-free-charge {
  169. z-index: 99999;
  170. }
  171. .report-content-title {
  172. font-weight: 500;
  173. font-size: 36rpx;
  174. line-height: 50rpx;
  175. color: #333333;
  176. }
  177. // 统一顶部蓝色的卡片
  178. .global_card_content {
  179. padding: 22rpx 12rpx;
  180. border-radius: 8rpx;
  181. border-top: 10rpx solid #376cbb;
  182. }
  183. // 统一标题
  184. .global_title {
  185. color: #333333;
  186. font-size: 32rpx;
  187. font-weight: 600;
  188. line-height: 40rpx;
  189. }
  190. // 统一内容
  191. .global_content {
  192. margin-top: 20rpx;
  193. padding: 0 12rpx;
  194. font-size: 22rpx;
  195. line-height: 30rpx;
  196. font-weight: 400;
  197. color: #999999;
  198. background-color: #f8f8fa;
  199. border-radius: 4rpx;
  200. }
  201. // 居中
  202. .global_content_center {
  203. display: flex;
  204. align-items: center;
  205. justify-content: center;
  206. }
  207. // 统一二级筛选栏
  208. .global_two_tabs {
  209. height: 96rpx;
  210. width: 100%;
  211. display: flex;
  212. align-items: center;
  213. overflow-x: auto;
  214. border-top: 0.5rpx solid #dcdfe6;
  215. border-bottom: 0.5rpx solid #dcdfe6;
  216. padding: 0 30rpx;
  217. background-color: #fff;
  218. .item {
  219. display: flex;
  220. align-items: center;
  221. height: 64rpx;
  222. padding: 24rpx;
  223. border-radius: 100rpx;
  224. color: #333;
  225. font-size: 28rpx;
  226. background-color: #f8f8fa;
  227. flex-shrink: 0;
  228. margin-right: 15rpx;
  229. }
  230. .tabs-active {
  231. background-color: #e5efff;
  232. color: #376cbb;
  233. }
  234. }
  235. .global_one_tabs {
  236. display: flex;
  237. width: 100%;
  238. height: 96rpx;
  239. overflow-x: auto;
  240. background-color: #fff;
  241. .item {
  242. width: 120rpx;
  243. display: flex;
  244. align-items: center;
  245. justify-content: center;
  246. color: #333;
  247. font-size: 28rpx;
  248. line-height: 44rpx;
  249. flex-shrink: 0;
  250. }
  251. .tabs-active {
  252. position: relative;
  253. color: #376cbb;
  254. font-weight: 600;
  255. &::before {
  256. content: "";
  257. position: absolute;
  258. bottom: 15rpx;
  259. left: 50%;
  260. transform: translateX(-50%);
  261. width: 32rpx;
  262. height: 6rpx;
  263. background-color: #376cbb;
  264. border-radius: 10rpx;
  265. }
  266. }
  267. }