home.scss 12 KB

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