home.scss 13 KB

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