global.scss 27 KB

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