global.scss 25 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012
  1. @use 'sass:math';
  2. @function px2rpx($px) {
  3. @return $px * 1rpx;
  4. }
  5. :root {
  6. --color-red-400: oklch(70.4% .191 22.216);
  7. --color-orange-600: oklch(64.6% .222 41.116);
  8. --color-amber-50: oklch(98.7% .022 95.277);
  9. --color-amber-400: oklch(82.8% .189 84.429);
  10. --color-yellow-100: oklch(97.3% .071 103.193);
  11. --color-yellow-400: oklch(85.2% .199 91.936);
  12. --color-yellow-500: oklch(79.5% .184 86.047);
  13. --color-green-300: oklch(87.1% .15 154.449);
  14. --color-green-400: oklch(79.2% .209 151.711);
  15. --color-sky-100: oklch(95.1% .026 236.824);
  16. --color-sky-400: oklch(74.6% .16 232.661);
  17. --color-blue-500: oklch(62.3% .214 259.815);
  18. --color-blue-600: oklch(54.6% .245 262.881);
  19. --color-indigo-50: oklch(96.2% .018 272.314);
  20. --color-indigo-100: oklch(93% .034 272.788);
  21. --color-indigo-400: oklch(67.3% .182 276.935);
  22. --color-indigo-600: oklch(51.1% .262 276.966);
  23. --color-violet-400: oklch(70.2% .183 293.541);
  24. --color-purple-300: oklch(82.7% .119 306.383);
  25. --color-purple-500: oklch(62.7% .265 303.9);
  26. --color-purple-600: oklch(55.8% .288 302.321);
  27. --color-fuchsia-400: oklch(74% .238 322.16);
  28. --color-fuchsia-600: oklch(59.1% .293 322.896);
  29. --color-pink-100: oklch(94.8% .028 342.258);
  30. --color-pink-300: oklch(82.3% .12 346.018);
  31. --color-pink-500: oklch(0.59 0.22 25.62);
  32. --color-pink-600: oklch(0.67 0.21 36.35);
  33. --color-rose-500: oklch(64.5% .246 16.439);
  34. --color-slate-50: oklch(98.4% .003 247.858);
  35. --color-slate-100: oklch(96.8% .007 247.896);
  36. --color-slate-200: oklch(92.9% .013 255.508);
  37. --color-slate-300: oklch(86.9% .022 252.894);
  38. --color-slate-400: oklch(70.4% .04 256.788);
  39. --color-slate-500: oklch(55.4% .046 257.417);
  40. --color-slate-600: oklch(44.6% .043 257.281);
  41. --color-slate-700: oklch(37.2% .044 257.287);
  42. --color-slate-800: oklch(27.9% .041 260.031);
  43. --color-slate-900: oklch(20.8% .042 265.755);
  44. --color-gray-200: oklch(92.8% .006 264.531);
  45. --color-zinc-100: oklch(96.7% .001 286.375);
  46. --color-black: #000;
  47. --color-white: #fff;
  48. --font-size-10: px2rpx(10);
  49. --font-size-12: px2rpx(12);
  50. --font-size-13: px2rpx(13);
  51. --font-size-14: px2rpx(14);
  52. --font-size-15: px2rpx(15);
  53. --font-size-16: px2rpx(16);
  54. --font-size-18: px2rpx(18);
  55. --font-size-20: px2rpx(20);
  56. --font-size-22: px2rpx(22);
  57. --font-size-24: px2rpx(24);
  58. --font-size-26: px2rpx(26);
  59. --font-size-28: px2rpx(28);
  60. --font-size-32: px2rpx(32);
  61. --font-size-36: px2rpx(36);
  62. --font-size-40: px2rpx(40);
  63. --el-component-size: px2rpx(40);
  64. --ease-in: cubic-bezier(.4, 0, 1, 1);
  65. --ease-out: cubic-bezier(0, 0, .2, 1);
  66. --ease-in-out: cubic-bezier(.4, 0, .2, 1);
  67. --animate-spin: spin 1s linear infinite;
  68. --animate-ping: ping 1s cubic-bezier(0, 0, .2, 1) infinite;
  69. --animate-pulse: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
  70. --blur-sm: 8px;
  71. --default-transition-duration: .15s;
  72. --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
  73. --default-font-family: var(--font-sans);
  74. --default-mono-font-family: var(--font-mono);
  75. --font-inter: Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  76. --color-navy-50: #e7e9ef;
  77. --color-navy-100: #fff;
  78. --color-navy-200: #a3adc2;
  79. --color-navy-300: #697a9b;
  80. --color-navy-400: #5c6b8a;
  81. --color-navy-450: #465675;
  82. --color-navy-500: #3a3c43;
  83. --color-navy-600: #313e59;
  84. --color-navy-700: #242726;
  85. --color-navy-750: #222e45;
  86. --color-navy-800: #202b40;
  87. --color-navy-900: #141a18;
  88. --color-slate-150: #e9eef5;
  89. --color-primary: #4f46e5;
  90. --color-primary-focus: #4338ca;
  91. --color-secondary-light: #ff57d8;
  92. --color-secondary: #141a18;
  93. --color-secondary-focus: #242726;
  94. --color-accent-light: #242726;
  95. --color-accent: #5f5af6;
  96. --color-accent-focus: #4d47f5;
  97. --color-info: #0ea5e9;
  98. --color-info-focus: #0284c7;
  99. --color-success: #1ac23a;
  100. --color-success-focus: #17a732;
  101. --color-warning: #ff9800;
  102. --color-warning-focus: #e68200;
  103. --color-error: #e32326;
  104. --color-error-focus: #f03000;
  105. --text-tiny: .625rem;
  106. --text-tiny--line-height: .8125rem;
  107. --text-tiny-plus: .6875rem;
  108. --text-tiny-plus--line-height: .875rem;
  109. --text-xs-plus: .8125rem;
  110. --text-xs-plus--line-height: 1.125rem;
  111. --text-sm-plus: .9375rem;
  112. --text-sm-plus--line-height: 1.375rem;
  113. --animate-shimmer: shimmer 2s linear infinite;
  114. // 状态背景色
  115. --status-warning-bg: var(--color-amber-50);
  116. --status-success-bg: var(--color-green-300);
  117. --status-processing-bg: var(--color-sky-100);
  118. --status-danger-bg: var(--color-pink-100);
  119. --status-expired-bg: var(--color-slate-200);
  120. --status-cancelled-bg: var(--color-slate-100);
  121. // 状态文字颜色
  122. --status-warning-text: var(--color-orange-600);
  123. --status-success-text: var(--color-green-400);
  124. --status-processing-text: var(--color-blue-600);
  125. --status-danger-text: var(--color-rose-500);
  126. --status-expired-text: var(--color-slate-600);
  127. --status-cancelled-text: var(--color-slate-500);
  128. // 状态边框颜色
  129. --status-warning-border: var(--color-amber-400);
  130. --status-success-border: var(--color-green-400);
  131. --status-processing-border: var(--color-sky-400);
  132. --status-danger-border: var(--color-pink-300);
  133. --status-expired-border: var(--color-slate-400);
  134. --status-cancelled-border: var(--color-slate-300);
  135. }
  136. .dark {
  137. --color-red-400: oklch(70.4% .191 22.216);
  138. --color-orange-600: oklch(64.6% .222 41.116);
  139. --color-amber-50: oklch(98.7% .022 95.277);
  140. --color-amber-400: oklch(82.8% .189 84.429);
  141. --color-yellow-100: oklch(97.3% .071 103.193);
  142. --color-yellow-400: oklch(85.2% .199 91.936);
  143. --color-yellow-500: oklch(79.5% .184 86.047);
  144. --color-green-300: oklch(87.1% .15 154.449);
  145. --color-green-400: oklch(79.2% .209 151.711);
  146. --color-sky-100: oklch(95.1% .026 236.824);
  147. --color-sky-400: oklch(74.6% .16 232.661);
  148. --color-blue-500: oklch(62.3% .214 259.815);
  149. --color-blue-600: oklch(54.6% .245 262.881);
  150. --color-indigo-50: oklch(96.2% .018 272.314);
  151. --color-indigo-100: oklch(93% .034 272.788);
  152. --color-indigo-400: oklch(67.3% .182 276.935);
  153. --color-indigo-600: oklch(51.1% .262 276.966);
  154. --color-violet-400: oklch(70.2% .183 293.541);
  155. --color-purple-300: oklch(82.7% .119 306.383);
  156. --color-purple-500: oklch(62.7% .265 303.9);
  157. --color-purple-600: oklch(55.8% .288 302.321);
  158. --color-fuchsia-400: oklch(74% .238 322.16);
  159. --color-fuchsia-600: oklch(59.1% .293 322.896);
  160. --color-pink-100: oklch(94.8% .028 342.258);
  161. --color-pink-300: oklch(82.3% .12 346.018);
  162. --color-pink-500: oklch(0.59 0.22 25.62);
  163. --color-pink-600: oklch(0.67 0.21 36.35);
  164. --color-rose-500: oklch(64.5% .246 16.439);
  165. --color-slate-50: oklch(98.4% .003 247.858);
  166. --color-slate-100: oklch(96.8% .007 247.896);
  167. --color-slate-200: oklch(92.9% .013 255.508);
  168. --color-slate-300: oklch(86.9% .022 252.894);
  169. --color-slate-400: oklch(70.4% .04 256.788);
  170. --color-slate-500: oklch(55.4% .046 257.417);
  171. --color-slate-600: oklch(44.6% .043 257.281);
  172. --color-slate-700: oklch(37.2% .044 257.287);
  173. --color-slate-800: oklch(27.9% .041 260.031);
  174. --color-slate-900: oklch(20.8% .042 265.755);
  175. --color-gray-200: oklch(92.8% .006 264.531);
  176. --color-zinc-100: oklch(96.7% .001 286.375);
  177. --color-black: #000;
  178. --color-white: #fff;
  179. --color-navy-900: #11224d;
  180. --font-size-10: px2rpx(10);
  181. --font-size-12: px2rpx(12);
  182. --font-size-13: px2rpx(13);
  183. --font-size-14: px2rpx(14);
  184. --font-size-15: px2rpx(15);
  185. --font-size-16: px2rpx(16);
  186. --font-size-18: px2rpx(18);
  187. --font-size-20: px2rpx(20);
  188. --font-size-22: px2rpx(22);
  189. --font-size-24: px2rpx(24);
  190. --font-size-26: px2rpx(26);
  191. --font-size-28: px2rpx(28);
  192. --font-size-32: px2rpx(32);
  193. --font-size-36: px2rpx(36);
  194. --font-size-40: px2rpx(40);
  195. --el-component-size: px2rpx(40);
  196. --ease-in: cubic-bezier(.4, 0, 1, 1);
  197. --ease-out: cubic-bezier(0, 0, .2, 1);
  198. --ease-in-out: cubic-bezier(.4, 0, .2, 1);
  199. --animate-spin: spin 1s linear infinite;
  200. --animate-ping: ping 1s cubic-bezier(0, 0, .2, 1) infinite;
  201. --animate-pulse: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
  202. --blur-sm: 8px;
  203. --default-transition-duration: .15s;
  204. --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
  205. --default-font-family: var(--font-sans);
  206. --default-mono-font-family: var(--font-mono);
  207. --font-inter: Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  208. --color-navy-50: #e7e9ef;
  209. --color-navy-100: #fff;
  210. --color-navy-200: #a3adc2;
  211. --color-navy-300: #697a9b;
  212. --color-navy-400: #5c6b8a;
  213. --color-navy-450: #465675;
  214. --color-navy-500: #3a3c43;
  215. --color-navy-600: #313e59;
  216. --color-navy-700: #242726;
  217. --color-navy-750: #222e45;
  218. --color-navy-800: #202b40;
  219. --color-navy-900: #141a18;
  220. --color-slate-150: #e9eef5;
  221. --color-primary: #4f46e5;
  222. --color-primary-focus: #4338ca;
  223. --color-secondary-light: #ff57d8;
  224. --color-secondary: #141a18;
  225. --color-secondary-focus: #242726;
  226. --color-accent-light: #242726;
  227. --color-accent: #5f5af6;
  228. --color-accent-focus: #4d47f5;
  229. --color-info: #0ea5e9;
  230. --color-info-focus: #0284c7;
  231. --color-success: #1ac23a;
  232. --color-success-focus: #17a732;
  233. --color-warning: #ff9800;
  234. --color-warning-focus: #e68200;
  235. --color-error: #e32326;
  236. --color-error-focus: #f03000;
  237. --text-tiny: .625rem;
  238. --text-tiny--line-height: .8125rem;
  239. --text-tiny-plus: .6875rem;
  240. --text-tiny-plus--line-height: .875rem;
  241. --text-xs-plus: .8125rem;
  242. --text-xs-plus--line-height: 1.125rem;
  243. --text-sm-plus: .9375rem;
  244. --text-sm-plus--line-height: 1.375rem;
  245. --animate-shimmer: shimmer 2s linear infinite;
  246. }
  247. body {
  248. min-height: 100vh;
  249. margin: 0 auto !important;
  250. font-size: px2rpx(12);
  251. line-height: 1;
  252. color: #000;
  253. background: #fff;
  254. }
  255. .body {
  256. position: absolute;
  257. box-sizing: border-box;
  258. width: 100%;
  259. // height: 100vh;
  260. // padding-bottom: var(--tabbar-height);
  261. height: 100vh;
  262. overflow-y: scroll;
  263. transition: all 0.4s;
  264. -webkit-overflow-scrolling: touch;
  265. &.is-tab {
  266. // height: calc(100vh - var(--tabbar-height));
  267. }
  268. }
  269. .wrap {
  270. position: relative;
  271. width: 100%;
  272. height: 100vh;
  273. overflow: hidden;
  274. }
  275. .global-loading {
  276. position: fixed;
  277. top: 0;
  278. left: 0;
  279. z-index: 999;
  280. display: flex;
  281. align-items: center;
  282. justify-content: center;
  283. width: 100vw;
  284. height: 100vh;
  285. background: var(--main-bg);
  286. }
  287. .router-loading {
  288. position: fixed;
  289. top: 0;
  290. left: 0;
  291. z-index: 1000;
  292. display: flex;
  293. align-items: center;
  294. justify-content: center;
  295. width: 100vw;
  296. height: 100vh;
  297. background: var(--main-bg);
  298. }
  299. .full-screen-loading {
  300. position: fixed;
  301. top: 0;
  302. left: 0;
  303. z-index: 1001;
  304. display: flex;
  305. align-items: center;
  306. justify-content: center;
  307. width: 100vw;
  308. height: 100vh;
  309. background: var(--main-bg);
  310. }
  311. .request-loading,
  312. .full-screen-loading {
  313. position: fixed;
  314. top: 50%;
  315. left: 50%;
  316. z-index: 1001;
  317. display: flex;
  318. flex-direction: column;
  319. align-items: center;
  320. justify-content: center;
  321. padding: px2rpx(16) px2rpx(24);
  322. background: rgb(0, 0, 0, 0.88);
  323. backdrop-filter: blur(4px);
  324. box-shadow: 0 4px 12px rgb(0, 0, 0, 0.15);
  325. transform: translate(-50%, -50%);
  326. animation: fadeIn 0.2s ease-in-out;
  327. .van-loading {
  328. margin-bottom: px2rpx(8);
  329. }
  330. .loading-text {
  331. font-size: px2rpx(14);
  332. font-weight: 500;
  333. color: #fff;
  334. text-shadow: 0 px2rpx(1) px2rpx(2) rgb(0, 0, 0, 0.1);
  335. letter-spacing: px2rpx(0.5);
  336. }
  337. &::after {
  338. position: absolute;
  339. inset: px2rpx(-1);
  340. z-index: -1;
  341. content: '';
  342. background: linear-gradient(45deg, rgb(255, 255, 255, 0.1), rgb(255, 255, 255, 0.05));
  343. border-radius: px2rpx(12);
  344. }
  345. }
  346. .full-screen-loading {
  347. width: 100vw;
  348. height: 100vh;
  349. }
  350. @keyframes fadeIn {
  351. from {
  352. opacity: 0;
  353. transform: translate(-50%, -48%);
  354. }
  355. to {
  356. opacity: 1;
  357. transform: translate(-50%, -50%);
  358. }
  359. }
  360. .load-more {
  361. margin: px2rpx(10) 0;
  362. }
  363. /* 通用样式 */
  364. .slide-left-enter,
  365. .slide-right-leave-active {
  366. opacity: 0;
  367. transform: translate(100%, 0);
  368. }
  369. .slide-left-leave-active,
  370. .slide-right-enter {
  371. opacity: 0;
  372. transform: translate(-100%, 0);
  373. }
  374. /* .fade-leave-active below version 2.1.8 */
  375. .fade-enter-active,
  376. .fade-leave-active {
  377. transition: opacity 0.5s;
  378. }
  379. .fade-enter,
  380. .fade-leave-to {
  381. opacity: 0;
  382. }
  383. /* start--文本行数限制--start */
  384. .u-line-1 {
  385. overflow: hidden;
  386. text-overflow: ellipsis;
  387. white-space: nowrap;
  388. }
  389. .u-line-2 {
  390. -webkit-line-clamp: 2;
  391. }
  392. .u-line-3 {
  393. -webkit-line-clamp: 3;
  394. }
  395. .u-line-4 {
  396. -webkit-line-clamp: 4;
  397. }
  398. .u-line-5 {
  399. -webkit-line-clamp: 5;
  400. }
  401. .u-line-2,
  402. .u-line-3,
  403. .u-line-4,
  404. .u-line-5 {
  405. display: flex;
  406. overflow: hidden;
  407. text-overflow: ellipsis;
  408. word-break: break-all;
  409. -webkit-box-orient: vertical; // 设置伸缩盒子元素排列方式
  410. }
  411. /* end--文本行数限制--end */
  412. /* start--Retina 屏幕下的 1px 边框--start */
  413. .u-border,
  414. .u-border-bottom,
  415. .u-border-left,
  416. .u-border-right,
  417. .u-border-top,
  418. .u-border-top-bottom {
  419. position: relative;
  420. }
  421. .u-border-bottom::after,
  422. .u-border-left::after,
  423. .u-border-right::after,
  424. .u-border-top-bottom::after,
  425. .u-border-top::after,
  426. .u-border::after {
  427. position: absolute;
  428. top: 0;
  429. left: 0;
  430. z-index: 2;
  431. box-sizing: border-box;
  432. // 多加0.1%,能解决有时候边框缺失的问题
  433. width: 199.8%;
  434. height: 199.7%;
  435. pointer-events: none;
  436. content: ' ';
  437. border: 0 solid #e4e7ed;
  438. transform: scale(0.5, 0.5);
  439. transform-origin: 0 0;
  440. }
  441. .u-border-top::after {
  442. border-top-width: 1PX;
  443. }
  444. .u-border-left::after {
  445. border-left-width: 1PX;
  446. }
  447. .u-border-right::after {
  448. border-right-width: 1PX;
  449. }
  450. .u-border-bottom::after {
  451. border-bottom-width: 1PX;
  452. }
  453. .u-border-top-bottom::after {
  454. border-width: 1PX 0;
  455. }
  456. .u-border::after {
  457. border-width: 1PX;
  458. }
  459. .cwg-button {
  460. width: 100%;
  461. .u-button {
  462. height: px2rpx(44) !important;
  463. font-size: var(--font-size-16);
  464. font-weight: bold;
  465. color: var(--black);
  466. background: var(--main-yellow) !important;
  467. border: none !important;
  468. border-radius: px2rpx(100) !important;
  469. &:active {
  470. opacity: 0.9;
  471. }
  472. }
  473. }
  474. .fixed-btn {
  475. position: fixed;
  476. bottom: 0;
  477. left: 0;
  478. z-index: 1100;
  479. display: flex;
  480. flex-direction: column;
  481. align-items: center;
  482. justify-content: center;
  483. width: 100%;
  484. height: px2rpx(90);
  485. padding: px2rpx(21) px2rpx(30);
  486. color: var(--black);
  487. background-color: var(--black);
  488. box-shadow: 0 -1px 2px rgb(134, 134, 133, 0.25);
  489. box-sizing: border-box;
  490. }
  491. .cwg-upload {
  492. box-sizing: border-box;
  493. display: flex;
  494. flex-direction: column;
  495. align-items: center;
  496. justify-content: center;
  497. width: 100%;
  498. height: px2rpx(160);
  499. padding: px2rpx(16);
  500. border: 1px dashed #beb6b6;
  501. border-radius: px2rpx(4);
  502. .name {
  503. display: flex;
  504. align-items: center;
  505. font-size: px2rpx(16);
  506. font-weight: 600;
  507. line-height: px2rpx(44);
  508. color: #1a1a1a;
  509. text-align: center;
  510. }
  511. .back {
  512. display: flex;
  513. align-items: center;
  514. font-size: px2rpx(16);
  515. line-height: px2rpx(24);
  516. color: #474747;
  517. text-align: center;
  518. letter-spacing: 0.005em;
  519. }
  520. }
  521. .g {
  522. display: flex;
  523. img {
  524. height: px2rpx(50);
  525. }
  526. .g-l {
  527. flex: 1;
  528. margin-left: px2rpx(16);
  529. .g-item {
  530. display: flex;
  531. justify-content: space-between;
  532. margin-bottom: px2rpx(16);
  533. }
  534. .label {
  535. font-family: Roboto;
  536. font-size: px2rpx(14);
  537. font-style: normal;
  538. font-weight: 600;
  539. line-height: px2rpx(20);
  540. color: #1a1a1a;
  541. text-align: left;
  542. }
  543. .v {
  544. font-family: Roboto;
  545. font-size: px2rpx(14);
  546. font-style: normal;
  547. font-weight: 600;
  548. line-height: px2rpx(20);
  549. color: #1a1a1a;
  550. text-align: center;
  551. }
  552. }
  553. }
  554. .fixed-right {
  555. position: fixed;
  556. top: px2rpx(4);
  557. right: px2rpx(10);
  558. z-index: 100;
  559. display: flex;
  560. align-items: center;
  561. justify-content: center;
  562. width: px2rpx(40);
  563. height: px2rpx(40);
  564. color: var(--main-yellow);
  565. cursor: pointer;
  566. i {
  567. display: flex;
  568. align-items: center;
  569. justify-content: center;
  570. width: px2rpx(20);
  571. height: px2rpx(20);
  572. font-size: px2rpx(14);
  573. color: var(--main-yellow);
  574. }
  575. &:hover {
  576. opacity: 0.8;
  577. }
  578. }
  579. .status-default {
  580. display: flex;
  581. gap: px2rpx(10);
  582. align-items: center;
  583. justify-content: center;
  584. padding: px2rpx(4) px2rpx(8);
  585. font-family: Roboto;
  586. font-size: px2rpx(12);
  587. font-style: normal;
  588. font-weight: 600;
  589. line-height: px2rpx(16);
  590. color: #009deb;
  591. letter-spacing: px2rpx(0.06);
  592. background: rgb(0, 157, 235, 0.2);
  593. border: 0 solid #f4f4f4;
  594. border-radius: px2rpx(9999);
  595. }
  596. .status-success {
  597. color: #4caf50;
  598. background: rgb(76, 175, 80, 0.2);
  599. }
  600. .status-error {
  601. color: #d32f2f;
  602. background: rgb(211, 47, 47, 0.21);
  603. }
  604. .status-views {
  605. display: flex;
  606. align-items: center;
  607. justify-content: center;
  608. width: px2rpx(65.063);
  609. // height: 36px;
  610. padding: px2rpx(8) px2rpx(16);
  611. font-family: Roboto;
  612. font-size: px2rpx(14);
  613. font-style: normal;
  614. font-weight: 600;
  615. line-height: px2rpx(20);
  616. color: #fff;
  617. text-align: center;
  618. letter-spacing: px2rpx(0.07);
  619. background: #ea002a;
  620. border-radius: px2rpx(10);
  621. }
  622. .ellipsis {
  623. width: 100%;
  624. overflow: hidden;
  625. text-overflow: ellipsis;
  626. white-space: nowrap;
  627. }
  628. .custom-toast {
  629. top: 40%;
  630. display: flex;
  631. flex-direction: column;
  632. gap: px2rpx(16);
  633. align-items: center;
  634. width: px2rpx(348);
  635. padding: px2rpx(32) px2rpx(24);
  636. background: #fff;
  637. border-radius: px2rpx(20);
  638. box-shadow: 0 4px 12px rgb(0, 0, 0, 0.1);
  639. .van-icon__image {
  640. width: px2rpx(88);
  641. height: px2rpx(88);
  642. }
  643. .van-toast__text {
  644. font-family: Roboto;
  645. font-size: px2rpx(14);
  646. font-style: normal;
  647. font-weight: 400;
  648. line-height: px2rpx(20);
  649. color: #474747;
  650. text-align: center;
  651. letter-spacing: px2rpx(0.07);
  652. }
  653. }
  654. .page-header {
  655. position: fixed;
  656. top: calc(var(--secure-height, 0px) + env(safe-area-inset-top));
  657. left: 0;
  658. z-index: 13;
  659. display: flex;
  660. align-items: center;
  661. width: 100%;
  662. height: px2rpx(60);
  663. font-size: var(--font-size-22);
  664. font-weight: 700;
  665. color: var(--white);
  666. text-align: left;
  667. background: #fff;
  668. }
  669. .u-form-item__body {
  670. padding: 0 !important;
  671. }
  672. .u-form-item__body__right__message {
  673. margin-left: 10px !important;
  674. }
  675. .filter-picker {
  676. background-color: #ffffff;
  677. border: 1px solid #e5e7eb;
  678. border-radius: px2rpx(8);
  679. padding: px2rpx(6);
  680. display: flex;
  681. align-items: center;
  682. min-width: px2rpx(60);
  683. max-width: px2rpx(120);
  684. flex-shrink: 1;
  685. overflow: hidden;
  686. div {
  687. width: 100% !important;
  688. }
  689. }
  690. .picker-value {
  691. display: flex;
  692. align-items: center;
  693. gap: px2rpx(4);
  694. width: 100%;
  695. }
  696. .picker-text {
  697. min-width: px2rpx(60);
  698. max-width: px2rpx(100);
  699. font-size: px2rpx(12);
  700. color: #111827;
  701. overflow: hidden;
  702. text-overflow: ellipsis;
  703. white-space: nowrap;
  704. }
  705. .picker-icon {
  706. flex-shrink: 0;
  707. width: px2rpx(14);
  708. height: px2rpx(14);
  709. }
  710. .status-badge {
  711. display: flex;
  712. align-items: center;
  713. gap: px2rpx(4);
  714. padding: px2rpx(3) px2rpx(8) px2rpx(3) px2rpx(3);
  715. border-radius: px2rpx(12);
  716. }
  717. .filter-select {
  718. background-color: #ffffff;
  719. border: 1px solid #e5e7eb;
  720. border-radius: px2rpx(8);
  721. padding: px2rpx(6);
  722. display: flex;
  723. align-items: center;
  724. min-width: px2rpx(90);
  725. max-width: px2rpx(120);
  726. flex-shrink: 1;
  727. // overflow: hidden;
  728. div {
  729. // width: 100% !important;
  730. }
  731. .uni-select {
  732. width: 100% !important;
  733. padding: 0 !important;
  734. border: none !important;
  735. min-height: px2rpx(14) !important;
  736. }
  737. .uni-select__selector {
  738. min-width: 100px !important;
  739. max-width: 300px !important;
  740. width: max-content !important;
  741. }
  742. .uni-select__selector-item {
  743. white-space: nowrap !important;
  744. padding: 0 12px !important;
  745. }
  746. .uni-select__input-text {
  747. color: #6a6a6a;
  748. font-size: 12px;
  749. margin: 1px 0;
  750. padding: 0 !important;
  751. }
  752. .padding-top-bottom {
  753. padding: 0 !important;
  754. }
  755. }
  756. // 公共title样式
  757. .content-title {
  758. width: 100%;
  759. min-height: px2rpx(40);
  760. line-height: px2rpx(40);
  761. box-sizing: border-box;
  762. color: var(--color-white);
  763. background-color: var(--color-navy-900);
  764. padding: 0 px2rpx(15);
  765. font-size: px2rpx(20);
  766. font-weight: bold;
  767. }
  768. .crm-form {
  769. :deep(.uni-row1) {
  770. .uni-col {
  771. padding: 0 10px !important;
  772. }
  773. .base-info-form>span {
  774. display: contents;
  775. }
  776. .uni-forms-item {
  777. min-height: px2rpx(79);
  778. margin-bottom: px2rpx(10);
  779. }
  780. .uni-select,
  781. .uni-combox,
  782. .uni-easyinput__content,
  783. .uni-date-editor--x {
  784. border: none !important;
  785. background-color: var(--color-zinc-100) !important;
  786. }
  787. .uni-date-x {
  788. border: none !important;
  789. background-color: rgba(195, 195, 195, 0) !important;
  790. }
  791. .uni-easyinput__content {
  792. padding: 0 !important;
  793. }
  794. .checklist-text {
  795. color: #666 !important;
  796. }
  797. .checklist-box.is--default.is-checked .checkbox__inner {
  798. border-color: var(--color-error) !important;
  799. background-color: var(--color-error) !important;
  800. }
  801. }
  802. }
  803. .bg-secondary {
  804. background-color: var(--color-secondary) !important;
  805. border: 1px solid #333333;
  806. color: var(--color-white);
  807. }
  808. .underline {
  809. text-decoration: underline;
  810. text-decoration-color: currentColor;
  811. text-underline-offset: px2rpx(2);
  812. cursor: pointer;
  813. }
  814. .info-card {
  815. margin-top: px2rpx(4);
  816. border-radius: px2rpx(8);
  817. background-color: white;
  818. padding: px2rpx(16);
  819. // box-shadow: 0 0 px2rpx(8) rgba(0, 0, 0, 0.1);
  820. box-shadow:
  821. 0 0 px2rpx(4) rgba(0, 0, 0, 0.06),
  822. 0 px2rpx(6) px2rpx(12) rgba(0, 0, 0, 0.08);
  823. box-sizing: border-box;
  824. }
  825. // 状态标签基础样式
  826. .status-badge {
  827. display: inline-flex;
  828. align-items: center;
  829. padding: 4rpx 12rpx;
  830. border-radius: 4rpx;
  831. font-size: var(--font-size-24);
  832. font-weight: 500;
  833. line-height: 1.5;
  834. white-space: nowrap;
  835. transition: all var(--default-transition-duration) var(--default-transition-timing-function);
  836. // 当有取消按钮时调整右边距
  837. &.has-cancel {
  838. margin-right: 8rpx;
  839. }
  840. }
  841. // 待处理
  842. .status-warning {
  843. background-color: var(--status-warning-bg);
  844. color: var(--status-warning-text);
  845. }
  846. // 已完成
  847. .status-success {
  848. background-color: var(--status-success-bg);
  849. color: var(--status-success-text);
  850. }
  851. // 进行中
  852. .status-processing {
  853. background-color: var(--status-processing-bg);
  854. color: var(--status-processing-text);
  855. }
  856. // 已拒绝
  857. .status-danger {
  858. background-color: var(--status-danger-bg);
  859. color: var(--status-danger-text);
  860. }
  861. // 已过期
  862. .status-expired {
  863. background-color: var(--status-expired-bg);
  864. color: var(--status-expired-text);
  865. }
  866. // 已取消
  867. .status-cancelled {
  868. background-color: var(--status-cancelled-bg);
  869. color: var(--status-cancelled-text);
  870. }
  871. // 取消按钮容器
  872. .cancel-btn-wrapper {
  873. display: inline-flex;
  874. align-items: center;
  875. }
  876. // 取消按钮样式
  877. .cancel-btn {
  878. display: inline-flex;
  879. align-items: center;
  880. padding: 4rpx 12rpx;
  881. border-radius: 4rpx;
  882. font-size: var(--font-size-24);
  883. font-weight: 500;
  884. line-height: 1.5;
  885. color: var(--color-rose-500);
  886. background-color: var(--color-white);
  887. border: 1px solid var(--color-rose-500);
  888. cursor: pointer;
  889. transition: all var(--default-transition-duration) var(--default-transition-timing-function);
  890. white-space: nowrap;
  891. &:hover {
  892. color: var(--color-white);
  893. background-color: var(--color-rose-500);
  894. border-color: var(--color-rose-500);
  895. }
  896. // 添加点击效果
  897. &:active {
  898. transform: scale(0.95);
  899. }
  900. }