home.scss 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744
  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. // 详细内容
  494. .detail-image {
  495. width: 120rpx;
  496. height: 80rpx;
  497. display: block;
  498. margin: 10rpx auto 12rpx auto;
  499. }
  500. .flex {
  501. display: flex;
  502. align-items: center;
  503. margin-bottom: 8rpx;
  504. }
  505. .item-detail {
  506. font-size: 28rpx;
  507. color: #222;
  508. margin-top: 12rpx;
  509. line-height: 1.7;
  510. border-top: 1px solid #f0f0f0;
  511. display: flex;
  512. justify-content: space-between;
  513. align-items: center;
  514. }
  515. .item-box {
  516. display: flex;
  517. flex-direction: column;
  518. justify-content: center;
  519. padding-top: 10px;
  520. }
  521. .verify-record {
  522. cursor: pointer;
  523. color: #1976d2;
  524. border: 1px solid #1976d2;
  525. padding: 7rpx 10px;
  526. border-radius: 10rpx;
  527. // width: 17%;
  528. text-align: center;
  529. // margin-right: 10px;
  530. margin-bottom: 20rpx;
  531. }
  532. .carousel-container {
  533. margin-top: 20rpx;
  534. border-radius: 16rpx;
  535. overflow: hidden;
  536. height: 200rpx;
  537. width: 100%;
  538. position: relative;
  539. .media-carousel {
  540. height: 100%;
  541. }
  542. .carousel-loading {
  543. position: absolute;
  544. top: 0;
  545. left: 0;
  546. right: 0;
  547. bottom: 0;
  548. display: flex;
  549. flex-direction: column;
  550. justify-content: center;
  551. align-items: center;
  552. background-color: rgba(248, 249, 250, 0.95);
  553. border-radius: 16rpx;
  554. z-index: 10;
  555. }
  556. .loading-overlay {
  557. position: absolute;
  558. top: 0;
  559. left: 0;
  560. right: 0;
  561. bottom: 0;
  562. display: flex;
  563. flex-direction: column;
  564. justify-content: center;
  565. align-items: center;
  566. background-color: rgba(248, 249, 250, 0.95);
  567. border-radius: 16rpx;
  568. z-index: 10;
  569. .loading-spinner {
  570. width: 40rpx;
  571. height: 40rpx;
  572. border: 4rpx solid #e9ecef;
  573. border-top: 4rpx solid #2ec4b6;
  574. border-radius: 50%;
  575. animation: spin 1s linear infinite;
  576. margin-bottom: 16rpx;
  577. }
  578. .loading-text {
  579. font-size: 24rpx;
  580. color: #6c757d;
  581. }
  582. }
  583. }
  584. @keyframes spin {
  585. 0% {
  586. transform: rotate(0deg);
  587. }
  588. 100% {
  589. transform: rotate(360deg);
  590. }
  591. }
  592. .healthyAnalyze {
  593. font-size: 40rpx;
  594. text-align: center;
  595. color: #1976d2;
  596. margin-bottom: 15px;
  597. }
  598. .loading-center {
  599. display: flex;
  600. justify-content: center;
  601. align-items: center;
  602. height: 180rpx;
  603. width: 100%;
  604. }
  605. .chat-status {
  606. pointer-events: auto;
  607. display: inline-flex;
  608. align-items: center;
  609. background: #e5eaff;
  610. box-shadow: 0rpx 6rpx 6rpx 0rpx rgba(43, 78, 135, 0.12);
  611. border: 2rpx solid rgba(29, 111, 246, 0.3);
  612. border-radius: 40rpx 0rpx 0rpx 40rpx;
  613. padding: 15rpx 30rpx 15rpx 30rpx;
  614. position: absolute !important;
  615. right: 0;
  616. top: 25rpx;
  617. color: #1d6ff6;
  618. font-weight: 500;
  619. font-size: 24rpx;
  620. z-index: 999999 !important;
  621. &__dot {
  622. width: 20rpx;
  623. height: 20rpx;
  624. background-color: #6df28c; // 绿色圆点
  625. border-radius: 50%;
  626. position: absolute;
  627. left: -5rpx;
  628. top: -5rpx;
  629. border: 2rpx solid #ffffff;
  630. z-index: 10;
  631. }
  632. &__text {
  633. font-size: 22rpx;
  634. color: #1f457f; // 深蓝色文字
  635. line-height: 1;
  636. white-space: nowrap;
  637. }
  638. }
  639. .right-btn {
  640. display: flex;
  641. flex-direction: column;
  642. align-items: flex-start;
  643. }
  644. .ins-box {
  645. display: flex;
  646. align-items: center;
  647. }