天波h5前端应用
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

547 行
19KB

  1. $newBlue: #638EE4;
  2. .psychological-container{
  3. height: 100vh;
  4. width: 100%;
  5. overflow: hidden;
  6. background-color: #fff;
  7. .tab-bar{
  8. width: 100%;
  9. position: relative;
  10. .date-tab-con {
  11. display: flex;
  12. justify-content: flex-start;
  13. align-items: center;
  14. background: #F6F6F6;
  15. border: 1px solid #E0E0E0;
  16. .date-tab-list {
  17. display: flex;
  18. justify-content: space-around;
  19. align-items: center;
  20. color: #fff;
  21. flex: 1;
  22. height: 24px;
  23. padding: 10px 0;
  24. .date-tab-item {
  25. position: relative;
  26. padding: 0 10px;
  27. color: #6D6D6D;
  28. font-size: 18px;
  29. @include center();
  30. img {
  31. height: 25px;
  32. width: 25px;
  33. padding: 0 8px;
  34. }
  35. .more {
  36. width: 10px;
  37. height: 6px;
  38. }
  39. &.active::after {
  40. content: '';
  41. width: 44px;
  42. position: absolute;
  43. right: 25%;
  44. bottom: -10px;
  45. box-sizing: border-box;
  46. border-bottom: 4px solid #638EE4;
  47. }
  48. &.active {
  49. color: #638EE4;
  50. }
  51. &.notClick {
  52. background-color: $border_color;
  53. color: #fff;
  54. border: 1px solid #fff;
  55. }
  56. }
  57. .date-tab-item:nth-child(3) {
  58. border-right: 1px solid #E0E0E0;
  59. }
  60. /* .date-tab-item:first-child {
  61. border-top-left-radius: 15px;
  62. border-bottom-left-radius: 15px;
  63. }
  64. .date-tab-item:last-child {
  65. border-top-right-radius: 15px;
  66. border-bottom-right-radius: 15px;
  67. } */
  68. }
  69. }
  70. }
  71. .psy-tab-bar {
  72. height: 30px;
  73. position: relative;
  74. margin: 5px 0;
  75. padding: 0 10px;
  76. .psy-tab-con {
  77. background-color: #EEEEEE;
  78. border-top-left-radius: 20px;
  79. border-top-right-radius: 20px;
  80. border-bottom-left-radius: 20px;
  81. border-bottom-right-radius: 20px;
  82. .psy-tab-list {
  83. display: flex;
  84. justify-content: space-around;
  85. align-items: center;
  86. color: #fff;
  87. height: 30px;
  88. width: 100%;
  89. /* background-color: red; */
  90. .psy-tab-item {
  91. position: relative;
  92. padding: 0 10px;
  93. color: #6D6D6D;
  94. height: 100%;
  95. width: 100%;
  96. font-size: 14px;
  97. border-radius: 20px;
  98. @include center();
  99. &.active {
  100. color: #FFFFFF;
  101. background-color: #189B3BFF;
  102. }
  103. }
  104. }
  105. }
  106. }
  107. .main {
  108. position: relative;
  109. height: calc(100vh - 150px);
  110. overflow-y: scroll;
  111. overflow-x: hidden;
  112. .top {
  113. flex: 1;
  114. .title {
  115. display: flex;
  116. justify-content: space-between;
  117. align-items: center;
  118. padding: 0px 16px 10px 13px;
  119. font-size: 18px;
  120. .title-left {
  121. font-weight: bold;
  122. .van-icon {
  123. margin-left: 5px;
  124. font-size: 18px;
  125. }
  126. }
  127. .title-right{
  128. display: flex;
  129. .title-right-button{
  130. color: #638EE4;
  131. font-size: 16px;
  132. border: 1px solid #638EE4;
  133. padding: 2px 10px;
  134. margin-right: 5px;
  135. &:last-child{
  136. margin-right: 0;
  137. }
  138. }
  139. }
  140. }
  141. .monitoring-count {
  142. text-align: left;
  143. padding: 3px 14px;
  144. line-height: 20px;
  145. p {
  146. font-size: 12px;
  147. color: #8B8B8B;
  148. }
  149. }
  150. .pie-chart-con {
  151. flex: 1;
  152. padding: 5px 0 10px 0;
  153. display: flex;
  154. justify-content: space-between;
  155. align-items: flex-start;
  156. .pie-chart-left {
  157. position: relative;
  158. height: 150px;
  159. padding-left: 15px;
  160. width: 35%;
  161. @include center();
  162. #pieChart {
  163. height: 106px;
  164. width: 106px;
  165. }
  166. #pieChartDay {
  167. height: 106px;
  168. width: 106px;
  169. }
  170. }
  171. .pie-chart-right {
  172. height: 150px;
  173. width: 65%;
  174. padding-right: 20px;
  175. @include center();
  176. .list {
  177. flex-direction: column;
  178. .item {
  179. width: 100%;
  180. display: flex;
  181. justify-content: space-between;
  182. align-items: center;
  183. font-size: 12px;
  184. padding: 9px 0;
  185. .item-left {
  186. display: flex;
  187. justify-content: flex-start;
  188. align-items: center;
  189. padding-right: 10px;
  190. .circle {
  191. height: 12px;
  192. width: 12px;
  193. margin: 0 4px;
  194. }
  195. span {
  196. font-size: 12px;
  197. }
  198. .text {
  199. color: #000;
  200. font-size: 12px;
  201. }
  202. }
  203. .item-right {
  204. display: flex;
  205. justify-content: center;
  206. align-items: center;
  207. }
  208. }
  209. }
  210. }
  211. }
  212. .statistics {
  213. position: relative;
  214. padding: 0px 14px 5px 14px;
  215. .list {
  216. flex: 1;
  217. width: 100%;
  218. display: flex;
  219. justify-content: space-between;
  220. align-items: center;
  221. font-size: 16px;
  222. .item {
  223. @include center();
  224. width: 58px;
  225. /* height: px2rem(136); */
  226. flex-direction: column;
  227. .top {
  228. font-size: 12px;
  229. }
  230. .middle {
  231. font-size: 24px;
  232. font-weight: bold;
  233. padding: 5px;
  234. }
  235. .bottom {
  236. font-size: 9px
  237. }
  238. }
  239. }
  240. }
  241. }
  242. .line {
  243. position: relative;
  244. height: 11px;
  245. background-color: $lineGray;
  246. }
  247. .bottom {
  248. flex: 1;
  249. .echart-container {
  250. height: 250px;
  251. background-color:#fff;
  252. padding: 0 5px;
  253. .echart {
  254. height: 250px;
  255. padding: 0 5px;
  256. }
  257. }
  258. .line-gray {
  259. height: 11px;
  260. width: 100%;
  261. background-color: $lineGray;
  262. margin-top: 10px;
  263. }
  264. .result {
  265. .result-con {
  266. height: 100%;
  267. background-color: #fff;
  268. border-radius: 10px;
  269. &.reminder {
  270. padding: 0 16px 20px 16px;
  271. }
  272. .title {
  273. display: flex;
  274. justify-content: flex-start;
  275. align-items: flex-start;
  276. flex-direction: column;
  277. margin-bottom: 10px;
  278. span {
  279. font-size: 18px;
  280. font-weight: bold;
  281. }
  282. .font-28 {
  283. font-weight: 400;
  284. font-size: 13px;
  285. color: #8B8B8B;
  286. text-align: left;
  287. }
  288. .title-no-data {
  289. padding: 34px 0 13px 15px;
  290. }
  291. p {
  292. font-size: 12px;
  293. color: $newBlue;
  294. }
  295. .title-emo {
  296. font-size: 24px;
  297. padding: 14px 0 21px 0;
  298. text-align: left;
  299. }
  300. .no-data {
  301. height: 250px;
  302. width: 100%;
  303. @include center();
  304. flex-direction: column;
  305. img {
  306. height: 110px;
  307. width: 175px;
  308. }
  309. p {
  310. color: #999;
  311. font-size: 12px;
  312. padding: 20px 0 65px 0;
  313. }
  314. }
  315. }
  316. .title-text {
  317. padding: 34px 0 13px 15px;
  318. }
  319. .title-reminder {
  320. padding: 34px 0 0 0;
  321. }
  322. .friendly-reminder, .warm-reminder {
  323. display: flex;
  324. justify-content: flex-start;
  325. align-items: flex-start;
  326. flex-direction: column;
  327. margin-bottom: 10px;
  328. background-color: #F2F2F2;
  329. padding: 20px 19px 19px 14px;
  330. p {
  331. font-weight: bold;
  332. text-align: left;
  333. padding-bottom: 11px;
  334. font-size: 15px;
  335. }
  336. span {
  337. text-align: left;
  338. font-size: 12px;
  339. }
  340. }
  341. .mood-list {
  342. display: grid;
  343. grid-template-columns: repeat(2, 1fr); //定义了一个 2x2 的网格布
  344. grid-template-rows: repeat(2, 1fr);
  345. gap: 21px;
  346. //width: 100%;
  347. padding: 0 44px 20px 37px;
  348. .item {
  349. width: 137px;
  350. height: 94px;
  351. /* padding: px2rem(47) px2rem(57) px2rem(49) px2rem(57); */
  352. background-color: #F2F6FF;
  353. @include center();
  354. flex-direction: column;
  355. p {
  356. font-size: 14px;
  357. padding: 0;
  358. color: #666666;
  359. .day {
  360. padding: 5px;
  361. font-size: 28px;
  362. }
  363. .day-text {
  364. font-size: 12px
  365. }
  366. }
  367. }
  368. }
  369. .mood-list-no-data {
  370. height: 250px;
  371. width: 100%;
  372. .no-data {
  373. @include center();
  374. flex-direction: column;
  375. img {
  376. height: 110px;
  377. width: 175px;
  378. }
  379. p {
  380. color: #999;
  381. font-size: 12px;
  382. padding: 20px 0 65px 0;
  383. }
  384. }
  385. }
  386. }
  387. }
  388. }
  389. &.report {
  390. position: relative;
  391. height: calc(100vh - 150px);
  392. overflow: scroll;
  393. background-color: #f5f5f5;
  394. .content {
  395. position: relative;
  396. .list {
  397. position: relative;
  398. .item {
  399. display: flex;
  400. justify-content: space-between;
  401. align-items: flex-end;
  402. padding: 34px 15px;
  403. background-color: #fff;
  404. margin-bottom: 11px;
  405. .left {
  406. display: flex;
  407. justify-content: flex-start;
  408. align-items: flex-start;
  409. img {
  410. height: 25px;
  411. width: 25px;
  412. }
  413. .middle {
  414. .title,
  415. .overall,
  416. .trend {
  417. display: flex;
  418. justify-content: flex-start;
  419. align-items: center;
  420. padding-left: 13px;
  421. span,
  422. p {
  423. font-size: 18px;
  424. font-family: Source Han Sans CN;
  425. font-weight: 400;
  426. color: #8d8d8d;
  427. line-height: 30px;
  428. }
  429. }
  430. .title {
  431. span {
  432. padding-right: 20px;
  433. }
  434. p {
  435. color: #282828;
  436. }
  437. }
  438. .overall {
  439. display: flex;
  440. justify-content: flex-start;
  441. align-items: flex-start;
  442. width: 100%;
  443. .left {
  444. flex-direction: column;
  445. p {
  446. padding-left: 20px;
  447. font-weight: bold;
  448. }
  449. }
  450. .right {
  451. img {
  452. height: 15px;
  453. width: 9px;
  454. }
  455. }
  456. }
  457. .trend {
  458. align-items: flex-start;
  459. text-align: left;
  460. }
  461. }
  462. }
  463. .right {
  464. img {
  465. width: 9px;
  466. height: 15px;
  467. }
  468. }
  469. }
  470. &.no-data {
  471. height: calc(100vh - 100px);
  472. width: 100%;
  473. @include center();
  474. flex-direction: column;
  475. img {
  476. height: 110px;
  477. width: 175px;
  478. }
  479. p {
  480. color: #999;
  481. font-size: 16px;
  482. padding: 20px 0 65px 0;
  483. }
  484. }
  485. }
  486. }
  487. }
  488. }
  489. .title {
  490. font-size: 16px;
  491. }
  492. .van-popup {
  493. flex: 1;
  494. max-height: 600px;
  495. width: 100%;
  496. background-color: $background;
  497. }
  498. .popup {
  499. /* height: 100%;
  500. width: 100%; */
  501. background-color: $background;
  502. padding: 20px;
  503. .item {
  504. flex: 1;
  505. padding: 10px;
  506. margin: 15px 0;
  507. text-align: left;
  508. font-size: 14px;
  509. background-color: #fff;
  510. border-radius: 10px;
  511. p {
  512. margin: 5px 0;
  513. }
  514. h5 {
  515. margin: 5px 0;
  516. font-size: 16px;
  517. }
  518. &.first {
  519. padding-top: 0;
  520. }
  521. &.science-tips {
  522. .tips {
  523. width: 60px;
  524. height: 20px;
  525. color: #fff;
  526. @include center();
  527. background-color: red;
  528. border-top-left-radius: 20px;
  529. border-top-right-radius: 15px;
  530. border-bottom-right-radius: 15px;
  531. }
  532. }
  533. }
  534. .van-button {
  535. height: 40px;
  536. background-color: $newBlue;
  537. color: #fff;
  538. border-radius: 20px;
  539. }
  540. }
  541. }