index.scss 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642
  1. // 全局样式文件:src/styles/index.scss
  2. // 1. 全局变量(可统一管理颜色、字体、间距等)
  3. $primary-color: #409eff; // 主色调(和 Element Plus 主色一致)
  4. $secondary-color: #667eea; // 辅助色
  5. $text-color: #333333; // 主要文字色
  6. $text-light-color: #666666; // 次要文字色
  7. $border-color: #eeeeee; // 边框色
  8. $bg-color: #f9f9f9; // 背景色
  9. $danger-color: #e63946; // 危险色(价格、警告等)
  10. body{
  11. background: url('@/assets/imgs/bg.png') no-repeat center center fixed;
  12. }
  13. // 2. 全局重置样式(统一浏览器默认样式)
  14. * {
  15. box-sizing: border-box;
  16. font-family: PingFang SC, PingFang SC;
  17. }
  18. H1,
  19. H2,
  20. H3,
  21. H4,
  22. H5,
  23. H6,
  24. P {
  25. margin: 0;
  26. }
  27. body ,htm{
  28. font-family: "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  29. color: $text-color;
  30. background-color: #f5f5f5;
  31. line-height: 1.6;
  32. margin: 0;
  33. }
  34. // 3. 公共样式类(全局可复用)
  35. // 容器宽度限制(统一页面最大宽度,居中显示)
  36. .container {
  37. max-width: 1520px;
  38. width: 80%;
  39. min-width: 1200px;
  40. margin: 0 auto;
  41. padding: 20px;
  42. }
  43. .gradient{
  44. background: linear-gradient( 90deg, #0055FE 0%, #C832FA 100%);
  45. }
  46. // 清除浮动
  47. .clearfix::after {
  48. content: "";
  49. display: block;
  50. clear: both;
  51. }
  52. // 禁用选中
  53. .no-select {
  54. user-select: none;
  55. -webkit-user-select: none;
  56. }
  57. // 调整折叠面板样式
  58. .el-collapse-item__header {
  59. background-color: $bg-color;
  60. }
  61. // 5. 响应式相关样式(全局通用)
  62. // 小屏幕(手机)
  63. @media (max-width: 768px) {
  64. .container {
  65. // padding: 0 10px;
  66. }
  67. }
  68. // 中屏幕(平板)
  69. @media (min-width: 769px) and (max-width: 1024px) {
  70. .container {
  71. // padding: 0 15px;
  72. }
  73. }
  74. @charset "UTF-8";
  75. wx-image{
  76. height: auto;
  77. }
  78. .padding12 {
  79. padding: 12px
  80. }
  81. .padding20 {
  82. padding: 20px
  83. }
  84. .paddingTB20 {
  85. padding: 20px 0
  86. }
  87. .paddingTB30 {
  88. padding: 30px 0
  89. }
  90. .paddingTB10 {
  91. padding: 10px 0
  92. }
  93. .pad20 {
  94. padding: 0 20px
  95. }
  96. .padding15 {
  97. padding: 15px
  98. }
  99. .padding30 {
  100. padding: 30px
  101. }
  102. .pad30 {
  103. padding: 0 30px
  104. }
  105. .pt20 {
  106. padding-top: 20px
  107. }
  108. .pb15 {
  109. padding-bottom: 15px
  110. }
  111. .pb20 {
  112. padding-bottom: 20px
  113. }
  114. .pb30 {
  115. padding-bottom: 30px
  116. }
  117. .mb30 {
  118. margin-bottom: 30px;
  119. }
  120. .mr10 {
  121. margin-right: 10px;
  122. }
  123. .mr20 {
  124. margin-right: 20px;
  125. }
  126. .mr30 {
  127. margin-right: 30px;
  128. }
  129. .mr10 {
  130. margin-right: 10px;
  131. }
  132. .ml10 {
  133. margin-left: 10px;
  134. }
  135. .ml20 {
  136. margin-left: 20px;
  137. }
  138. .mt16 {
  139. margin-top: 16px;
  140. }
  141. .mt20 {
  142. margin-top: 20px;
  143. }
  144. .mt30 {
  145. margin-top: 30px;
  146. }
  147. .mt16 {
  148. margin-top: 16px;
  149. }
  150. .mt10 {
  151. margin-top: 10px;
  152. }
  153. .mt5 {
  154. margin-top: 5px;
  155. }
  156. .mb20 {
  157. margin-bottom: 20px;
  158. }
  159. .ellipsis {
  160. overflow: hidden;
  161. text-overflow: ellipsis;
  162. white-space: nowrap
  163. }
  164. .line1 {
  165. word-break: break-all;
  166. display: -webkit-box;
  167. -webkit-line-clamp: 1;
  168. -webkit-box-orient: vertical;
  169. overflow: hidden;
  170. /* height: 84px; */
  171. }
  172. .line2 {
  173. word-break: break-all;
  174. display: -webkit-box;
  175. -webkit-line-clamp: 2;
  176. -webkit-box-orient: vertical;
  177. overflow: hidden;
  178. /* height: 84px; */
  179. }
  180. .line3 {
  181. word-break: break-all;
  182. display: -webkit-box;
  183. -webkit-line-clamp: 3;
  184. -webkit-box-orient: vertical;
  185. overflow: hidden;
  186. /* height: 84px; */
  187. }
  188. .mask {
  189. position: fixed;
  190. top: 0;
  191. left: 0;
  192. right: 0;
  193. bottom: 0;
  194. background-color: #000;
  195. opacity: .5;
  196. z-index: 5
  197. }
  198. @keyframes load {
  199. from {
  200. transform: rotate(0)
  201. }
  202. to {
  203. transform: rotate(360deg)
  204. }
  205. }
  206. @-webkit-keyframes load {
  207. from {
  208. transform: rotate(0)
  209. }
  210. to {
  211. transform: rotate(360deg)
  212. }
  213. }
  214. .loadingpic {
  215. animation: load 3s linear 1s infinite;
  216. --webkit-animation: load 3s linear 1s infinite
  217. }
  218. .loading-list {
  219. animation: load linear 1s infinite;
  220. -webkit-animation: load linear 1s infinite;
  221. font-size: 40px;
  222. margin-right: 22px
  223. }
  224. .loading {
  225. width: 100%;
  226. height: 100px;
  227. line-height: 100px;
  228. align-items: center;
  229. justify-content: center;
  230. position: relative;
  231. text-align: center
  232. }
  233. .loading .line {
  234. position: absolute;
  235. width: 450px;
  236. left: 150px;
  237. top: 50px;
  238. height: 1px;
  239. border-top: 1px solid #eee
  240. }
  241. .loading .text {
  242. position: relative;
  243. display: inline-block;
  244. padding: 0 20px;
  245. background: #fff;
  246. z-index: 2;
  247. color: #777
  248. }
  249. .loadingicon .loading {
  250. animation: load linear 1s infinite;
  251. font-size: 45px;
  252. color: #000
  253. }
  254. .loadingicon {
  255. width: 100%;
  256. height: 80px;
  257. overflow: hidden
  258. }
  259. .bg-color-huic{
  260. background: #F1F1F1!important;
  261. border: 1px solid #ccc!important;
  262. color: #ccc!important;
  263. }
  264. .nowrap{
  265. white-space: nowrap;
  266. }
  267. .gap10{
  268. gap: 10px;
  269. }
  270. /*flex样式*/
  271. .flex_1{
  272. flex:1;
  273. }
  274. .flex{
  275. display: flex;
  276. }
  277. .flex_2{
  278. flex: 2;
  279. }
  280. .flex-between{/*两边对齐*/
  281. display: flex;
  282. justify-content: space-between;
  283. }
  284. .flex-align-center{/*垂直居中*/
  285. display: flex !important;
  286. align-items: center;
  287. }
  288. .flex-center{/*水平垂直居中*/
  289. display: flex;
  290. justify-content: center;
  291. align-items: center;
  292. }
  293. .flex-center-flex-end{/*水平垂直居中-尾部对齐*/
  294. display: flex;
  295. justify-content: flex-end;
  296. align-items: center;
  297. }
  298. .flex-center-box-end{/*水平垂直居中-铺满盒内*/
  299. display: -webkit-inline-box;
  300. justify-content: flex-end;
  301. align-items: center;
  302. }
  303. .flex-center-flex-start{/*水平垂直居中-首部对齐*/
  304. display: flex;
  305. justify-content: flex-start;
  306. align-items: center;
  307. }
  308. .flex-center-around{/*水平垂直居中-平均对齐*/
  309. display: flex;
  310. justify-content: space-around;
  311. align-items: center;
  312. }
  313. .flex-center-between{/*水平垂直居中-两边对齐*/
  314. display: flex;
  315. justify-content: space-between;
  316. align-items: center;
  317. }
  318. .flex-column{/*竖直方向*/
  319. display: flex;
  320. flex-direction: column;
  321. }
  322. .flex-column-center{/*竖直方向水平居中 两端对齐*/
  323. display: flex;
  324. flex-direction: column;
  325. justify-content: space-between;
  326. align-items: center;
  327. }
  328. .flex-column-start{/*竖直方向水平居中 首部对齐*/
  329. display: flex;
  330. flex-direction: column;
  331. justify-content: space-around;
  332. align-items: self-start;
  333. }
  334. .flex-column-start-between{/*竖直方向-首部对齐-两端对齐*/
  335. display: flex;
  336. flex-direction: column;
  337. justify-content: space-between;
  338. align-items: self-start;
  339. }
  340. .flex-column-align{/*竖直方向水平居中*/
  341. display: flex;
  342. flex-direction: column;
  343. align-items: center;
  344. }
  345. .flex-center-flex-start-warp{/*水平垂直居中-首部对齐*/
  346. display: flex;
  347. justify-content: flex-start;
  348. align-items: center;
  349. flex-wrap:wrap ;
  350. }
  351. .gap10{
  352. //水平垂直居中-首部对齐 间隙10px
  353. display: flex;
  354. justify-content: flex-start;
  355. align-items: center;
  356. gap: 10px;
  357. }
  358. .order_btn{
  359. font-size: 25px;
  360. color: #ffffff;
  361. border-radius:10px;
  362. background-color: primary-color;
  363. &.error{
  364. background-color: #E93323;
  365. }
  366. &.plain{
  367. border:1px solid #cccccc;
  368. color: #000000;
  369. background-color: #ffffff;
  370. }
  371. }
  372. .border{
  373. border: 1px solid #eeeeee;
  374. }
  375. .border-bottom{
  376. border-bottom: 1px solid #eeeeee;
  377. }
  378. .gray{
  379. color: #666666;
  380. }
  381. .link{
  382. color: #007aff;
  383. }
  384. .bg_color_f5{
  385. background-color: #f5f5f5;
  386. }
  387. .edit_gary {
  388. background: #EBEBEB;
  389. }
  390. .bg_color_fff{
  391. background-color: #ffffff;
  392. }
  393. .bg_color_primary{
  394. background-color: primary-color;
  395. }
  396. .bg_gradient_primary{
  397. background: linear-gradient(180deg, #0089FF 0%, #F5F7FA 50%);
  398. background-size: 200% 100vh;
  399. background-repeat: no-repeat;
  400. }
  401. .bg_gradient_primary_toright{
  402. //从左到右渐变色
  403. background: linear-gradient(to right, rgba(73, 171, 255, 1), rgba(0, 137, 255, 1));
  404. }
  405. .border_radius_10{
  406. border-radius: 10px;
  407. }
  408. .border_radius_20{
  409. border-radius: 20px;
  410. }
  411. .border_radius_30{
  412. border-radius: 30px;
  413. }
  414. .bold{
  415. font-weight: bold;
  416. }
  417. .font_weight400{
  418. font-weight: 400;
  419. }
  420. .font_size40{
  421. font-size: 40px;
  422. }
  423. .font_size36{
  424. font-size: 36px;
  425. }
  426. .font_size35{
  427. font-size: 35px;
  428. }
  429. .font_size32{
  430. font-size: 32px;
  431. }
  432. .font_size30{
  433. font-size: 30px;
  434. }
  435. .font_size28{
  436. font-size: 28px;
  437. }
  438. .font_size20{
  439. font-size: 20px;
  440. }
  441. .font_size25{
  442. font-size: 25px;
  443. }
  444. .font_size24{
  445. font-size: 24px;
  446. }
  447. .font_size14{
  448. font-size: 14px;
  449. }
  450. .font_size13{
  451. font-size: 13px;
  452. }
  453. .line_height22{
  454. line-height: 22px;
  455. }
  456. .line_vertical{
  457. width: 8px;
  458. height: 30px;
  459. background-color: primary-color;
  460. border-radius: 4px;
  461. }
  462. .color_price{
  463. color: #fc4f1d;
  464. }
  465. .color_vip{
  466. color: #fee189;
  467. }
  468. .color_fff{
  469. color: #ffffff;
  470. }
  471. .color_000{
  472. color: #000000;
  473. }
  474. .color_theme{
  475. color: primary-color;
  476. }
  477. .text_align_center{
  478. text-align: center;
  479. }
  480. .text_align_right{
  481. text-align: right;
  482. }
  483. .foot{
  484. padding: 20px 30px;
  485. width: 100%;
  486. position: fixed;
  487. bottom: 0;
  488. left: 0;
  489. box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
  490. z-index: 10;
  491. }
  492. .box_shadow{
  493. box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
  494. }
  495. .ellipsis{
  496. overflow: hidden;
  497. white-space: nowrap;
  498. text-overflow: ellipsis;
  499. }
  500. .bg_img{
  501. width: 100%;
  502. position: absolute;
  503. top: 0;
  504. left: 0;;
  505. z-index: -1;
  506. }
  507. .line_through{
  508. text-decoration: line-through;
  509. }
  510. .required{
  511. color: #E93323;
  512. }
  513. .u_popup_bottom{
  514. border-radius: 30px 30px 0 0;
  515. }
  516. .overflow_hidden{
  517. overflow: hidden;
  518. }
  519. .payment-radio {
  520. width: 40px;
  521. height: 40px;
  522. .radio-circle {
  523. width: 100%;
  524. height: 100%;
  525. border: 3px solid #ddd;
  526. border-radius: 50%;
  527. position: relative;
  528. transition: all 0.3s;
  529. &.checked {
  530. border-color: primary-color;
  531. &::after {
  532. content: "";
  533. position: absolute;
  534. top: 50%;
  535. left: 50%;
  536. transform: translate(-50%, -50%);
  537. width: 20px;
  538. height: 20px;
  539. background: primary-color;
  540. border-radius: 50%;
  541. }
  542. }
  543. }
  544. }
  545. .noData{
  546. text-align: center;
  547. padding: 30px 0;
  548. color: #c8c7cc;
  549. }
  550. .serviceLabel{
  551. background-color: #ffe8e6;
  552. font-size: 25px;
  553. color: #E93323;
  554. border-radius: 10px;
  555. padding: 5px 10px;
  556. display: inline-block;
  557. // margin-top: 20px;
  558. &:not(:last-child){
  559. margin-right: 10px;
  560. }
  561. }
  562. .status_bar {
  563. height: var(--height);
  564. width: 100%;
  565. }
  566. .hover-view {
  567. opacity: 0.7;
  568. }
  569. .p_certification {
  570. width: 124px;
  571. height: 40px;
  572. display: flex;
  573. align-items: center;
  574. justify-content: center;
  575. background: #E9EFFF;
  576. border-radius: 20px;
  577. image {
  578. width: 32px;
  579. height: 32px;
  580. }
  581. view {
  582. color: #0089FF;
  583. font-size: 24px;
  584. margin-left: 4px;
  585. }
  586. }
  587. .truncate {
  588. white-space: nowrap;
  589. /* 禁止换行 */
  590. overflow: hidden;
  591. /* 隐藏溢出内容 */
  592. text-overflow: ellipsis;
  593. /* 显示省略号 */
  594. }
  595. .tabbar_height{
  596. height: calc(120px + constant(safe-area-inset-bottom));
  597. height: calc(120px + env(safe-area-inset-bottom));
  598. }
  599. .zp-empty-view,.zp-l-container{
  600. background-color: #F5F7FA;
  601. }
  602. .close_img{
  603. width: 32px;
  604. height: 32px;
  605. }