home.scss 10 KB

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