common.scss 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688
  1. page,
  2. .uni-app,
  3. uni-page,
  4. uni-page-wrapper,
  5. uni-page-body {
  6. font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif !important;
  7. text-size-adjust: 100% !important;
  8. -webkit-text-size-adjust: 100% !important;
  9. overflow: hidden;
  10. /* #ifdef MP-WEIXIN */
  11. overflow: auto;
  12. /* #endif */
  13. /* #ifdef APP */
  14. overflow: auto;
  15. /* #endif */
  16. // overflow-y: auto;
  17. }
  18. uni-page-body {
  19. height: 100%;
  20. overflow-x: hidden;
  21. overflow-y: auto;
  22. }
  23. .page_login {
  24. width: 100%;
  25. height: 100%;
  26. background-image: url('@/static/image/bg/login_bg.jpg');
  27. background-size: 100% 320px;
  28. background-repeat: no-repeat;
  29. background-position: 0 0;
  30. .login_weclome {
  31. width: calc(100% - 48px);
  32. margin: auto;
  33. height: auto;
  34. font-size: 18px;
  35. font-weight: 400;
  36. color: #ffffff;
  37. padding-top: 68px;
  38. }
  39. .login_title {
  40. width: calc(100% - 48px);
  41. margin: auto;
  42. font-size: 28px;
  43. font-weight: 500;
  44. color: #ffffff;
  45. line-height: 40px;
  46. height: 180px;
  47. margin-top: 8px;
  48. }
  49. .login_content {
  50. width: 100%;
  51. height: calc(100vh - 300px);
  52. background: #fff;
  53. box-shadow: 0px -20px 40px 0px rgba(4, 112, 255, 0.2);
  54. border-radius: 20px 20px 0px 0px;
  55. padding-top: 32px;
  56. box-sizing: border-box;
  57. .user_name {
  58. width: calc(100% - 48px);
  59. margin: auto;
  60. height: 48px;
  61. line-height: 48px;
  62. position: relative;
  63. background-color: #ffffff;
  64. .input_name {
  65. width: 100%;
  66. height: 100%;
  67. // box-shadow: 0px -10px 20px 0px rgba(4,112,255,0.2);
  68. border-radius: 10px 10px 10px 10px;
  69. border: 1px solid #ebeef5;
  70. text-indent: 40px;
  71. background-image: url('@/static/image/icon/login_acount.png');
  72. background-size: 16px 16px;
  73. background-repeat: no-repeat;
  74. background-position: 16px 50%;
  75. }
  76. .clear_icon {
  77. position: absolute;
  78. top: 0;
  79. right: 0;
  80. width: 48px;
  81. height: 48px;
  82. background-image: url('@/static/image/icon/clear_icon.png');
  83. background-size: 16px 16px;
  84. background-repeat: no-repeat;
  85. background-position: 16px 50%;
  86. }
  87. }
  88. .user_pass {
  89. width: calc(100% - 48px);
  90. margin: auto;
  91. height: 48px;
  92. line-height: 48px;
  93. margin-top: 24px;
  94. position: relative;
  95. .input_name {
  96. width: 100%;
  97. height: 100%;
  98. // box-shadow: 0px -10px 20px 0px rgba(4,112,255,0.2);
  99. border-radius: 10px 10px 10px 10px;
  100. border: 1px solid #ebeef5;
  101. text-indent: 40px;
  102. background-image: url('@/static/image/icon/login_pass.png');
  103. background-size: 16px 16px;
  104. background-repeat: no-repeat;
  105. background-position: 16px 50%;
  106. }
  107. .eye_icon {
  108. position: absolute;
  109. top: 0;
  110. right: 0;
  111. width: 48px;
  112. height: 48px;
  113. background-image: url('@/static/image/icon/login_eye.png');
  114. background-size: 16px 16px;
  115. background-repeat: no-repeat;
  116. background-position: 16px 50%;
  117. }
  118. .eyes_icon {
  119. position: absolute;
  120. top: 0;
  121. right: 0;
  122. width: 48px;
  123. height: 48px;
  124. background-image: url('@/static/image/icon/login_eyes.png');
  125. background-size: 16px 16px;
  126. background-repeat: no-repeat;
  127. background-position: 16px 50%;
  128. }
  129. }
  130. .login_button {
  131. width: calc(100% - 48px);
  132. margin: auto;
  133. margin-top: 24px;
  134. height: 48px;
  135. background: #2e64fa;
  136. border-radius: 8px 8px 8px 8px;
  137. font-weight: 500;
  138. font-size: 16px;
  139. color: #ffffff;
  140. text-align: center;
  141. line-height: 48px;
  142. }
  143. .agreement {
  144. width: 100%;
  145. display: flex;
  146. justify-content: center;
  147. align-items: center;
  148. padding: 20px 24px;
  149. box-sizing: border-box;
  150. font-size: 24rpx;
  151. .uni-radio-input {
  152. width: 24rpx;
  153. height: 24rpx;
  154. margin-right: 4rpx;
  155. svg {
  156. font-size: 18rpx;
  157. transform: translate(-50%, -48%) scale(0.5);
  158. }
  159. }
  160. .text {
  161. display: inline-flex;
  162. align-items: center;
  163. .color_999 {
  164. color: #999999;
  165. margin: 0 4rpx;
  166. }
  167. .color_blue {
  168. color: #2e64fa;
  169. }
  170. }
  171. }
  172. }
  173. }
  174. //我的页面
  175. .page_my {
  176. width: 100%;
  177. height: 100%;
  178. position: relative;
  179. background: linear-gradient(180deg, #c7e0ff 0%, #f8f9fd 88.1%);
  180. .my_bg {
  181. width: 100%;
  182. height: 360rpx;
  183. position: absolute;
  184. left: 0rpx;
  185. top: 0rpx;
  186. z-index: 1;
  187. }
  188. .page_my_content {
  189. position: relative;
  190. z-index: 2;
  191. display: flex;
  192. flex-direction: column;
  193. width: 100%;
  194. padding: 0 48rpx;
  195. box-sizing: border-box;
  196. }
  197. .user_info {
  198. width: 100%;
  199. height: 250rpx;
  200. margin-top: 60rpx;
  201. display: flex;
  202. align-items: center;
  203. .user_image {
  204. width: 160rpx;
  205. height: 160rpx;
  206. margin-right: 40rpx;
  207. background-size: 50%;
  208. background-repeat: no-repeat;
  209. background-position: 0 50%;
  210. flex-shrink: 0;
  211. }
  212. .default_user {
  213. width: 160rpx;
  214. height: 160rpx;
  215. }
  216. .user_info_content {
  217. flex: 1;
  218. .user_name {
  219. width: 100%;
  220. font-weight: 500;
  221. font-size: 56rpx;
  222. color: #000000;
  223. display: -webkit-box;
  224. -webkit-box-orient: vertical;
  225. -webkit-line-clamp: 1; /* 设置最多显示的行数 */
  226. overflow: hidden;
  227. text-overflow: ellipsis;
  228. word-break: break-all; /* 确保单词可以在任何字符断开 */
  229. // height: auto; /* 根据字体大小调整高度 */
  230. // line-height: 1.5em; /* 每行的高度 */
  231. }
  232. // .user_school
  233. // {
  234. // width: 100%;
  235. // font-weight: 400;
  236. // font-size: 32rpx;
  237. // color: #666666;
  238. // }
  239. .user_account {
  240. margin-top: 20rpx;
  241. width: 100%;
  242. font-weight: 400;
  243. font-size: 32rpx;
  244. color: #666666;
  245. }
  246. }
  247. }
  248. .user_menu {
  249. width: 100%;
  250. height: 140rpx;
  251. margin-top: 40rpx;
  252. padding: 0 48rpx;
  253. box-sizing: border-box;
  254. background: #f9fbff;
  255. border-radius: 20rpx;
  256. display: flex;
  257. justify-content: space-between;
  258. align-items: center;
  259. &.top {
  260. margin-top: 0;
  261. }
  262. .menu_left {
  263. flex: 1;
  264. display: flex;
  265. align-items: center;
  266. }
  267. .iconfont {
  268. font-size: 36rpx;
  269. }
  270. .menu_icon {
  271. width: 40rpx;
  272. height: 40rpx;
  273. }
  274. .menu_text {
  275. font-weight: 400;
  276. font-size: 32rpx;
  277. margin-left: 16rpx;
  278. color: #333333;
  279. }
  280. .menu_right {
  281. font-size: 40rpx !important;
  282. color: #999999 !important;
  283. }
  284. }
  285. }
  286. //公共样式
  287. .page_body {
  288. width: 100%;
  289. min-height: 100%;
  290. background-color: #FFFFFF;
  291. .page_module {
  292. padding-top: 20rpx;
  293. padding-bottom: 10rpx;
  294. box-sizing: border-box;
  295. uni-button[type='primary'] {
  296. background-color: #2e64fa;
  297. font-weight: 400;
  298. }
  299. }
  300. //底部tabbar样式
  301. .uv-tabbar{
  302. .uv-border-top{
  303. border-top-width:0 !important;
  304. box-shadow: inset 0px 2rpx 0px 0px #F3F3F3;
  305. }
  306. }
  307. }
  308. //定义表头样式
  309. .custom_uni_nav_bar{
  310. .uni-navbar__header-btns-left{
  311. position: absolute;
  312. top: 0;
  313. left: 0;
  314. z-index:10;
  315. height: 120rpx;
  316. .uni-icons{
  317. font-size: 48rpx !important;
  318. }
  319. }
  320. .uni-navbar__header-container{
  321. flex-direction: column;
  322. }
  323. .nav_head{
  324. width: 100%;
  325. display: flex;
  326. justify-content: space-between;
  327. align-items: center;
  328. height: 120rpx;
  329. padding: 0 24px 0 96rpx;
  330. box-sizing: border-box;
  331. box-shadow: 0px 4rpx 16rpx 0px rgba(0,0,0,0.02), inset 0px -2rpx 0px 0px #F3F3F3;
  332. // 标题
  333. .nav_title{
  334. font-weight: 600;
  335. font-size: 44rpx;
  336. color: #333333;
  337. flex: 1;
  338. overflow: hidden;
  339. white-space: nowrap;
  340. text-overflow: ellipsis;
  341. }
  342. // 搜索
  343. .search_box {
  344. display: flex;
  345. align-items: center;
  346. background-color: #fff;
  347. border-radius: 8rpx;
  348. padding: 14rpx 24rpx;
  349. box-sizing: border-box;
  350. width: 320rpx;
  351. height: 72rpx;
  352. border: 2rpx solid #DCDFE6;
  353. .search_icon {
  354. width: 32rpx;
  355. height: 32rpx;
  356. margin-right: 8rpx;
  357. }
  358. .search_input {
  359. flex: 1;
  360. font-size: 28rpx;
  361. color: #333333;
  362. margin-left: 8rpx;
  363. }
  364. .search_placeholder {
  365. color: #C0C4CC;
  366. }
  367. }
  368. }
  369. //条件选择器
  370. .filter_picker {
  371. display: flex;
  372. width: 100%;
  373. gap: 32rpx;
  374. padding:24rpx;
  375. box-sizing: border-box;
  376. background-color: #FFFFFF;
  377. .filter_item {
  378. display: flex;
  379. align-items: center;
  380. justify-content: space-between;
  381. padding:16rpx;
  382. background-color: #FFFFFF;
  383. border-radius: 8rpx;
  384. height: 72rpx;
  385. box-sizing: border-box;
  386. border: 2rpx solid #DCDFE6;
  387. .filter_text {
  388. font-size: 28rpx;
  389. color: #333333;
  390. font-weight: 400;
  391. margin-right: 8rpx;
  392. }
  393. }
  394. }
  395. // tabs
  396. .scroll_tabs {
  397. display: flex;
  398. height: 56rpx;
  399. padding: 0 24rpx;
  400. .tab_item {
  401. display: inline-flex;
  402. font-weight: 400;
  403. font-size: 28rpx;
  404. color: #999999;
  405. position: relative;
  406. margin-right: 48rpx;
  407. height: 100%;
  408. &.selected {
  409. font-weight: 500;
  410. font-size: 32rpx;
  411. color: #2E64FA;
  412. &::after {
  413. content: '';
  414. position: absolute;
  415. bottom: 0rpx;
  416. left: 0;
  417. width: 100%;
  418. height: 4rpx;
  419. background-color: #2E64FA;
  420. }
  421. }
  422. }
  423. }
  424. }
  425. .custom_navbar_only_title{
  426. .uni-navbar--border{
  427. border-bottom-width: 2rpx !important;
  428. border-bottom-color:#F3F3F3;
  429. }
  430. .uni-navbar__header-btns-left {
  431. .uni-icons{
  432. font-size: 40rpx !important;
  433. }
  434. }
  435. }
  436. //表单样式
  437. .forms_style {
  438. .uni-forms-item {
  439. margin-bottom: 30rpx !important;
  440. &:last-child {
  441. margin-bottom: 0 !important;
  442. }
  443. .uni-forms-item__label {
  444. color: #333333;
  445. font-size: 28rpx;
  446. height: 72rpx;
  447. padding: 0 8rpx 0 0;
  448. }
  449. .uni-forms-item__content {
  450. font-size: 28rpx;
  451. color: #333333;
  452. //输入框
  453. .uni-easyinput {
  454. .is-input-border {
  455. border: 1px solid #ebeef5;
  456. border-radius: 8rpx;
  457. }
  458. .is-disabled {
  459. background-color: #f5f7fa !important;
  460. color: #333333;
  461. }
  462. .uni-easyinput__content-input {
  463. height: 72rpx;
  464. font-size: 28rpx;
  465. .uni-easyinput__placeholder-class {
  466. font-size: 28rpx;
  467. }
  468. }
  469. .content-clear-icon {
  470. font-size: 40rpx !important;
  471. padding: 0 10rpx;
  472. }
  473. }
  474. //单选框
  475. .uni-stat__select {
  476. .uni-select {
  477. font-size: 28rpx;
  478. border: 1px solid #ebeef5;
  479. border-radius: 8rpx;
  480. height: 72rpx;
  481. min-height: 72rpx;
  482. box-sizing: border-box;
  483. padding: 0 10rpx;
  484. .uni-select__input-box {
  485. height: 72rpx;
  486. .uni-select__input-text {
  487. font-size: 28rpx !important;
  488. color: #333333;
  489. &.uni-select__input-placeholder {
  490. font-size: 28rpx;
  491. color: #999999;
  492. }
  493. }
  494. .tag-calss {
  495. font-size: 24rpx;
  496. border-radius: 8rpx;
  497. height: 48rpx;
  498. line-height: 44rpx;
  499. padding: 0 4rpx 0 8rpx;
  500. margin: 4rpx 12rpx 4rpx 0;
  501. .text {
  502. font-size: 24rpx;
  503. line-height: 44rpx;
  504. }
  505. }
  506. .uniui-clear {
  507. font-size: 40rpx !important;
  508. }
  509. }
  510. .uniui-top,
  511. .uniui-bottom {
  512. color: #c0c4cc !important;
  513. font-size: 32rpx !important;
  514. }
  515. //下拉框样式
  516. .uni-select__selector {
  517. .uni-select__selector-item {
  518. font-size: 24rpx;
  519. color: #666666;
  520. line-height: 60rpx;
  521. padding: 0 20rpx;
  522. }
  523. .uni-select_selector-item_active {
  524. background-color: #fff;
  525. color: #2e64fa;
  526. font-weight: 400;
  527. }
  528. }
  529. }
  530. }
  531. //日期选择框
  532. .uni-date {
  533. .uni-date-x--border {
  534. border: 1px solid #ebeef5;
  535. border-radius: 8rpx;
  536. .uni-date-x {
  537. font-size: 28rpx;
  538. color: #333333;
  539. border-radius: 8rpx;
  540. .uniui-calendar {
  541. font-size: 32rpx !important;
  542. }
  543. .uni-date__x-input {
  544. height: 72rpx;
  545. line-height: 72rpx;
  546. font-size: 28rpx;
  547. }
  548. }
  549. .uni-date__icon-clear {
  550. padding-right: 10rpx;
  551. }
  552. .uniui-clear {
  553. font-size: 40rpx !important;
  554. }
  555. }
  556. }
  557. }
  558. }
  559. }
  560. // 提示框样式
  561. .uni-popup-dialog {
  562. width: 310px !important;
  563. border-radius: 20rpx;
  564. background: linear-gradient(180deg, #dae4ff 0%, #ffffff 35.1%);
  565. &.white {
  566. background: #ffffff;
  567. }
  568. .uni-dialog-title {
  569. display: none !important;
  570. }
  571. .uni-dialog-content {
  572. flex-direction: column !important;
  573. padding: 0 !important;
  574. }
  575. //自定义标题样式
  576. .dialog_title {
  577. height: 96rpx;
  578. padding: 0 40rpx;
  579. width: 100%;
  580. box-sizing: border-box;
  581. display: flex;
  582. justify-content: space-between;
  583. align-items: center;
  584. .dialog_title_lt {
  585. display: inline-flex;
  586. align-items: center;
  587. .title {
  588. margin-left: 16rpx;
  589. flex: 1;
  590. white-space: nowrap;
  591. overflow: hidden;
  592. text-overflow: ellipsis;
  593. color: #303133;
  594. font-weight: bold;
  595. font-size: 32rpx;
  596. }
  597. }
  598. }
  599. //自定义弹框内容
  600. .dialog_content {
  601. min-height: 160rpx;
  602. height: auto;
  603. display: flex;
  604. // overflow: auto;
  605. justify-content: center;
  606. align-items: center;
  607. color: #666666;
  608. font-size: 28rpx;
  609. width: 100%;
  610. box-sizing: border-box;
  611. padding: 0 10rpx;
  612. flex-wrap: wrap;
  613. line-height: 40rpx;
  614. text-align: center;
  615. }
  616. .uni-dialog-button-group {
  617. border-top-width: 0 !important;
  618. padding: 40rpx 44rpx 28rpx;
  619. box-sizing: border-box;
  620. .uni-dialog-button {
  621. height: 72rpx;
  622. background-color: #f0f2f9;
  623. border-radius: 12rpx;
  624. font-size: 28rpx;
  625. &:first-child {
  626. margin-right: 20rpx;
  627. .uni-dialog-button-text {
  628. color: #606266 !important;
  629. }
  630. }
  631. &:last-child {
  632. margin-left: 20rpx;
  633. .uni-dialog-button-text {
  634. color: #ffffff !important;
  635. }
  636. background-color: #2e64fa;
  637. }
  638. &.uni-border-left {
  639. border-left-width: 0;
  640. }
  641. }
  642. }
  643. }
  644. // 提示框样式
  645. .uni-tooltip-popup {
  646. padding: 8rpx 12rpx !important;
  647. max-width: 300rpx;
  648. // width: 120rpx;
  649. min-width: 100rpx;
  650. box-sizing: border-box;
  651. border-radius: 16rpx !important;
  652. line-height: 28rpx !important;
  653. font-size: 24rpx !important;
  654. text-align: center !important;
  655. white-space: nowrap;
  656. }
  657. .dialog_content {
  658. width: 100%;
  659. height: auto;
  660. background-color: #fff;
  661. z-index: 1009;
  662. border-radius: 20px 20px 0 0;
  663. padding: 15px 11px;
  664. box-sizing: border-box;
  665. }