global.scss 27 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118
  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. }
  254. uni-left-window {
  255. position: fixed;
  256. top: px2rpx(56);
  257. left: 0;
  258. background-color: #fff;
  259. z-index: 1;
  260. transition: width 281ms cubic-bezier(0.4, 0, 0.2, 1);
  261. }
  262. uni-content {
  263. padding-left: px2rpx(280) !important;
  264. }
  265. @media screen and (max-width: 1100px) {
  266. uni-left-window {
  267. width: px2rpx(64) !important;
  268. white-space: nowrap;
  269. overflow: hidden;
  270. }
  271. uni-left-window:hover {
  272. width: px2rpx(280) !important;
  273. }
  274. uni-content {
  275. padding-left: px2rpx(64) !important;
  276. }
  277. }
  278. @media screen and (max-width: 991px) {
  279. uni-left-window {
  280. width: px2rpx(0) !important;
  281. overflow: hidden;
  282. transition: width 281ms cubic-bezier(0.4, 0, 0.2, 1);
  283. white-space: nowrap;
  284. }
  285. uni-content {
  286. padding-left: px2rpx(0) !important;
  287. }
  288. uni-left-window:hover {
  289. width: px2rpx(280) !important;
  290. }
  291. }
  292. .body {
  293. position: absolute;
  294. box-sizing: border-box;
  295. width: 100%;
  296. // height: 100vh;
  297. // padding-bottom: var(--tabbar-height);
  298. height: 100vh;
  299. overflow-y: scroll;
  300. transition: all 0.4s;
  301. -webkit-overflow-scrolling: touch;
  302. &.is-tab {
  303. // height: calc(100vh - var(--tabbar-height));
  304. }
  305. }
  306. .wrap {
  307. position: relative;
  308. width: 100%;
  309. height: 100vh;
  310. overflow: hidden;
  311. }
  312. .global-loading {
  313. position: fixed;
  314. top: 0;
  315. left: 0;
  316. z-index: 999;
  317. display: flex;
  318. align-items: center;
  319. justify-content: center;
  320. width: 100vw;
  321. height: 100vh;
  322. background: var(--main-bg);
  323. }
  324. .router-loading {
  325. position: fixed;
  326. top: 0;
  327. left: 0;
  328. z-index: 1000;
  329. display: flex;
  330. align-items: center;
  331. justify-content: center;
  332. width: 100vw;
  333. height: 100vh;
  334. background: var(--main-bg);
  335. }
  336. .full-screen-loading {
  337. position: fixed;
  338. top: 0;
  339. left: 0;
  340. z-index: 1001;
  341. display: flex;
  342. align-items: center;
  343. justify-content: center;
  344. width: 100vw;
  345. height: 100vh;
  346. background: var(--main-bg);
  347. }
  348. .request-loading,
  349. .full-screen-loading {
  350. position: fixed;
  351. top: 50%;
  352. left: 50%;
  353. z-index: 1001;
  354. display: flex;
  355. flex-direction: column;
  356. align-items: center;
  357. justify-content: center;
  358. padding: px2rpx(16) px2rpx(24);
  359. background: rgb(0, 0, 0, 0.88);
  360. backdrop-filter: blur(4px);
  361. box-shadow: 0 4px 12px rgb(0, 0, 0, 0.15);
  362. transform: translate(-50%, -50%);
  363. animation: fadeIn 0.2s ease-in-out;
  364. .van-loading {
  365. margin-bottom: px2rpx(8);
  366. }
  367. .loading-text {
  368. font-size: px2rpx(14);
  369. font-weight: 500;
  370. color: #fff;
  371. text-shadow: 0 px2rpx(1) px2rpx(2) rgb(0, 0, 0, 0.1);
  372. letter-spacing: px2rpx(0.5);
  373. }
  374. &::after {
  375. position: absolute;
  376. inset: px2rpx(-1);
  377. z-index: -1;
  378. content: '';
  379. background: linear-gradient(45deg, rgb(255, 255, 255, 0.1), rgb(255, 255, 255, 0.05));
  380. border-radius: px2rpx(12);
  381. }
  382. }
  383. .full-screen-loading {
  384. width: 100vw;
  385. height: 100vh;
  386. }
  387. @keyframes fadeIn {
  388. from {
  389. opacity: 0;
  390. transform: translate(-50%, -48%);
  391. }
  392. to {
  393. opacity: 1;
  394. transform: translate(-50%, -50%);
  395. }
  396. }
  397. .load-more {
  398. margin: px2rpx(10) 0;
  399. }
  400. /* 通用样式 */
  401. .slide-left-enter,
  402. .slide-right-leave-active {
  403. opacity: 0;
  404. transform: translate(100%, 0);
  405. }
  406. .slide-left-leave-active,
  407. .slide-right-enter {
  408. opacity: 0;
  409. transform: translate(-100%, 0);
  410. }
  411. /* .fade-leave-active below version 2.1.8 */
  412. .fade-enter-active,
  413. .fade-leave-active {
  414. transition: opacity 0.5s;
  415. }
  416. .fade-enter,
  417. .fade-leave-to {
  418. opacity: 0;
  419. }
  420. /* start--文本行数限制--start */
  421. .u-line-1 {
  422. overflow: hidden;
  423. text-overflow: ellipsis;
  424. white-space: nowrap;
  425. }
  426. .u-line-2 {
  427. -webkit-line-clamp: 2;
  428. }
  429. .u-line-3 {
  430. -webkit-line-clamp: 3;
  431. }
  432. .u-line-4 {
  433. -webkit-line-clamp: 4;
  434. }
  435. .u-line-5 {
  436. -webkit-line-clamp: 5;
  437. }
  438. .u-line-2,
  439. .u-line-3,
  440. .u-line-4,
  441. .u-line-5 {
  442. display: flex;
  443. overflow: hidden;
  444. text-overflow: ellipsis;
  445. word-break: break-all;
  446. -webkit-box-orient: vertical; // 设置伸缩盒子元素排列方式
  447. }
  448. /* end--文本行数限制--end */
  449. /* start--Retina 屏幕下的 1px 边框--start */
  450. .u-border,
  451. .u-border-bottom,
  452. .u-border-left,
  453. .u-border-right,
  454. .u-border-top,
  455. .u-border-top-bottom {
  456. position: relative;
  457. }
  458. .u-border-bottom::after,
  459. .u-border-left::after,
  460. .u-border-right::after,
  461. .u-border-top-bottom::after,
  462. .u-border-top::after,
  463. .u-border::after {
  464. position: absolute;
  465. top: 0;
  466. left: 0;
  467. z-index: 2;
  468. box-sizing: border-box;
  469. // 多加0.1%,能解决有时候边框缺失的问题
  470. width: 199.8%;
  471. height: 199.7%;
  472. pointer-events: none;
  473. content: ' ';
  474. border: 0 solid #e4e7ed;
  475. transform: scale(0.5, 0.5);
  476. transform-origin: 0 0;
  477. }
  478. .u-border-top::after {
  479. border-top-width: 1PX;
  480. }
  481. .u-border-left::after {
  482. border-left-width: 1PX;
  483. }
  484. .u-border-right::after {
  485. border-right-width: 1PX;
  486. }
  487. .u-border-bottom::after {
  488. border-bottom-width: 1PX;
  489. }
  490. .u-border-top-bottom::after {
  491. border-width: 1PX 0;
  492. }
  493. .u-border::after {
  494. border-width: 1PX;
  495. }
  496. .cwg-button {
  497. width: 100%;
  498. .u-button {
  499. height: px2rpx(44) !important;
  500. font-size: var(--font-size-16);
  501. font-weight: bold;
  502. color: var(--black);
  503. background: var(--main-yellow) !important;
  504. border: none !important;
  505. border-radius: px2rpx(100) !important;
  506. &:active {
  507. opacity: 0.9;
  508. }
  509. }
  510. }
  511. .fixed-btn {
  512. position: fixed;
  513. bottom: 0;
  514. left: 0;
  515. z-index: 1100;
  516. display: flex;
  517. flex-direction: column;
  518. align-items: center;
  519. justify-content: center;
  520. width: 100%;
  521. height: px2rpx(90);
  522. padding: px2rpx(21) px2rpx(30);
  523. color: var(--black);
  524. background-color: var(--black);
  525. box-shadow: 0 -1px 2px rgb(134, 134, 133, 0.25);
  526. box-sizing: border-box;
  527. }
  528. .cwg-upload {
  529. box-sizing: border-box;
  530. display: flex;
  531. flex-direction: column;
  532. align-items: center;
  533. justify-content: center;
  534. width: 100%;
  535. height: px2rpx(160);
  536. padding: px2rpx(16);
  537. border: 1px dashed #beb6b6;
  538. border-radius: px2rpx(4);
  539. .name {
  540. display: flex;
  541. align-items: center;
  542. font-size: px2rpx(16);
  543. font-weight: 600;
  544. line-height: px2rpx(44);
  545. color: #1a1a1a;
  546. text-align: center;
  547. }
  548. .back {
  549. display: flex;
  550. align-items: center;
  551. font-size: px2rpx(16);
  552. line-height: px2rpx(24);
  553. color: #474747;
  554. text-align: center;
  555. letter-spacing: 0.005em;
  556. }
  557. }
  558. .g {
  559. display: flex;
  560. img {
  561. height: px2rpx(50);
  562. }
  563. .g-l {
  564. flex: 1;
  565. margin-left: px2rpx(16);
  566. .g-item {
  567. display: flex;
  568. justify-content: space-between;
  569. margin-bottom: px2rpx(16);
  570. }
  571. .label {
  572. font-family: Roboto;
  573. font-size: px2rpx(14);
  574. font-style: normal;
  575. font-weight: 600;
  576. line-height: px2rpx(20);
  577. color: #1a1a1a;
  578. text-align: left;
  579. }
  580. .v {
  581. font-family: Roboto;
  582. font-size: px2rpx(14);
  583. font-style: normal;
  584. font-weight: 600;
  585. line-height: px2rpx(20);
  586. color: #1a1a1a;
  587. text-align: center;
  588. }
  589. }
  590. }
  591. .fixed-right {
  592. position: fixed;
  593. top: px2rpx(4);
  594. right: px2rpx(10);
  595. z-index: 100;
  596. display: flex;
  597. align-items: center;
  598. justify-content: center;
  599. width: px2rpx(40);
  600. height: px2rpx(40);
  601. color: var(--main-yellow);
  602. cursor: pointer;
  603. i {
  604. display: flex;
  605. align-items: center;
  606. justify-content: center;
  607. width: px2rpx(20);
  608. height: px2rpx(20);
  609. font-size: px2rpx(14);
  610. color: var(--main-yellow);
  611. }
  612. &:hover {
  613. opacity: 0.8;
  614. }
  615. }
  616. .status-default {
  617. display: flex;
  618. gap: px2rpx(10);
  619. align-items: center;
  620. justify-content: center;
  621. padding: px2rpx(4) px2rpx(8);
  622. font-family: Roboto;
  623. font-size: px2rpx(12);
  624. font-style: normal;
  625. font-weight: 600;
  626. line-height: px2rpx(16);
  627. color: #009deb;
  628. letter-spacing: px2rpx(0.06);
  629. background: rgb(0, 157, 235, 0.2);
  630. border: 0 solid #f4f4f4;
  631. border-radius: px2rpx(9999);
  632. }
  633. .status-success {
  634. color: #4caf50;
  635. background: rgb(76, 175, 80, 0.2);
  636. }
  637. .status-error {
  638. color: #d32f2f;
  639. background: rgb(211, 47, 47, 0.21);
  640. }
  641. .status-views {
  642. display: flex;
  643. align-items: center;
  644. justify-content: center;
  645. width: px2rpx(65.063);
  646. // height: 36px;
  647. padding: px2rpx(8) px2rpx(16);
  648. font-family: Roboto;
  649. font-size: px2rpx(14);
  650. font-style: normal;
  651. font-weight: 600;
  652. line-height: px2rpx(20);
  653. color: #fff;
  654. text-align: center;
  655. letter-spacing: px2rpx(0.07);
  656. background: #ea002a;
  657. border-radius: px2rpx(10);
  658. }
  659. .ellipsis {
  660. width: 100%;
  661. overflow: hidden;
  662. text-overflow: ellipsis;
  663. white-space: nowrap;
  664. }
  665. .custom-toast {
  666. top: 40%;
  667. display: flex;
  668. flex-direction: column;
  669. gap: px2rpx(16);
  670. align-items: center;
  671. width: px2rpx(348);
  672. padding: px2rpx(32) px2rpx(24);
  673. background: #fff;
  674. border-radius: px2rpx(20);
  675. box-shadow: 0 4px 12px rgb(0, 0, 0, 0.1);
  676. .van-icon__image {
  677. width: px2rpx(88);
  678. height: px2rpx(88);
  679. }
  680. .van-toast__text {
  681. font-family: Roboto;
  682. font-size: px2rpx(14);
  683. font-style: normal;
  684. font-weight: 400;
  685. line-height: px2rpx(20);
  686. color: #474747;
  687. text-align: center;
  688. letter-spacing: px2rpx(0.07);
  689. }
  690. }
  691. .page-header {
  692. position: fixed;
  693. top: calc(var(--secure-height, 0px) + env(safe-area-inset-top));
  694. left: 0;
  695. z-index: 13;
  696. display: flex;
  697. align-items: center;
  698. width: 100%;
  699. height: px2rpx(60);
  700. font-size: var(--font-size-22);
  701. font-weight: 700;
  702. color: var(--white);
  703. text-align: left;
  704. background: #fff;
  705. }
  706. .u-form-item__body {
  707. padding: 0 !important;
  708. }
  709. .u-form-item__body__right__message {
  710. margin-left: 10px !important;
  711. }
  712. .filter-picker {
  713. background-color: var(--color-white);
  714. border: 1px solid #e5e7eb;
  715. border-radius: px2rpx(8);
  716. padding: px2rpx(6);
  717. display: flex;
  718. align-items: center;
  719. min-width: px2rpx(60);
  720. max-width: px2rpx(120);
  721. flex-shrink: 1;
  722. overflow: hidden;
  723. div {
  724. width: 100% !important;
  725. }
  726. }
  727. .picker-value {
  728. display: flex;
  729. align-items: center;
  730. gap: px2rpx(4);
  731. width: 100%;
  732. }
  733. .picker-text {
  734. min-width: px2rpx(60);
  735. max-width: px2rpx(100);
  736. font-size: px2rpx(12);
  737. color: #111827;
  738. overflow: hidden;
  739. text-overflow: ellipsis;
  740. white-space: nowrap;
  741. }
  742. .picker-icon {
  743. flex-shrink: 0;
  744. width: px2rpx(14);
  745. height: px2rpx(14);
  746. }
  747. .status-badge {
  748. display: flex;
  749. align-items: center;
  750. gap: px2rpx(4);
  751. padding: px2rpx(3) px2rpx(8) px2rpx(3) px2rpx(3);
  752. border-radius: px2rpx(12);
  753. }
  754. .filter-select {
  755. background-color: var(--color-white);
  756. border: 1px solid #e5e7eb;
  757. border-radius: px2rpx(8);
  758. padding: px2rpx(6);
  759. display: flex;
  760. align-items: center;
  761. min-width: px2rpx(90);
  762. max-width: px2rpx(120);
  763. flex-shrink: 1;
  764. // overflow: hidden;
  765. div {
  766. // width: 100% !important;
  767. }
  768. .uni-select {
  769. width: 100% !important;
  770. padding: 0 !important;
  771. border: none !important;
  772. min-height: px2rpx(14) !important;
  773. }
  774. .uni-select__selector {
  775. min-width: 100px !important;
  776. max-width: 300px !important;
  777. width: max-content !important;
  778. }
  779. .uni-select__selector-item {
  780. white-space: nowrap !important;
  781. padding: 0 12px !important;
  782. }
  783. .uni-select__input-text {
  784. color: #6a6a6a;
  785. font-size: 12px;
  786. margin: 1px 0;
  787. padding: 0 !important;
  788. }
  789. .padding-top-bottom {
  790. padding: 0 !important;
  791. }
  792. }
  793. // 公共title样式
  794. .content-title {
  795. width: 100%;
  796. min-height: px2rpx(40);
  797. line-height: px2rpx(40);
  798. box-sizing: border-box;
  799. color: var(--color-navy-900);
  800. // color: var(--color-white);
  801. // background-color: var(--color-navy-900);
  802. padding: 0 px2rpx(15);
  803. font-size: px2rpx(20);
  804. font-weight: bold;
  805. }
  806. .search-bar {
  807. display: flex;
  808. align-items: center;
  809. justify-content: flex-start;
  810. flex-wrap: wrap;
  811. gap: px2rpx(16);
  812. margin: px2rpx(16) 0;
  813. .cwg-combox,
  814. .uni-easyinput,
  815. .uni-date {
  816. width: px2rpx(224) !important;
  817. flex: none !important;
  818. }
  819. .s-btn {
  820. width: px2rpx(224);
  821. background-color: var(--color-error);
  822. color: var(--color-white);
  823. padding: px2rpx(10) px2rpx(20);
  824. border: none;
  825. font-size: px2rpx(15);
  826. text-align: center;
  827. cursor: pointer;
  828. box-sizing: border-box;
  829. }
  830. }
  831. :deep(.uni-row1) {
  832. width: 100%;
  833. // margin: 0 px2rpx(-10) !important;
  834. box-sizing: border-box;
  835. .uni-col {
  836. padding: 0 px2rpx(10) !important;
  837. box-sizing: border-box;
  838. }
  839. .base-info-form>span {
  840. display: contents;
  841. }
  842. .uni-forms-item {
  843. min-height: px2rpx(79);
  844. margin-bottom: px2rpx(10);
  845. }
  846. .uni-select,
  847. .uni-combox,
  848. .uni-easyinput__content,
  849. .uni-date-editor--x {
  850. border: none !important;
  851. background-color: var(--color-zinc-100) !important;
  852. }
  853. .uni-date-x {
  854. border: none !important;
  855. background-color: rgba(195, 195, 195, 0) !important;
  856. }
  857. .uni-easyinput__content {
  858. padding: 0 !important;
  859. }
  860. .checklist-text {
  861. color: #666 !important;
  862. }
  863. .checklist-box.is--default.is-checked .checkbox__inner {
  864. border-color: var(--color-error) !important;
  865. background-color: var(--color-error) !important;
  866. }
  867. }
  868. :deep(.uni-row2) {
  869. .uni-select,
  870. .uni-combox,
  871. .uni-easyinput__content,
  872. .uni-date-editor--x {
  873. border: 1px solid var(--color-slate-300) !important;
  874. background-color: rgba(195, 195, 195, 0) !important;
  875. }
  876. .uni-date-x {
  877. background-color: rgba(195, 195, 195, 0) !important;
  878. }
  879. }
  880. .bg-secondary {
  881. background-color: var(--color-secondary) !important;
  882. border: 1px solid #333333;
  883. color: var(--color-white);
  884. }
  885. .underline {
  886. text-decoration: underline;
  887. text-decoration-color: currentColor;
  888. text-underline-offset: px2rpx(2);
  889. cursor: pointer;
  890. }
  891. .info-card {
  892. // margin-top: px2rpx(4);
  893. // border-radius: px2rpx(8);
  894. // background-color: white;
  895. // padding: px2rpx(8);
  896. // box-shadow: 0 0 px2rpx(8) rgba(0, 0, 0, 0.1);
  897. // box-shadow:
  898. // 0 0 px2rpx(4) rgba(0, 0, 0, 0.06),
  899. // 0 px2rpx(6) px2rpx(12) rgba(0, 0, 0, 0.08);
  900. box-sizing: border-box;
  901. padding: px2rpx(20);
  902. border: 1px solid rgba(108, 133, 149, 0.12);
  903. border-radius: px2rpx(8);
  904. }
  905. @media screen and (max-width: 991px) {
  906. .info-card {
  907. box-sizing: border-box;
  908. padding: px2rpx(20);
  909. border: 0 !important;
  910. border-radius: 0 !important;
  911. }
  912. }
  913. // 状态标签基础样式
  914. .status-badge {
  915. display: inline-flex;
  916. align-items: center;
  917. padding: 4rpx 12rpx;
  918. border-radius: 4rpx;
  919. font-size: var(--font-size-24);
  920. font-weight: 500;
  921. line-height: 1.5;
  922. white-space: nowrap;
  923. transition: all var(--default-transition-duration) var(--default-transition-timing-function);
  924. // 当有取消按钮时调整右边距
  925. &.has-cancel {
  926. margin-right: 8rpx;
  927. }
  928. }
  929. // 待处理
  930. .status-warning {
  931. background-color: var(--status-warning-bg);
  932. color: var(--status-warning-text);
  933. }
  934. // 已完成
  935. .status-success {
  936. background-color: var(--status-success-bg);
  937. color: var(--status-success-text);
  938. }
  939. // 进行中
  940. .status-processing {
  941. background-color: var(--status-processing-bg);
  942. color: var(--status-processing-text);
  943. }
  944. // 已拒绝
  945. .status-danger {
  946. background-color: var(--status-danger-bg);
  947. color: var(--status-danger-text);
  948. }
  949. // 已过期
  950. .status-expired {
  951. background-color: var(--status-expired-bg);
  952. color: var(--status-expired-text);
  953. }
  954. // 已取消
  955. .status-cancelled {
  956. background-color: var(--status-cancelled-bg);
  957. color: var(--status-cancelled-text);
  958. }
  959. // 取消按钮容器
  960. .cancel-btn-wrapper {
  961. display: inline-flex;
  962. align-items: center;
  963. }
  964. // 取消按钮样式
  965. .cancel-btn {
  966. display: inline-flex;
  967. align-items: center;
  968. padding: 4rpx 12rpx;
  969. border-radius: 4rpx;
  970. font-size: var(--font-size-24);
  971. font-weight: 500;
  972. line-height: 1.5;
  973. color: var(--color-rose-500);
  974. background-color: var(--color-white);
  975. border: 1px solid var(--color-rose-500);
  976. cursor: pointer;
  977. transition: all var(--default-transition-duration) var(--default-transition-timing-function);
  978. white-space: nowrap;
  979. &:hover {
  980. color: var(--color-white);
  981. background-color: var(--color-rose-500);
  982. border-color: var(--color-rose-500);
  983. }
  984. // 添加点击效果
  985. &:active {
  986. transform: scale(0.95);
  987. }
  988. }