home.scss 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765
  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:not(.chat-status),
  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 10rpx 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. box-sizing: border-box;
  60. // 内容过多时限制自身宽度并允许收缩,不再向左挤压报告展示
  61. flex: 0 1 auto;
  62. max-width: 70%;
  63. min-width: 26%;
  64. .right-box {
  65. height: 100%;
  66. display: flex;
  67. flex-direction: column;
  68. align-items: stretch; // 子项占满宽度,过长文字才会换行
  69. justify-content: center;
  70. flex: 1 1 auto;
  71. min-width: 0;
  72. }
  73. .warn-img {
  74. width: 20rpx;
  75. height: 20rpx;
  76. margin: 10rpx 10rpx 10rpx 0rpx;
  77. flex-shrink: 0;
  78. }
  79. }
  80. }
  81. .follow-container {
  82. display: flex;
  83. justify-content: space-between;
  84. align-items: center;
  85. padding: 10rpx 20rpx;
  86. background: #d6e6ef;
  87. margin-top: 15rpx;
  88. }
  89. .pieces {
  90. color: #2ba471;
  91. font-size: 30rpx;
  92. margin: 0px 20rpx 0px 20rpx;
  93. }
  94. .follow-text {
  95. color: #191919;
  96. font-size: 28rpx;
  97. }
  98. .notice-icon {
  99. width: 30rpx;
  100. height: 30rpx;
  101. }
  102. .follow-box {
  103. display: flex;
  104. align-items: center;
  105. }
  106. .scroll_live {
  107. width: 100%;
  108. height: 45vh;
  109. overflow-y: scroll;
  110. }
  111. .container-bg-image {
  112. position: absolute;
  113. top: 0;
  114. left: 0;
  115. width: 100%;
  116. height: 100%;
  117. }
  118. .block {
  119. padding: 50px;
  120. background: white;
  121. }
  122. .block-box {
  123. display: flex;
  124. }
  125. .user-box {
  126. display: flex;
  127. align-items: center;
  128. margin-bottom: 15rpx;
  129. position: relative;
  130. }
  131. .report-container {
  132. width: 100%;
  133. display: flex;
  134. align-items: center;
  135. justify-content: center;
  136. position: relative;
  137. z-index: 10;
  138. pointer-events: auto;
  139. .report-box {
  140. display: flex;
  141. align-items: center;
  142. height: 45px;
  143. line-height: 45px;
  144. justify-content: center;
  145. border: 2px solid white;
  146. background: linear-gradient(to bottom, #d9e7fb, #c1d5f5);
  147. // 渐变蓝色
  148. width: 95%;
  149. border-radius: 6px;
  150. // margin: auto;
  151. .report-img {
  152. width: 35rpx;
  153. height: 38rpx;
  154. }
  155. .text-box {
  156. display: flex;
  157. .text-one {
  158. font-size: 28rpx;
  159. color: #1f457f;
  160. font-weight: bold;
  161. margin: 0 15rpx 0 15rpx;
  162. }
  163. .text-two {
  164. font-size: 24rpx;
  165. color: #35578c;
  166. }
  167. }
  168. }
  169. }
  170. $scale: 0.5;
  171. .header-container {
  172. padding: 12px;
  173. display: flex;
  174. flex-direction: row;
  175. justify-content: space-between;
  176. align-items: center;
  177. box-sizing: border-box;
  178. }
  179. .user-info-wrapper {
  180. position: relative;
  181. align-items: center;
  182. padding: 0 8px;
  183. // width: 254px * $scale;
  184. // height: 66px * $scale;
  185. box-sizing: border-box;
  186. .user {
  187. &-icon {
  188. flex: none;
  189. margin-left: 4px;
  190. width: 12px * $scale;
  191. height: 16px * $scale;
  192. }
  193. &-select-icon {
  194. flex: none;
  195. margin-left: 4px;
  196. width: 8px;
  197. height: 4px;
  198. }
  199. &-name {
  200. flex: none;
  201. margin-left: 4px;
  202. font-size: 36rpx;
  203. color: #191919;
  204. margin-right: 10rpx;
  205. font-weight: 500;
  206. }
  207. &-age {
  208. flex: none;
  209. margin-left: 4px;
  210. font-size: 24rpx;
  211. }
  212. &-description {
  213. flex: auto;
  214. margin-left: 4px;
  215. font-size: 24rpx;
  216. }
  217. }
  218. }
  219. .tool-bar-wrapper {
  220. display: flex;
  221. flex-direction: row;
  222. font-size: 12px;
  223. .tool {
  224. display: flex;
  225. flex-direction: row;
  226. align-items: center;
  227. color: #666666;
  228. image {
  229. width: 15px;
  230. height: 14px;
  231. margin-right: 4px;
  232. }
  233. }
  234. .tool + .tool {
  235. margin-left: 8px;
  236. }
  237. }
  238. .banner-wrapper {
  239. padding-top: 12px;
  240. .container-bg-image {
  241. position: static;
  242. margin: auto;
  243. width: calc(100% - 24px);
  244. }
  245. }
  246. .health-scheme-wrapper {
  247. padding: 0 12px 12px 12px;
  248. }
  249. .draggable-sheet-wrapper {
  250. .bottom-wrapper {
  251. display: flex;
  252. justify-content: center;
  253. padding: 6px 0 24px;
  254. }
  255. .row + .row {
  256. margin-top: 8px;
  257. }
  258. .picture-wrapper {
  259. display: flex;
  260. flex-direction: row;
  261. justify-content: center;
  262. image {
  263. margin: 12px;
  264. width: 128px;
  265. height: 128px;
  266. }
  267. }
  268. }
  269. .fab-wrapper {
  270. position: absolute;
  271. top: 50%;
  272. right: -36px;
  273. .fab-main {
  274. width: 72px;
  275. height: 72px;
  276. transform: translateY(6px);
  277. }
  278. .fab {
  279. position: absolute;
  280. top: 6px;
  281. right: 6px;
  282. display: flex;
  283. flex-direction: column;
  284. justify-content: center;
  285. align-items: center;
  286. width: 60px;
  287. height: 60px;
  288. background-color: var(--td-bg-color-container);
  289. border-radius: 50%;
  290. }
  291. }
  292. .CT.row {
  293. padding: 0 var(--td-cell-horizontal-padding, 32rpx);
  294. }
  295. .science-list-wrapper {
  296. padding: 0 10px;
  297. .list-title {
  298. display: flex;
  299. flex-direction: row;
  300. align-items: center;
  301. font-weight: bold;
  302. margin-top: 20px;
  303. display: flex;
  304. align-items: center;
  305. justify-content: space-between;
  306. .missionary {
  307. color: #191919;
  308. font-size: 32rpx;
  309. font-weight: bold;
  310. }
  311. .title-box {
  312. display: flex;
  313. align-items: center;
  314. }
  315. .serch {
  316. color: #1d6ff6;
  317. font-size: 12px;
  318. }
  319. }
  320. .waterfall-container {
  321. display: flex;
  322. gap: 3px;
  323. margin-top: 12px;
  324. .waterfall-column {
  325. flex: 1;
  326. display: flex;
  327. flex-direction: column;
  328. waterfall-card {
  329. width: 100%;
  330. box-sizing: border-box;
  331. margin-bottom: 10px;
  332. }
  333. }
  334. }
  335. .loading-more {
  336. display: flex;
  337. flex-direction: column;
  338. align-items: center;
  339. justify-content: center;
  340. padding: 20px 0;
  341. margin-top: 12px;
  342. .loading-text {
  343. font-size: 14px;
  344. color: #8C8C8C;
  345. margin-top: 8px;
  346. }
  347. }
  348. }
  349. .popup-container {
  350. position: relative;
  351. width: 70vw;
  352. height: 45vh;
  353. background: white;
  354. padding: 20rpx 30rpx;
  355. border-radius: 20rpx;
  356. }
  357. .popup-block {
  358. background: white;
  359. overflow: hidden;
  360. height: 45vh !important;
  361. }
  362. .close-btn {
  363. position: absolute;
  364. left: 50%;
  365. margin-left: -32rpx;
  366. bottom: calc(-1 * (48rpx + 64rpx));
  367. }
  368. .popup-item {
  369. display: flex;
  370. justify-content: space-between;
  371. align-items: center;
  372. padding: 15px 0;
  373. border-bottom: 1px solid #f0f0f0;
  374. min-height: 44px; // 确保有足够的点击区域
  375. cursor: pointer;
  376. -webkit-tap-highlight-color: transparent; // 移除点击高亮
  377. position: relative; // 确保点击区域正确
  378. z-index: 1; // 确保在 scroll-view 中可点击
  379. &:last-child {
  380. border-bottom: none;
  381. }
  382. }
  383. .popup-text {
  384. font-size: 16px;
  385. color: #333;
  386. flex: 1;
  387. // 移除 pointer-events,让事件冒泡到父元素
  388. }
  389. .popup-action {
  390. font-size: 14px;
  391. color: #37b473;
  392. // 移除 pointer-events,让事件冒泡到父元素
  393. }
  394. .t-popup__close {
  395. width: 20px !important;
  396. height: 20px !important;
  397. color: #000 !important;
  398. }
  399. .tabbar-container {
  400. position: fixed;
  401. left: 0;
  402. right: 0;
  403. bottom: 0;
  404. z-index: 100;
  405. background-color: #fff;
  406. padding-bottom: env(safe-area-inset-bottom);
  407. // 适配底部安全区域
  408. box-shadow: 0 -2rpx 6rpx rgba(0, 0, 0, 0.1);
  409. }
  410. .page-scroll__container {
  411. position: relative;
  412. height: calc(100vh - 180rpx) !important;
  413. padding-bottom: calc(100rpx + env(safe-area-inset-bottom));
  414. box-sizing: border-box;
  415. }
  416. .user-pageBox {
  417. display: flex;
  418. align-items: center;
  419. }
  420. .care-container {
  421. margin-top: 10px;
  422. border-radius: 12rpx;
  423. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);
  424. padding: 0px 9px 0 9px;
  425. }
  426. .care-list {
  427. background: #fff;
  428. transition: height 0.3s;
  429. overflow: hidden;
  430. }
  431. .care-header {
  432. background: linear-gradient(90deg, #4165f4, #78acff);
  433. color: #fff;
  434. font-weight: bold;
  435. font-size: 32rpx;
  436. border-radius: 12rpx 12rpx 0 0;
  437. padding: 20rpx;
  438. display: flex;
  439. align-items: center;
  440. }
  441. .care-icon {
  442. width: 43rpx;
  443. height: 43rpx;
  444. margin-right: 5rpx;
  445. }
  446. .care-item {
  447. border-bottom: 1px solid #f0f0f0;
  448. padding: 24rpx 20rpx;
  449. }
  450. .detail-box {
  451. display: flex;
  452. flex-direction: column;
  453. align-items: center;
  454. justify-content: center;
  455. }
  456. .item-main {
  457. display: flex;
  458. align-items: center;
  459. }
  460. .dot {
  461. width: 12rpx;
  462. height: 12rpx;
  463. background: #1d6ff6;
  464. border-radius: 50%;
  465. margin-right: 16rpx;
  466. }
  467. .item-title {
  468. flex: 1;
  469. font-size: 30rpx;
  470. }
  471. .item-next-time {
  472. color: #2ec4b6;
  473. font-size: 28rpx;
  474. // margin-left: 16rpx;
  475. }
  476. .item-arrow {
  477. width: 24rpx;
  478. height: 24rpx;
  479. margin-left: 12rpx;
  480. }
  481. .expand-all {
  482. display: flex;
  483. justify-content: center;
  484. align-items: center;
  485. padding: 16rpx 0;
  486. background-color: white;
  487. border-radius: 0px 0px 10px 10px;
  488. }
  489. .expand-arrow {
  490. width: 32rpx;
  491. height: 32rpx;
  492. }
  493. .chronic-container {
  494. margin-top: 10px;
  495. padding: 0px 9px;
  496. }
  497. .chronic-card {
  498. background: #4165f4;
  499. color: #fff;
  500. font-weight: bold;
  501. font-size: 32rpx;
  502. border-radius: 12rpx;
  503. padding: 20rpx;
  504. display: flex;
  505. align-items: center;
  506. justify-content: center;
  507. }
  508. .chronic-title {
  509. text-align: center;
  510. }
  511. // 详细内容
  512. .detail-image {
  513. width: 120rpx;
  514. height: 80rpx;
  515. display: block;
  516. margin: 10rpx auto 12rpx auto;
  517. }
  518. .flex {
  519. display: flex;
  520. align-items: center;
  521. margin-bottom: 8rpx;
  522. }
  523. .item-detail {
  524. font-size: 28rpx;
  525. color: #222;
  526. margin-top: 12rpx;
  527. line-height: 1.7;
  528. border-top: 1px solid #f0f0f0;
  529. display: flex;
  530. justify-content: space-between;
  531. align-items: center;
  532. }
  533. .item-box {
  534. display: flex;
  535. flex-direction: column;
  536. justify-content: center;
  537. padding-top: 10px;
  538. }
  539. .verify-record {
  540. cursor: pointer;
  541. color: #1976d2;
  542. border: 1px solid #1976d2;
  543. padding: 7rpx 10px;
  544. border-radius: 10rpx;
  545. // width: 17%;
  546. text-align: center;
  547. // margin-right: 10px;
  548. margin-bottom: 20rpx;
  549. }
  550. .carousel-container {
  551. margin-top: 20rpx;
  552. border-radius: 16rpx;
  553. overflow: hidden;
  554. height: 200rpx;
  555. width: 100%;
  556. position: relative;
  557. .media-carousel {
  558. height: 100%;
  559. }
  560. .carousel-loading {
  561. position: absolute;
  562. top: 0;
  563. left: 0;
  564. right: 0;
  565. bottom: 0;
  566. display: flex;
  567. flex-direction: column;
  568. justify-content: center;
  569. align-items: center;
  570. background-color: rgba(248, 249, 250, 0.95);
  571. border-radius: 16rpx;
  572. z-index: 10;
  573. }
  574. .loading-overlay {
  575. position: absolute;
  576. top: 0;
  577. left: 0;
  578. right: 0;
  579. bottom: 0;
  580. display: flex;
  581. flex-direction: column;
  582. justify-content: center;
  583. align-items: center;
  584. background-color: rgba(248, 249, 250, 0.95);
  585. border-radius: 16rpx;
  586. z-index: 10;
  587. .loading-spinner {
  588. width: 40rpx;
  589. height: 40rpx;
  590. border: 4rpx solid #e9ecef;
  591. border-top: 4rpx solid #2ec4b6;
  592. border-radius: 50%;
  593. animation: spin 1s linear infinite;
  594. margin-bottom: 16rpx;
  595. }
  596. .loading-text {
  597. font-size: 24rpx;
  598. color: #6c757d;
  599. }
  600. }
  601. }
  602. @keyframes spin {
  603. 0% {
  604. transform: rotate(0deg);
  605. }
  606. 100% {
  607. transform: rotate(360deg);
  608. }
  609. }
  610. .healthyAnalyze {
  611. font-size: 40rpx;
  612. text-align: center;
  613. color: #1976d2;
  614. margin-bottom: 15px;
  615. }
  616. .loading-center {
  617. display: flex;
  618. justify-content: center;
  619. align-items: center;
  620. height: 180rpx;
  621. width: 100%;
  622. }
  623. .chat-status {
  624. pointer-events: auto;
  625. display: inline-flex;
  626. align-items: center;
  627. background: #e5eaff;
  628. box-shadow: 0rpx 6rpx 6rpx 0rpx rgba(43, 78, 135, 0.12);
  629. border: 2rpx solid rgba(29, 111, 246, 0.3);
  630. border-radius: 40rpx 0rpx 0rpx 40rpx;
  631. padding: 15rpx 30rpx 15rpx 30rpx;
  632. position: absolute !important;
  633. right: 0;
  634. top: 25rpx;
  635. color: #1d6ff6;
  636. font-weight: 500;
  637. font-size: 24rpx;
  638. z-index: 999999 !important;
  639. &__dot {
  640. width: 20rpx;
  641. height: 20rpx;
  642. background-color: #6df28c; // 绿色圆点
  643. border-radius: 50%;
  644. position: absolute;
  645. left: -5rpx;
  646. top: -5rpx;
  647. border: 2rpx solid #ffffff;
  648. z-index: 10;
  649. }
  650. &__text {
  651. font-size: 22rpx;
  652. color: #1f457f; // 深蓝色文字
  653. line-height: 1;
  654. white-space: nowrap;
  655. }
  656. }
  657. .right-btn {
  658. display: flex;
  659. flex-direction: column;
  660. align-items: flex-start;
  661. }
  662. .ins-box {
  663. display: flex;
  664. align-items: center;
  665. }