home.scss 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635
  1. @import "../../themes/page.scss";
  2. @import "../../themes/draggable-sheet.scss";
  3. @import "../../themes/t.cell.scss";
  4. @import "../../themes/card.scss";
  5. .body-img {
  6. position: relative;
  7. .body-bg-image {
  8. position: absolute;
  9. top: 0;
  10. right: -140rpx;
  11. height: 100%;
  12. width: fit-content;
  13. z-index: 0;
  14. image-rendering: -webkit-optimize-contrast;
  15. image-rendering: crisp-edges;
  16. -webkit-image-rendering: crisp-edges;
  17. -moz-image-rendering: crisp-edges;
  18. -ms-image-rendering: crisp-edges;
  19. }
  20. > view,
  21. > text,
  22. > image {
  23. position: relative;
  24. z-index: 1;
  25. }
  26. }
  27. .fullscreen-bg {
  28. background-image: url("/assets/bg/bg_home.png");
  29. background-repeat: no-repeat;
  30. width: 100%;
  31. // height: 90vh;
  32. height: calc(100vh - 180rpx) !important;
  33. background-size: cover;
  34. background-position: center;
  35. position: relative;
  36. padding-bottom: calc(100rpx + env(safe-area-inset-bottom));
  37. }
  38. .steps-container {
  39. display: flex;
  40. align-items: baseline;
  41. justify-content: space-between;
  42. padding: 0px 15px 0 25px;
  43. .warn-box {
  44. display: flex;
  45. align-items: flex-start;
  46. background-image: url("/assets/bg/bg_wave@3x.png");
  47. background-size: contain;
  48. background-repeat: no-repeat;
  49. background-position: center;
  50. color: #ff5a1e;
  51. font-size: 13px;
  52. background-color: #ffefef;
  53. border-radius: 6px;
  54. padding: 10rpx 30rpx 10rpx 10rpx;
  55. // height: 60px;
  56. font-weight: bold;
  57. border: 2px solid white;
  58. box-shadow: inset 0 0 3px rgb(255, 90, 30, 0.2);
  59. .right-box {
  60. height: 100%;
  61. display: flex;
  62. flex-direction: column;
  63. align-items: center;
  64. justify-content: center;
  65. }
  66. .warn-img {
  67. width: 20rpx;
  68. height: 20rpx;
  69. margin: 10rpx 15rpx 0 10rpx;
  70. }
  71. }
  72. }
  73. .follow-container {
  74. display: flex;
  75. justify-content: space-between;
  76. align-items: center;
  77. padding: 10rpx 20rpx;
  78. background: #d6e6ef;
  79. margin-top: 15rpx;
  80. }
  81. .pieces {
  82. color: #2ba471;
  83. font-size: 30rpx;
  84. margin: 0px 20rpx 0px 20rpx;
  85. }
  86. .follow-text {
  87. color: #191919;
  88. font-size: 28rpx;
  89. }
  90. .notice-icon {
  91. width: 30rpx;
  92. height: 30rpx;
  93. }
  94. .follow-box {
  95. display: flex;
  96. align-items: center;
  97. }
  98. .scroll_live {
  99. width: 100%;
  100. height: 45vh;
  101. overflow-y: scroll;
  102. }
  103. .container-bg-image {
  104. position: absolute;
  105. top: 0;
  106. left: 0;
  107. width: 100%;
  108. height: 100%;
  109. }
  110. .block {
  111. padding: 50px;
  112. background: white;
  113. }
  114. .block-box {
  115. display: flex;
  116. }
  117. .user-box {
  118. display: flex;
  119. align-items: center;
  120. margin-bottom: 15rpx;
  121. }
  122. .report-container {
  123. width: 100%;
  124. display: flex;
  125. align-items: center;
  126. justify-content: center;
  127. .report-box {
  128. display: flex;
  129. align-items: center;
  130. height: 45px;
  131. line-height: 45px;
  132. justify-content: center;
  133. border: 2px solid white;
  134. background: linear-gradient(to bottom, #d9e7fb, #c1d5f5);
  135. // 渐变蓝色
  136. width: 95%;
  137. border-radius: 6px;
  138. margin: auto;
  139. .report-img {
  140. width: 35rpx;
  141. height: 38rpx;
  142. }
  143. .text-box {
  144. display: flex;
  145. .text-one {
  146. font-size: 28rpx;
  147. color: #1f457f;
  148. font-weight: bold;
  149. margin: 0 15rpx 0 15rpx;
  150. }
  151. .text-two {
  152. font-size: 24rpx;
  153. color: #35578c;
  154. }
  155. }
  156. }
  157. }
  158. $scale: 0.5;
  159. .header-container {
  160. padding: 12px;
  161. display: flex;
  162. flex-direction: row;
  163. justify-content: space-between;
  164. align-items: center;
  165. box-sizing: border-box;
  166. }
  167. .user-info-wrapper {
  168. position: relative;
  169. align-items: center;
  170. padding: 0 8px;
  171. width: 254px * $scale;
  172. height: 66px * $scale;
  173. box-sizing: border-box;
  174. .user {
  175. &-icon {
  176. flex: none;
  177. margin-left: 4px;
  178. width: 12px * $scale;
  179. height: 16px * $scale;
  180. }
  181. &-select-icon {
  182. flex: none;
  183. margin-left: 4px;
  184. width: 8px;
  185. height: 4px;
  186. }
  187. &-name {
  188. flex: none;
  189. margin-left: 4px;
  190. font-size: 36rpx;
  191. color: #191919;
  192. margin-right: 10rpx;
  193. font-weight: 500;
  194. }
  195. &-age {
  196. flex: none;
  197. margin-left: 4px;
  198. font-size: 24rpx;
  199. }
  200. &-description {
  201. flex: auto;
  202. margin-left: 4px;
  203. font-size: 24rpx;
  204. }
  205. }
  206. }
  207. .tool-bar-wrapper {
  208. display: flex;
  209. flex-direction: row;
  210. font-size: 12px;
  211. .tool {
  212. display: flex;
  213. flex-direction: row;
  214. align-items: center;
  215. color: #666666;
  216. image {
  217. width: 15px;
  218. height: 14px;
  219. margin-right: 4px;
  220. }
  221. }
  222. .tool + .tool {
  223. margin-left: 8px;
  224. }
  225. }
  226. .banner-wrapper {
  227. padding-top: 12px;
  228. .container-bg-image {
  229. position: static;
  230. margin: auto;
  231. width: calc(100% - 24px);
  232. }
  233. }
  234. .health-scheme-wrapper {
  235. padding: 0 12px 12px 12px;
  236. }
  237. .draggable-sheet-wrapper {
  238. .bottom-wrapper {
  239. display: flex;
  240. justify-content: center;
  241. padding: 6px 0 24px;
  242. }
  243. .row + .row {
  244. margin-top: 8px;
  245. }
  246. .picture-wrapper {
  247. display: flex;
  248. flex-direction: row;
  249. justify-content: center;
  250. image {
  251. margin: 12px;
  252. width: 128px;
  253. height: 128px;
  254. }
  255. }
  256. }
  257. .fab-wrapper {
  258. position: absolute;
  259. top: 50%;
  260. right: -36px;
  261. .fab-main {
  262. width: 72px;
  263. height: 72px;
  264. transform: translateY(6px);
  265. }
  266. .fab {
  267. position: absolute;
  268. top: 6px;
  269. right: 6px;
  270. display: flex;
  271. flex-direction: column;
  272. justify-content: center;
  273. align-items: center;
  274. width: 60px;
  275. height: 60px;
  276. background-color: var(--td-bg-color-container);
  277. border-radius: 50%;
  278. }
  279. }
  280. .CT.row {
  281. padding: 0 var(--td-cell-horizontal-padding, 32rpx);
  282. }
  283. .science-list-wrapper {
  284. padding: 0 20px;
  285. .list-title {
  286. display: flex;
  287. flex-direction: row;
  288. align-items: center;
  289. font-weight: bold;
  290. margin-top: 20px;
  291. display: flex;
  292. align-items: center;
  293. justify-content: space-between;
  294. .missionary {
  295. color: #191919;
  296. font-size: 32rpx;
  297. font-weight: bold;
  298. }
  299. .title-box {
  300. display: flex;
  301. align-items: center;
  302. }
  303. .serch {
  304. color: #1d6ff6;
  305. font-size: 12px;
  306. }
  307. }
  308. }
  309. .popup-container {
  310. position: relative;
  311. width: 70vw;
  312. height: 45vh;
  313. background: white;
  314. padding: 20rpx 30rpx;
  315. border-radius: 20rpx;
  316. }
  317. .popup-block {
  318. background: white;
  319. overflow: hidden;
  320. height: 45vh !important;
  321. }
  322. .close-btn {
  323. position: absolute;
  324. left: 50%;
  325. margin-left: -32rpx;
  326. bottom: calc(-1 * (48rpx + 64rpx));
  327. }
  328. .popup-item {
  329. display: flex;
  330. justify-content: space-between;
  331. align-items: center;
  332. padding: 15px 0;
  333. border-bottom: 1px solid #f0f0f0;
  334. &:last-child {
  335. border-bottom: none;
  336. }
  337. }
  338. .popup-text {
  339. font-size: 16px;
  340. color: #333;
  341. }
  342. .popup-action {
  343. font-size: 14px;
  344. color: #37b473;
  345. }
  346. .t-popup__close {
  347. width: 20px !important;
  348. height: 20px !important;
  349. color: #000 !important;
  350. }
  351. .tabbar-container {
  352. position: fixed;
  353. left: 0;
  354. right: 0;
  355. bottom: 0;
  356. z-index: 100;
  357. background-color: #fff;
  358. padding-bottom: env(safe-area-inset-bottom);
  359. // 适配底部安全区域
  360. box-shadow: 0 -2rpx 6rpx rgba(0, 0, 0, 0.1);
  361. }
  362. .page-scroll__container {
  363. position: relative;
  364. height: calc(100vh - 180rpx) !important;
  365. padding-bottom: calc(100rpx + env(safe-area-inset-bottom));
  366. box-sizing: border-box;
  367. }
  368. .user-pageBox{
  369. display: flex;
  370. align-items: center;
  371. }
  372. .care-container {
  373. margin-top: 10px;
  374. border-radius: 12rpx;
  375. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);
  376. padding: 0px 9px 0 9px;
  377. }
  378. .care-list {
  379. background: #fff;
  380. transition: height 0.3s;
  381. overflow: hidden;
  382. }
  383. .care-header {
  384. background: linear-gradient(90deg, #4165f4, #78acff);
  385. color: #fff;
  386. font-weight: bold;
  387. font-size: 32rpx;
  388. border-radius: 12rpx 12rpx 0 0;
  389. padding: 20rpx;
  390. display: flex;
  391. align-items: center;
  392. }
  393. .care-icon {
  394. width: 43rpx;
  395. height: 43rpx;
  396. margin-right: 5rpx;
  397. }
  398. .care-item {
  399. border-bottom: 1px solid #f0f0f0;
  400. padding: 24rpx 20rpx;
  401. }
  402. .detail-box {
  403. display: flex;
  404. flex-direction: column;
  405. align-items: center;
  406. justify-content: center;
  407. }
  408. .item-main {
  409. display: flex;
  410. align-items: center;
  411. }
  412. .dot {
  413. width: 12rpx;
  414. height: 12rpx;
  415. background: #1d6ff6;
  416. border-radius: 50%;
  417. margin-right: 16rpx;
  418. }
  419. .item-title {
  420. flex: 1;
  421. font-size: 30rpx;
  422. }
  423. .item-next-time {
  424. color: #2ec4b6;
  425. margin-left: 16rpx;
  426. }
  427. .item-arrow {
  428. width: 24rpx;
  429. height: 24rpx;
  430. margin-left: 12rpx;
  431. }
  432. .expand-all {
  433. display: flex;
  434. justify-content: center;
  435. align-items: center;
  436. padding: 16rpx 0;
  437. background-color: white;
  438. border-radius: 0px 0px 10px 10px;
  439. }
  440. .expand-arrow {
  441. width: 32rpx;
  442. height: 32rpx;
  443. }
  444. // 详细内容
  445. .detail-image {
  446. width: 120rpx;
  447. height: 80rpx;
  448. display: block;
  449. margin: 10rpx auto 12rpx auto;
  450. }
  451. .flex {
  452. display: flex;
  453. align-items: center;
  454. margin-bottom: 8rpx;
  455. }
  456. .item-detail {
  457. font-size: 28rpx;
  458. color: #222;
  459. margin-top: 12rpx;
  460. line-height: 1.7;
  461. border-top: 1px solid #f0f0f0;
  462. display: flex;
  463. justify-content: space-between;
  464. align-items: center;
  465. }
  466. .item-box {
  467. display: flex;
  468. flex-direction: column;
  469. justify-content: center;
  470. padding-top: 10px;
  471. }
  472. .verify-record {
  473. cursor: pointer;
  474. color: #1976d2;
  475. border: 1px solid #1976d2;
  476. padding: 7rpx 20px;
  477. border-radius: 10rpx;
  478. width: 17%;
  479. text-align: center;
  480. margin-right: 10px;
  481. }
  482. .carousel-container {
  483. margin-top: 20rpx;
  484. border-radius: 16rpx;
  485. overflow: hidden;
  486. height: 200rpx;
  487. width: 100%;
  488. position: relative;
  489. .media-carousel {
  490. height: 100%;
  491. }
  492. .carousel-loading {
  493. position: absolute;
  494. top: 0;
  495. left: 0;
  496. right: 0;
  497. bottom: 0;
  498. display: flex;
  499. flex-direction: column;
  500. justify-content: center;
  501. align-items: center;
  502. background-color: rgba(248, 249, 250, 0.95);
  503. border-radius: 16rpx;
  504. z-index: 10;
  505. }
  506. .loading-overlay {
  507. position: absolute;
  508. top: 0;
  509. left: 0;
  510. right: 0;
  511. bottom: 0;
  512. display: flex;
  513. flex-direction: column;
  514. justify-content: center;
  515. align-items: center;
  516. background-color: rgba(248, 249, 250, 0.95);
  517. border-radius: 16rpx;
  518. z-index: 10;
  519. .loading-spinner {
  520. width: 40rpx;
  521. height: 40rpx;
  522. border: 4rpx solid #e9ecef;
  523. border-top: 4rpx solid #2ec4b6;
  524. border-radius: 50%;
  525. animation: spin 1s linear infinite;
  526. margin-bottom: 16rpx;
  527. }
  528. .loading-text {
  529. font-size: 24rpx;
  530. color: #6c757d;
  531. }
  532. }
  533. }
  534. @keyframes spin {
  535. 0% {
  536. transform: rotate(0deg);
  537. }
  538. 100% {
  539. transform: rotate(360deg);
  540. }
  541. }
  542. .healthyAnalyze {
  543. font-size: 40rpx;
  544. text-align: center;
  545. color: #1976d2;
  546. margin-bottom: 15px;
  547. }
  548. .loading-center {
  549. display: flex;
  550. justify-content: center;
  551. align-items: center;
  552. height: 180rpx;
  553. width: 100%;
  554. }