global.scss 34 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510
  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. --color-bg-main: #f8f9f9;
  108. --text-tiny: .625rem;
  109. --text-tiny--line-height: .8125rem;
  110. --text-tiny-plus: .6875rem;
  111. --text-tiny-plus--line-height: .875rem;
  112. --text-xs-plus: .8125rem;
  113. --text-xs-plus--line-height: 1.125rem;
  114. --text-sm-plus: .9375rem;
  115. --text-sm-plus--line-height: 1.375rem;
  116. --animate-shimmer: shimmer 2s linear infinite;
  117. // 状态背景色
  118. --status-warning-bg: var(--color-amber-50);
  119. --status-success-bg: var(--color-green-300);
  120. --status-processing-bg: var(--color-sky-100);
  121. --status-danger-bg: var(--color-pink-100);
  122. --status-expired-bg: var(--color-slate-200);
  123. --status-cancelled-bg: var(--color-slate-100);
  124. // 状态文字颜色
  125. --status-warning-text: var(--color-orange-600);
  126. --status-success-text: var(--color-green-400);
  127. --status-processing-text: var(--color-blue-600);
  128. --status-danger-text: var(--color-rose-500);
  129. --status-expired-text: var(--color-slate-600);
  130. --status-cancelled-text: var(--color-slate-500);
  131. // 状态边框颜色
  132. --status-warning-border: var(--color-amber-400);
  133. --status-success-border: var(--color-green-400);
  134. --status-processing-border: var(--color-sky-400);
  135. --status-danger-border: var(--color-pink-300);
  136. --status-expired-border: var(--color-slate-400);
  137. --status-cancelled-border: var(--color-slate-300);
  138. }
  139. .dark {
  140. --color-red-400: oklch(70.4% .191 22.216);
  141. --color-orange-600: oklch(64.6% .222 41.116);
  142. --color-amber-50: oklch(98.7% .022 95.277);
  143. --color-amber-400: oklch(82.8% .189 84.429);
  144. --color-yellow-100: oklch(97.3% .071 103.193);
  145. --color-yellow-400: oklch(85.2% .199 91.936);
  146. --color-yellow-500: oklch(79.5% .184 86.047);
  147. --color-green-300: oklch(87.1% .15 154.449);
  148. --color-green-400: oklch(79.2% .209 151.711);
  149. --color-sky-100: oklch(95.1% .026 236.824);
  150. --color-sky-400: oklch(74.6% .16 232.661);
  151. --color-blue-500: oklch(62.3% .214 259.815);
  152. --color-blue-600: oklch(54.6% .245 262.881);
  153. --color-indigo-50: oklch(96.2% .018 272.314);
  154. --color-indigo-100: oklch(93% .034 272.788);
  155. --color-indigo-400: oklch(67.3% .182 276.935);
  156. --color-indigo-600: oklch(51.1% .262 276.966);
  157. --color-violet-400: oklch(70.2% .183 293.541);
  158. --color-purple-300: oklch(82.7% .119 306.383);
  159. --color-purple-500: oklch(62.7% .265 303.9);
  160. --color-purple-600: oklch(55.8% .288 302.321);
  161. --color-fuchsia-400: oklch(74% .238 322.16);
  162. --color-fuchsia-600: oklch(59.1% .293 322.896);
  163. --color-pink-100: oklch(94.8% .028 342.258);
  164. --color-pink-300: oklch(82.3% .12 346.018);
  165. --color-pink-500: oklch(0.59 0.22 25.62);
  166. --color-pink-600: oklch(0.67 0.21 36.35);
  167. --color-rose-500: oklch(64.5% .246 16.439);
  168. --color-slate-50: oklch(98.4% .003 247.858);
  169. --color-slate-100: oklch(96.8% .007 247.896);
  170. --color-slate-200: oklch(92.9% .013 255.508);
  171. --color-slate-300: oklch(86.9% .022 252.894);
  172. --color-slate-400: oklch(70.4% .04 256.788);
  173. --color-slate-500: oklch(55.4% .046 257.417);
  174. --color-slate-600: oklch(44.6% .043 257.281);
  175. --color-slate-700: oklch(37.2% .044 257.287);
  176. --color-slate-800: oklch(27.9% .041 260.031);
  177. --color-slate-900: oklch(20.8% .042 265.755);
  178. --color-gray-200: oklch(92.8% .006 264.531);
  179. --color-zinc-100: oklch(96.7% .001 286.375);
  180. --color-black: #000;
  181. --color-white: #fff;
  182. --color-navy-900: #11224d;
  183. --font-size-10: px2rpx(10);
  184. --font-size-12: px2rpx(12);
  185. --font-size-13: px2rpx(13);
  186. --font-size-14: px2rpx(14);
  187. --font-size-15: px2rpx(15);
  188. --font-size-16: px2rpx(16);
  189. --font-size-18: px2rpx(18);
  190. --font-size-20: px2rpx(20);
  191. --font-size-22: px2rpx(22);
  192. --font-size-24: px2rpx(24);
  193. --font-size-26: px2rpx(26);
  194. --font-size-28: px2rpx(28);
  195. --font-size-32: px2rpx(32);
  196. --font-size-36: px2rpx(36);
  197. --font-size-40: px2rpx(40);
  198. --el-component-size: px2rpx(40);
  199. --ease-in: cubic-bezier(.4, 0, 1, 1);
  200. --ease-out: cubic-bezier(0, 0, .2, 1);
  201. --ease-in-out: cubic-bezier(.4, 0, .2, 1);
  202. --animate-spin: spin 1s linear infinite;
  203. --animate-ping: ping 1s cubic-bezier(0, 0, .2, 1) infinite;
  204. --animate-pulse: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
  205. --blur-sm: 8px;
  206. --default-transition-duration: .15s;
  207. --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
  208. --default-font-family: var(--font-sans);
  209. --default-mono-font-family: var(--font-mono);
  210. --font-inter: Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  211. --color-navy-50: #e7e9ef;
  212. --color-navy-100: #fff;
  213. --color-navy-200: #a3adc2;
  214. --color-navy-300: #697a9b;
  215. --color-navy-400: #5c6b8a;
  216. --color-navy-450: #465675;
  217. --color-navy-500: #3a3c43;
  218. --color-navy-600: #313e59;
  219. --color-navy-700: #242726;
  220. --color-navy-750: #222e45;
  221. --color-navy-800: #202b40;
  222. --color-navy-900: #141a18;
  223. --color-slate-150: #e9eef5;
  224. --color-primary: #4f46e5;
  225. --color-primary-focus: #4338ca;
  226. --color-secondary-light: #ff57d8;
  227. --color-secondary: #141a18;
  228. --color-secondary-focus: #242726;
  229. --color-accent-light: #242726;
  230. --color-accent: #5f5af6;
  231. --color-accent-focus: #4d47f5;
  232. --color-info: #0ea5e9;
  233. --color-info-focus: #0284c7;
  234. --color-success: #1ac23a;
  235. --color-success-focus: #17a732;
  236. --color-warning: #ff9800;
  237. --color-warning-focus: #e68200;
  238. --color-error: #e32326;
  239. --color-error-focus: #f03000;
  240. --color-gray-second: #6B7188;
  241. --color-bg-main: #f8f9f9;
  242. --text-tiny: .625rem;
  243. --text-tiny--line-height: .8125rem;
  244. --text-tiny-plus: .6875rem;
  245. --text-tiny-plus--line-height: .875rem;
  246. --text-xs-plus: .8125rem;
  247. --text-xs-plus--line-height: 1.125rem;
  248. --text-sm-plus: .9375rem;
  249. --text-sm-plus--line-height: 1.375rem;
  250. --animate-shimmer: shimmer 2s linear infinite;
  251. }
  252. body {
  253. min-height: 100vh;
  254. margin: 0 auto !important;
  255. font-size: px2rpx(12);
  256. line-height: 1;
  257. color: #000;
  258. }
  259. .uni-top-window {
  260. overflow: visible;
  261. }
  262. uni-left-window {
  263. position: fixed;
  264. top: px2rpx(56);
  265. left: 0;
  266. background-color: #fff;
  267. z-index: 1;
  268. transition: width 281ms cubic-bezier(0.4, 0, 0.2, 1);
  269. }
  270. uni-content {
  271. padding-left: px2rpx(280) !important;
  272. }
  273. @media screen and (max-width: 1100px) {
  274. uni-left-window {
  275. width: px2rpx(64) !important;
  276. white-space: nowrap;
  277. overflow: hidden;
  278. }
  279. uni-left-window:hover {
  280. width: px2rpx(280) !important;
  281. }
  282. uni-content {
  283. padding-left: px2rpx(64) !important;
  284. }
  285. }
  286. @media screen and (max-width: 991px) {
  287. uni-left-window {
  288. width: px2rpx(0) !important;
  289. overflow: hidden;
  290. transition: width 281ms cubic-bezier(0.4, 0, 0.2, 1);
  291. white-space: nowrap;
  292. }
  293. uni-content {
  294. padding-left: px2rpx(0) !important;
  295. }
  296. uni-left-window:hover {
  297. width: px2rpx(280) !important;
  298. }
  299. }
  300. .body {
  301. position: absolute;
  302. box-sizing: border-box;
  303. width: 100%;
  304. // height: 100vh;
  305. // padding-bottom: var(--tabbar-height);
  306. height: 100vh;
  307. overflow-y: scroll;
  308. transition: all 0.4s;
  309. -webkit-overflow-scrolling: touch;
  310. &.is-tab {
  311. // height: calc(100vh - var(--tabbar-height));
  312. }
  313. }
  314. .wrap {
  315. position: relative;
  316. width: 100%;
  317. height: 100vh;
  318. overflow: hidden;
  319. }
  320. .global-loading {
  321. position: fixed;
  322. top: 0;
  323. left: 0;
  324. z-index: 999;
  325. display: flex;
  326. align-items: center;
  327. justify-content: center;
  328. width: 100vw;
  329. height: 100vh;
  330. background: var(--main-bg);
  331. }
  332. .router-loading {
  333. position: fixed;
  334. top: 0;
  335. left: 0;
  336. z-index: 1000;
  337. display: flex;
  338. align-items: center;
  339. justify-content: center;
  340. width: 100vw;
  341. height: 100vh;
  342. background: var(--main-bg);
  343. }
  344. .full-screen-loading {
  345. position: fixed;
  346. top: 0;
  347. left: 0;
  348. z-index: 1001;
  349. display: flex;
  350. align-items: center;
  351. justify-content: center;
  352. width: 100vw;
  353. height: 100vh;
  354. background: var(--main-bg);
  355. }
  356. .request-loading,
  357. .full-screen-loading {
  358. position: fixed;
  359. top: 50%;
  360. left: 50%;
  361. z-index: 1001;
  362. display: flex;
  363. flex-direction: column;
  364. align-items: center;
  365. justify-content: center;
  366. padding: px2rpx(16) px2rpx(24);
  367. background: rgb(0, 0, 0, 0.88);
  368. backdrop-filter: blur(4px);
  369. box-shadow: 0 4px 12px rgb(0, 0, 0, 0.15);
  370. transform: translate(-50%, -50%);
  371. animation: fadeIn 0.2s ease-in-out;
  372. .van-loading {
  373. margin-bottom: px2rpx(8);
  374. }
  375. .loading-text {
  376. font-size: px2rpx(14);
  377. font-weight: 500;
  378. color: #fff;
  379. text-shadow: 0 px2rpx(1) px2rpx(2) rgb(0, 0, 0, 0.1);
  380. letter-spacing: px2rpx(0.5);
  381. }
  382. &::after {
  383. position: absolute;
  384. inset: px2rpx(-1);
  385. z-index: -1;
  386. content: '';
  387. background: linear-gradient(45deg, rgb(255, 255, 255, 0.1), rgb(255, 255, 255, 0.05));
  388. border-radius: px2rpx(12);
  389. }
  390. }
  391. .full-screen-loading {
  392. width: 100vw;
  393. height: 100vh;
  394. }
  395. @keyframes fadeIn {
  396. from {
  397. opacity: 0;
  398. transform: translate(-50%, -48%);
  399. }
  400. to {
  401. opacity: 1;
  402. transform: translate(-50%, -50%);
  403. }
  404. }
  405. .load-more {
  406. margin: px2rpx(10) 0;
  407. }
  408. /* 通用样式 */
  409. .slide-left-enter,
  410. .slide-right-leave-active {
  411. opacity: 0;
  412. transform: translate(100%, 0);
  413. }
  414. .slide-left-leave-active,
  415. .slide-right-enter {
  416. opacity: 0;
  417. transform: translate(-100%, 0);
  418. }
  419. /* .fade-leave-active below version 2.1.8 */
  420. .fade-enter-active,
  421. .fade-leave-active {
  422. transition: opacity 0.5s;
  423. }
  424. .fade-enter,
  425. .fade-leave-to {
  426. opacity: 0;
  427. }
  428. /* start--文本行数限制--start */
  429. .u-line-1 {
  430. overflow: hidden;
  431. text-overflow: ellipsis;
  432. white-space: nowrap;
  433. }
  434. .u-line-2 {
  435. -webkit-line-clamp: 2;
  436. }
  437. .u-line-3 {
  438. -webkit-line-clamp: 3;
  439. }
  440. .u-line-4 {
  441. -webkit-line-clamp: 4;
  442. }
  443. .u-line-5 {
  444. -webkit-line-clamp: 5;
  445. }
  446. .u-line-2,
  447. .u-line-3,
  448. .u-line-4,
  449. .u-line-5 {
  450. display: flex;
  451. overflow: hidden;
  452. text-overflow: ellipsis;
  453. word-break: break-all;
  454. -webkit-box-orient: vertical; // 设置伸缩盒子元素排列方式
  455. }
  456. /* end--文本行数限制--end */
  457. /* start--Retina 屏幕下的 1px 边框--start */
  458. .u-border,
  459. .u-border-bottom,
  460. .u-border-left,
  461. .u-border-right,
  462. .u-border-top,
  463. .u-border-top-bottom {
  464. position: relative;
  465. }
  466. .u-border-bottom::after,
  467. .u-border-left::after,
  468. .u-border-right::after,
  469. .u-border-top-bottom::after,
  470. .u-border-top::after,
  471. .u-border::after {
  472. position: absolute;
  473. top: 0;
  474. left: 0;
  475. z-index: 2;
  476. box-sizing: border-box;
  477. // 多加0.1%,能解决有时候边框缺失的问题
  478. width: 199.8%;
  479. height: 199.7%;
  480. pointer-events: none;
  481. content: ' ';
  482. border: 0 solid #e4e7ed;
  483. transform: scale(0.5, 0.5);
  484. transform-origin: 0 0;
  485. }
  486. .u-border-top::after {
  487. border-top-width: 1PX;
  488. }
  489. .u-border-left::after {
  490. border-left-width: 1PX;
  491. }
  492. .u-border-right::after {
  493. border-right-width: 1PX;
  494. }
  495. .u-border-bottom::after {
  496. border-bottom-width: 1PX;
  497. }
  498. .u-border-top-bottom::after {
  499. border-width: 1PX 0;
  500. }
  501. .u-border::after {
  502. border-width: 1PX;
  503. }
  504. .cwg-button {
  505. width: 100%;
  506. .u-button {
  507. height: px2rpx(44) !important;
  508. font-size: var(--font-size-16);
  509. font-weight: bold;
  510. color: var(--black);
  511. background-color: var(--color-navy-900) !important;
  512. border: none !important;
  513. border-radius: px2rpx(100) !important;
  514. &:active {
  515. opacity: 0.9;
  516. }
  517. }
  518. }
  519. .fixed-btn {
  520. position: fixed;
  521. bottom: 0;
  522. left: 0;
  523. z-index: 1100;
  524. display: flex;
  525. flex-direction: column;
  526. align-items: center;
  527. justify-content: center;
  528. width: 100%;
  529. height: px2rpx(90);
  530. padding: px2rpx(21) px2rpx(30);
  531. color: var(--black);
  532. background-color: var(--black);
  533. box-shadow: 0 -1px 2px rgb(134, 134, 133, 0.25);
  534. box-sizing: border-box;
  535. }
  536. .cwg-upload {
  537. box-sizing: border-box;
  538. display: flex;
  539. flex-direction: column;
  540. align-items: center;
  541. justify-content: center;
  542. width: 100%;
  543. height: px2rpx(160);
  544. padding: px2rpx(16);
  545. border: 1px dashed #beb6b6;
  546. border-radius: px2rpx(4);
  547. .name {
  548. display: flex;
  549. align-items: center;
  550. font-size: px2rpx(16);
  551. font-weight: 600;
  552. line-height: px2rpx(44);
  553. color: #1a1a1a;
  554. text-align: center;
  555. }
  556. .back {
  557. display: flex;
  558. align-items: center;
  559. font-size: px2rpx(16);
  560. line-height: px2rpx(24);
  561. color: #474747;
  562. text-align: center;
  563. letter-spacing: 0.005em;
  564. }
  565. }
  566. .g {
  567. display: flex;
  568. img {
  569. height: px2rpx(50);
  570. }
  571. .g-l {
  572. flex: 1;
  573. margin-left: px2rpx(16);
  574. .g-item {
  575. display: flex;
  576. justify-content: space-between;
  577. margin-bottom: px2rpx(16);
  578. }
  579. .label {
  580. font-family: Roboto;
  581. font-size: px2rpx(14);
  582. font-style: normal;
  583. font-weight: 600;
  584. line-height: px2rpx(20);
  585. color: #1a1a1a;
  586. text-align: left;
  587. }
  588. .v {
  589. font-family: Roboto;
  590. font-size: px2rpx(14);
  591. font-style: normal;
  592. font-weight: 600;
  593. line-height: px2rpx(20);
  594. color: #1a1a1a;
  595. text-align: center;
  596. }
  597. }
  598. }
  599. .fixed-right {
  600. position: fixed;
  601. top: px2rpx(4);
  602. right: px2rpx(10);
  603. z-index: 100;
  604. display: flex;
  605. align-items: center;
  606. justify-content: center;
  607. width: px2rpx(40);
  608. height: px2rpx(40);
  609. color: var(--main-yellow);
  610. cursor: pointer;
  611. i {
  612. display: flex;
  613. align-items: center;
  614. justify-content: center;
  615. width: px2rpx(20);
  616. height: px2rpx(20);
  617. font-size: px2rpx(14);
  618. color: var(--main-yellow);
  619. }
  620. &:hover {
  621. opacity: 0.8;
  622. }
  623. }
  624. .status-default {
  625. display: flex;
  626. gap: px2rpx(10);
  627. align-items: center;
  628. justify-content: center;
  629. padding: px2rpx(4) px2rpx(8);
  630. font-family: Roboto;
  631. font-size: px2rpx(12);
  632. font-style: normal;
  633. font-weight: 600;
  634. line-height: px2rpx(16);
  635. color: #009deb;
  636. letter-spacing: px2rpx(0.06);
  637. background: rgb(0, 157, 235, 0.2);
  638. border: 0 solid #f4f4f4;
  639. border-radius: px2rpx(9999);
  640. }
  641. .status-success {
  642. color: #4caf50;
  643. background: rgb(76, 175, 80, 0.2);
  644. }
  645. .status-error {
  646. color: #d32f2f;
  647. background: rgb(211, 47, 47, 0.21);
  648. }
  649. .status-views {
  650. display: flex;
  651. align-items: center;
  652. justify-content: center;
  653. width: px2rpx(65.063);
  654. // height: 36px;
  655. padding: px2rpx(8) px2rpx(16);
  656. font-family: Roboto;
  657. font-size: px2rpx(14);
  658. font-style: normal;
  659. font-weight: 600;
  660. line-height: px2rpx(20);
  661. color: #fff;
  662. text-align: center;
  663. letter-spacing: px2rpx(0.07);
  664. background: #ea002a;
  665. border-radius: px2rpx(10);
  666. }
  667. .ellipsis {
  668. width: 100%;
  669. overflow: hidden;
  670. text-overflow: ellipsis;
  671. white-space: nowrap;
  672. }
  673. .custom-toast {
  674. top: 40%;
  675. display: flex;
  676. flex-direction: column;
  677. gap: px2rpx(16);
  678. align-items: center;
  679. width: px2rpx(348);
  680. padding: px2rpx(32) px2rpx(24);
  681. background: #fff;
  682. border-radius: px2rpx(20);
  683. box-shadow: 0 4px 12px rgb(0, 0, 0, 0.1);
  684. .van-icon__image {
  685. width: px2rpx(88);
  686. height: px2rpx(88);
  687. }
  688. .van-toast__text {
  689. font-family: Roboto;
  690. font-size: px2rpx(14);
  691. font-style: normal;
  692. font-weight: 400;
  693. line-height: px2rpx(20);
  694. color: #474747;
  695. text-align: center;
  696. letter-spacing: px2rpx(0.07);
  697. }
  698. }
  699. .page-header {
  700. position: fixed;
  701. top: calc(var(--secure-height, 0px) + env(safe-area-inset-top));
  702. left: 0;
  703. z-index: 13;
  704. display: flex;
  705. align-items: center;
  706. width: 100%;
  707. height: px2rpx(60);
  708. font-size: var(--font-size-22);
  709. font-weight: 700;
  710. color: var(--white);
  711. text-align: left;
  712. background: #fff;
  713. }
  714. .u-form-item__body {
  715. padding: 0 !important;
  716. }
  717. .u-form-item__body__right__message {
  718. margin-left: 10px !important;
  719. }
  720. .filter-picker {
  721. background-color: var(--color-white);
  722. border: 1px solid #e5e7eb;
  723. border-radius: px2rpx(8);
  724. padding: px2rpx(6);
  725. display: flex;
  726. align-items: center;
  727. min-width: px2rpx(60);
  728. max-width: px2rpx(120);
  729. flex-shrink: 1;
  730. overflow: hidden;
  731. div {
  732. width: 100% !important;
  733. }
  734. }
  735. .picker-value {
  736. display: flex;
  737. align-items: center;
  738. gap: px2rpx(4);
  739. width: 100%;
  740. }
  741. .picker-text {
  742. min-width: px2rpx(60);
  743. max-width: px2rpx(100);
  744. font-size: px2rpx(12);
  745. color: #111827;
  746. overflow: hidden;
  747. text-overflow: ellipsis;
  748. white-space: nowrap;
  749. }
  750. .picker-icon {
  751. flex-shrink: 0;
  752. width: px2rpx(14);
  753. height: px2rpx(14);
  754. }
  755. .status-badge {
  756. display: flex;
  757. align-items: center;
  758. gap: px2rpx(4);
  759. padding: px2rpx(3) px2rpx(8) px2rpx(3) px2rpx(3);
  760. border-radius: px2rpx(12);
  761. }
  762. .filter-select {
  763. background-color: var(--color-white);
  764. border: 1px solid #e5e7eb;
  765. border-radius: px2rpx(8);
  766. padding: px2rpx(6);
  767. display: flex;
  768. align-items: center;
  769. min-width: px2rpx(90);
  770. max-width: px2rpx(120);
  771. flex-shrink: 1;
  772. // overflow: hidden;
  773. div {
  774. // width: 100% !important;
  775. }
  776. .uni-select {
  777. width: 100% !important;
  778. padding: 0 !important;
  779. border: none !important;
  780. min-height: px2rpx(14) !important;
  781. }
  782. .uni-select__selector {
  783. min-width: 100px !important;
  784. max-width: 300px !important;
  785. width: max-content !important;
  786. }
  787. .uni-select__selector-item {
  788. white-space: nowrap !important;
  789. padding: 0 12px !important;
  790. }
  791. .uni-select__input-text {
  792. color: #6a6a6a;
  793. font-size: 12px;
  794. margin: 1px 0;
  795. padding: 0 !important;
  796. }
  797. .padding-top-bottom {
  798. padding: 0 !important;
  799. }
  800. }
  801. // 公共title样式
  802. .content-title {
  803. width: 100%;
  804. min-height: px2rpx(40);
  805. line-height: px2rpx(40);
  806. box-sizing: border-box;
  807. color: var(--color-navy-900);
  808. // color: var(--color-white);
  809. // background-color: var(--color-navy-900);
  810. padding: 0 px2rpx(15);
  811. font-size: px2rpx(20);
  812. font-weight: bold;
  813. }
  814. .s-btn {
  815. &.reselect {
  816. background-color: var(--color-zinc-100);
  817. color: var(--color-navy-700);
  818. border: none;
  819. font-size: px2rpx(14);
  820. padding: px2rpx(8) px2rpx(20);
  821. border-radius: px2rpx(8);
  822. &:active {
  823. background-color: var(--color-zinc-200);
  824. }
  825. }
  826. &[type="primary"] {
  827. width: 100%;
  828. height: px2rpx(48);
  829. background: var(--color-navy-900);
  830. color: #fff;
  831. border-radius: px2rpx(12);
  832. font-size: px2rpx(16);
  833. font-weight: 600;
  834. display: flex;
  835. align-items: center;
  836. justify-content: center;
  837. border: none;
  838. margin-top: px2rpx(30);
  839. transition: all 0.2s;
  840. &:active {
  841. transform: scale(0.98);
  842. background: var(--color-navy-800);
  843. }
  844. }
  845. }
  846. .search-bar {
  847. display: flex;
  848. align-items: center;
  849. justify-content: flex-start;
  850. flex-wrap: wrap;
  851. gap: px2rpx(16);
  852. margin: px2rpx(16) 0;
  853. .cwg-combox,
  854. .uni-easyinput,
  855. .uni-date {
  856. width: px2rpx(224) !important;
  857. flex: none !important;
  858. }
  859. .s-btn {
  860. width: px2rpx(224);
  861. background-color: var(--color-error);
  862. color: var(--color-white);
  863. padding: px2rpx(10) px2rpx(20);
  864. border: none;
  865. font-size: px2rpx(15);
  866. text-align: center;
  867. cursor: pointer;
  868. box-sizing: border-box;
  869. }
  870. }
  871. :deep(.uni-row1) {
  872. width: 100%;
  873. // margin: 0 px2rpx(-10) !important;
  874. box-sizing: border-box;
  875. .uni-col {
  876. padding: 0 px2rpx(10) !important;
  877. box-sizing: border-box;
  878. }
  879. .base-info-form>span {
  880. display: contents;
  881. }
  882. .uni-forms-item {
  883. min-height: px2rpx(79);
  884. margin-bottom: px2rpx(10);
  885. }
  886. .uni-select,
  887. .uni-combox,
  888. .uni-easyinput__content,
  889. .uni-date-editor--x {
  890. border: none !important;
  891. background-color: var(--color-zinc-100) !important;
  892. }
  893. .uni-date-x {
  894. border: none !important;
  895. background-color: rgba(195, 195, 195, 0) !important;
  896. }
  897. .uni-easyinput__content {
  898. padding: 0 !important;
  899. }
  900. .checklist-text {
  901. color: #666 !important;
  902. }
  903. .checklist-box.is--default.is-checked .checkbox__inner {
  904. border-color: var(--color-error) !important;
  905. background-color: var(--color-error) !important;
  906. }
  907. }
  908. :deep(.uni-row2) {
  909. .uni-select,
  910. .uni-combox,
  911. .uni-easyinput__content,
  912. .uni-date-editor--x {
  913. border: 1px solid var(--color-slate-300) !important;
  914. background-color: rgba(195, 195, 195, 0) !important;
  915. }
  916. .uni-date-x {
  917. background-color: rgba(195, 195, 195, 0) !important;
  918. }
  919. }
  920. .bg-secondary {
  921. background-color: var(--color-secondary) !important;
  922. border: 1px solid #333333;
  923. color: var(--color-white);
  924. }
  925. .underline {
  926. text-decoration: underline;
  927. text-decoration-color: currentColor;
  928. text-underline-offset: px2rpx(2);
  929. cursor: pointer;
  930. }
  931. .info-card {
  932. // margin-top: px2rpx(4);
  933. // border-radius: px2rpx(8);
  934. // background-color: white;
  935. // padding: px2rpx(8);
  936. // box-shadow: 0 0 px2rpx(8) rgba(0, 0, 0, 0.1);
  937. // box-shadow:
  938. // 0 0 px2rpx(4) rgba(0, 0, 0, 0.06),
  939. // 0 px2rpx(6) px2rpx(12) rgba(0, 0, 0, 0.08);
  940. box-sizing: border-box;
  941. // padding: px2rpx(20);
  942. // border: 1px solid rgba(108, 133, 149, 0.12);
  943. border-radius: px2rpx(8);
  944. }
  945. .crm-title-box {
  946. background-color: var(--color-gray-second);
  947. color: var(--color-white);
  948. height: 40px;
  949. display: flex;
  950. justify-content: space-between;
  951. align-items: center;
  952. margin-bottom: 10px;
  953. border-radius: 2px;
  954. padding: 0 20px;
  955. .tit {
  956. font-size: 14px;
  957. font-weight: bold;
  958. color: var(--color-white);
  959. }
  960. }
  961. .status-box {
  962. display: flex;
  963. align-items: center;
  964. gap: px2rpx(4);
  965. }
  966. @media screen and (max-width: 991px) {
  967. .info-card {
  968. box-sizing: border-box;
  969. // padding: px2rpx(20);
  970. border: 0 !important;
  971. border-radius: 0 !important;
  972. }
  973. .status-box {
  974. display: flex;
  975. flex-direction: column;
  976. gap: px2rpx(4);
  977. }
  978. }
  979. // 状态标签基础样式
  980. .status-badge {
  981. display: inline-flex;
  982. align-items: center;
  983. padding: 4rpx 12rpx;
  984. border-radius: 4rpx;
  985. font-size: var(--font-size-24);
  986. font-weight: 500;
  987. line-height: 1.5;
  988. white-space: nowrap;
  989. transition: all var(--default-transition-duration) var(--default-transition-timing-function);
  990. // 当有取消按钮时调整右边距
  991. &.has-cancel {
  992. margin-right: 8rpx;
  993. }
  994. }
  995. // 状态标签基础样式
  996. .status-tag {
  997. display: inline-block;
  998. padding: px2rpx(4) px2rpx(8);
  999. border-radius: px2rpx(2);
  1000. font-size: px2rpx(15);
  1001. text-align: center;
  1002. min-width: px2rpx(80);
  1003. box-sizing: border-box;
  1004. }
  1005. // 待处理
  1006. .status-pending {
  1007. background-color: #fef3c7;
  1008. color: #d97706;
  1009. }
  1010. // 处理中
  1011. .status-processing {
  1012. background-color: #a9d3ee;
  1013. color: #0284c7;
  1014. }
  1015. // 成功
  1016. .status-success {
  1017. background-color: #a3f7c0;
  1018. color: #16a34a;
  1019. }
  1020. // 失败
  1021. .status-failed {
  1022. background-color: #f39c9c;
  1023. color: #dc2626;
  1024. }
  1025. // 取消 / 已取消
  1026. .status-cancelled {
  1027. background-color: #a4bef2;
  1028. color: #4b5563;
  1029. }
  1030. // 已过期
  1031. .status-expired,
  1032. .status-canceled {
  1033. background-color: #f5efb1;
  1034. color: #a16207;
  1035. }
  1036. // 已完成
  1037. .status-completed {
  1038. background-color: #d1fae5;
  1039. color: #059669;
  1040. }
  1041. // 待处理
  1042. .status-warning {
  1043. background-color: var(--status-warning-bg);
  1044. color: var(--status-warning-text);
  1045. }
  1046. // 已完成
  1047. .status-success {
  1048. background-color: var(--status-success-bg);
  1049. color: var(--status-success-text);
  1050. }
  1051. // 进行中
  1052. .status-processing {
  1053. background-color: var(--status-processing-bg);
  1054. color: var(--status-processing-text);
  1055. }
  1056. // 已拒绝
  1057. .status-danger {
  1058. background-color: var(--status-danger-bg);
  1059. color: var(--status-danger-text);
  1060. }
  1061. // 已过期
  1062. .status-expired {
  1063. background-color: var(--status-expired-bg);
  1064. color: var(--status-expired-text);
  1065. }
  1066. // 已取消
  1067. .status-cancelled {
  1068. background-color: var(--status-cancelled-bg);
  1069. color: var(--status-cancelled-text);
  1070. }
  1071. // 取消按钮容器
  1072. .cancel-btn-wrapper {
  1073. display: inline-flex;
  1074. align-items: center;
  1075. }
  1076. // 取消按钮样式
  1077. .cancel-btn {
  1078. display: inline-flex;
  1079. align-items: center;
  1080. padding: 4rpx 12rpx;
  1081. border-radius: 4rpx;
  1082. font-size: var(--font-size-24);
  1083. font-weight: 500;
  1084. line-height: 1.5;
  1085. color: var(--color-rose-500);
  1086. background-color: var(--color-white);
  1087. border: 1px solid var(--color-rose-500);
  1088. cursor: pointer;
  1089. transition: all var(--default-transition-duration) var(--default-transition-timing-function);
  1090. white-space: nowrap;
  1091. &:hover {
  1092. color: var(--color-white);
  1093. background-color: var(--color-rose-500);
  1094. border-color: var(--color-rose-500);
  1095. }
  1096. // 添加点击效果
  1097. &:active {
  1098. transform: scale(0.95);
  1099. }
  1100. }
  1101. .pc-header-btn {
  1102. width: px2rpx(40);
  1103. height: px2rpx(40);
  1104. border-radius: px2rpx(4);
  1105. border: 1px solid rgba(108, 133, 149, 0);
  1106. display: flex;
  1107. align-items: center;
  1108. font-size: px2rpx(14);
  1109. cursor: pointer;
  1110. display: flex;
  1111. justify-content: center;
  1112. align-items: center;
  1113. &:hover {
  1114. background: rgba(108, 133, 149, 0.12);
  1115. border-color: rgb(145, 163, 176);
  1116. }
  1117. }
  1118. .popup-content {
  1119. // padding: px2rpx(30) px2rpx(20);
  1120. text-align: center;
  1121. min-width: px2rpx(250);
  1122. @media screen and (max-width: 991px) {
  1123. // min-width: 80%;
  1124. // max-width: 90%;
  1125. // margin: 0 px2rpx(10);
  1126. }
  1127. position: relative;
  1128. .icon {
  1129. .iconfont {
  1130. font-size: px2rpx(60);
  1131. display: block;
  1132. margin: 0 auto;
  1133. }
  1134. .icon-chenggong {
  1135. color: #67c23a;
  1136. }
  1137. .icon-jingshi {
  1138. color: #f56c6c;
  1139. }
  1140. .icon-dengdai {
  1141. color: #e6a23c;
  1142. }
  1143. }
  1144. .des1 {
  1145. font-weight: 600;
  1146. font-size: px2rpx(16);
  1147. margin: px2rpx(20) 0 px2rpx(15);
  1148. color: #303133;
  1149. line-height: 1.4;
  1150. padding: 0 px2rpx(10);
  1151. }
  1152. }
  1153. .dialog-footer {
  1154. padding: px2rpx(20) px2rpx(30) px2rpx(30);
  1155. border-top: 1px solid #f0f0f0;
  1156. .btn-content {
  1157. // 双按钮模式
  1158. &:not(:has(button:only-child)):has(button) {
  1159. display: flex;
  1160. justify-content: center;
  1161. gap: px2rpx(20);
  1162. }
  1163. // 单按钮模式
  1164. &:has(button:only-child) {
  1165. display: flex;
  1166. justify-content: center;
  1167. }
  1168. }
  1169. .footer-line {
  1170. height: 1px;
  1171. background-color: #f0f0f0;
  1172. margin: px2rpx(-20) 0 0;
  1173. }
  1174. button {
  1175. min-width: px2rpx(120);
  1176. height: px2rpx(40);
  1177. border-radius: px2rpx(4);
  1178. font-size: px2rpx(16);
  1179. display: flex;
  1180. align-items: center;
  1181. justify-content: center;
  1182. border: none;
  1183. cursor: pointer;
  1184. transition: all 0.3s ease;
  1185. margin: 0;
  1186. &:active {
  1187. opacity: 0.8;
  1188. transform: scale(0.98);
  1189. }
  1190. &:disabled {
  1191. opacity: 0.5;
  1192. cursor: not-allowed;
  1193. }
  1194. }
  1195. .cancel-btn {
  1196. background-color: #f5f5f5;
  1197. color: #666;
  1198. &:active {
  1199. background-color: #e8e8e8;
  1200. }
  1201. }
  1202. .confirm-btn {
  1203. &.primary {
  1204. background-color: #007aff;
  1205. color: #fff;
  1206. &:active {
  1207. background-color: #0056b3;
  1208. }
  1209. }
  1210. &.danger {
  1211. background-color: #ff6b6b;
  1212. color: #fff;
  1213. &:active {
  1214. background-color: #ff5252;
  1215. }
  1216. }
  1217. }
  1218. .single-btn {
  1219. min-width: px2rpx(200);
  1220. &.primary {
  1221. background-color: #007aff;
  1222. color: #fff;
  1223. }
  1224. &.danger {
  1225. background-color: #ff6b6b;
  1226. color: #fff;
  1227. }
  1228. &.default {
  1229. background-color: #f5f5f5;
  1230. color: #666;
  1231. }
  1232. }
  1233. }
  1234. .wait-popup {
  1235. .des1 {
  1236. margin-top: px2rpx(10);
  1237. }
  1238. .icon {
  1239. .iconfont {
  1240. animation: spin 1s linear infinite;
  1241. }
  1242. }
  1243. }
  1244. // 适配不同屏幕尺寸(媒体查询中的 750rpx 保持不变)
  1245. @media (max-width: 750rpx) {
  1246. .popup-content {
  1247. .icon {
  1248. .iconfont {
  1249. font-size: px2rpx(50);
  1250. }
  1251. }
  1252. .des1 {
  1253. font-size: px2rpx(14);
  1254. margin: px2rpx(15) 0 px2rpx(10);
  1255. }
  1256. .dialog-footer {
  1257. button {
  1258. min-width: px2rpx(80);
  1259. font-size: px2rpx(13);
  1260. }
  1261. }
  1262. }
  1263. }
  1264. .clause-content {
  1265. max-height: px2rpx(500);
  1266. overflow-y: auto;
  1267. text-align: left;
  1268. line-height: 1.6;
  1269. .h4 {
  1270. font-size: px2rpx(16);
  1271. font-weight: bold;
  1272. margin: px2rpx(16) 0;
  1273. }
  1274. .list {
  1275. .list-item {
  1276. margin-bottom: px2rpx(12);
  1277. }
  1278. }
  1279. .table-container {
  1280. width: 100%;
  1281. overflow-x: auto;
  1282. margin: px2rpx(16) 0;
  1283. .table {
  1284. display: table;
  1285. width: 100%;
  1286. table-layout: fixed;
  1287. border: 1px solid #e4e7ed;
  1288. box-sizing: border-box;
  1289. .tr {
  1290. display: table-row;
  1291. }
  1292. .th,
  1293. .td {
  1294. display: table-cell;
  1295. width: calc(100% / 6);
  1296. padding: px2rpx(8);
  1297. text-align: center;
  1298. border-right: 1px solid #e4e7ed;
  1299. border-bottom: 1px solid #e4e7ed;
  1300. &:last-child {
  1301. border-right: none;
  1302. }
  1303. }
  1304. .tr:last-child .td,
  1305. .tr:last-child .th {
  1306. border-bottom: none;
  1307. }
  1308. }
  1309. }
  1310. }
  1311. .crm-cursor {
  1312. cursor: pointer;
  1313. }