|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547 |
- $newBlue: #638EE4;
- .psychological-container{
- height: 100vh;
- width: 100%;
- overflow: hidden;
- background-color: #fff;
- .tab-bar{
- width: 100%;
- position: relative;
- .date-tab-con {
- display: flex;
- justify-content: flex-start;
- align-items: center;
- background: #F6F6F6;
- border: 1px solid #E0E0E0;
- .date-tab-list {
- display: flex;
- justify-content: space-around;
- align-items: center;
- color: #fff;
- flex: 1;
- height: 24px;
- padding: 10px 0;
- .date-tab-item {
- position: relative;
- padding: 0 10px;
- color: #6D6D6D;
- font-size: 18px;
- @include center();
- img {
- height: 25px;
- width: 25px;
- padding: 0 8px;
- }
- .more {
- width: 10px;
- height: 6px;
- }
- &.active::after {
- content: '';
- width: 44px;
- position: absolute;
- right: 25%;
- bottom: -10px;
- box-sizing: border-box;
- border-bottom: 4px solid #638EE4;
- }
- &.active {
- color: #638EE4;
- }
- &.notClick {
- background-color: $border_color;
- color: #fff;
- border: 1px solid #fff;
- }
- }
- .date-tab-item:nth-child(3) {
- border-right: 1px solid #E0E0E0;
- }
- /* .date-tab-item:first-child {
- border-top-left-radius: 15px;
- border-bottom-left-radius: 15px;
- }
- .date-tab-item:last-child {
- border-top-right-radius: 15px;
- border-bottom-right-radius: 15px;
- } */
- }
- }
- }
- .psy-tab-bar {
- height: 30px;
- position: relative;
- margin: 5px 0;
- padding: 0 10px;
- .psy-tab-con {
- background-color: #EEEEEE;
- border-top-left-radius: 20px;
- border-top-right-radius: 20px;
- border-bottom-left-radius: 20px;
- border-bottom-right-radius: 20px;
- .psy-tab-list {
- display: flex;
- justify-content: space-around;
- align-items: center;
- color: #fff;
- height: 30px;
- width: 100%;
- /* background-color: red; */
- .psy-tab-item {
- position: relative;
- padding: 0 10px;
- color: #6D6D6D;
- height: 100%;
- width: 100%;
- font-size: 14px;
- border-radius: 20px;
- @include center();
- &.active {
- color: #FFFFFF;
- background-color: #189B3BFF;
- }
- }
- }
- }
- }
- .main {
- position: relative;
- height: calc(100vh - 150px);
- overflow-y: scroll;
- overflow-x: hidden;
- .top {
- flex: 1;
- .title {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 0px 16px 10px 13px;
- font-size: 18px;
- .title-left {
- font-weight: bold;
- .van-icon {
- margin-left: 5px;
- font-size: 18px;
- }
- }
-
- .title-right{
- display: flex;
-
- .title-right-button{
- color: #638EE4;
- font-size: 16px;
- border: 1px solid #638EE4;
- padding: 2px 10px;
- margin-right: 5px;
-
- &:last-child{
- margin-right: 0;
- }
- }
- }
- }
- .monitoring-count {
- text-align: left;
- padding: 3px 14px;
- line-height: 20px;
- p {
- font-size: 12px;
- color: #8B8B8B;
- }
- }
- .pie-chart-con {
- flex: 1;
- padding: 5px 0 10px 0;
- display: flex;
- justify-content: space-between;
- align-items: flex-start;
- .pie-chart-left {
- position: relative;
- height: 150px;
- padding-left: 15px;
- width: 35%;
- @include center();
- #pieChart {
- height: 106px;
- width: 106px;
- }
- #pieChartDay {
- height: 106px;
- width: 106px;
- }
- }
- .pie-chart-right {
- height: 150px;
- width: 65%;
- padding-right: 20px;
- @include center();
- .list {
- flex-direction: column;
- .item {
- width: 100%;
- display: flex;
- justify-content: space-between;
- align-items: center;
- font-size: 12px;
- padding: 9px 0;
- .item-left {
- display: flex;
- justify-content: flex-start;
- align-items: center;
- padding-right: 10px;
- .circle {
- height: 12px;
- width: 12px;
- margin: 0 4px;
- }
- span {
- font-size: 12px;
- }
- .text {
- color: #000;
- font-size: 12px;
- }
- }
- .item-right {
- display: flex;
- justify-content: center;
- align-items: center;
- }
- }
- }
- }
- }
- .statistics {
- position: relative;
- padding: 0px 14px 5px 14px;
- .list {
- flex: 1;
- width: 100%;
- display: flex;
- justify-content: space-between;
- align-items: center;
- font-size: 16px;
- .item {
- @include center();
- width: 58px;
- /* height: px2rem(136); */
- flex-direction: column;
- .top {
- font-size: 12px;
- }
- .middle {
- font-size: 24px;
- font-weight: bold;
- padding: 5px;
- }
- .bottom {
- font-size: 9px
- }
- }
- }
- }
- }
- .line {
- position: relative;
- height: 11px;
- background-color: $lineGray;
- }
- .bottom {
- flex: 1;
- .echart-container {
- height: 250px;
- background-color:#fff;
- padding: 0 5px;
- .echart {
- height: 250px;
- padding: 0 5px;
- }
- }
- .line-gray {
- height: 11px;
- width: 100%;
- background-color: $lineGray;
- margin-top: 10px;
- }
- .result {
- .result-con {
- height: 100%;
- background-color: #fff;
- border-radius: 10px;
- &.reminder {
- padding: 0 16px 20px 16px;
- }
- .title {
- display: flex;
- justify-content: flex-start;
- align-items: flex-start;
- flex-direction: column;
- margin-bottom: 10px;
- span {
- font-size: 18px;
- font-weight: bold;
- }
- .font-28 {
- font-weight: 400;
- font-size: 13px;
- color: #8B8B8B;
- text-align: left;
- }
- .title-no-data {
- padding: 34px 0 13px 15px;
- }
- p {
- font-size: 12px;
- color: $newBlue;
- }
- .title-emo {
- font-size: 24px;
- padding: 14px 0 21px 0;
- text-align: left;
- }
- .no-data {
- height: 250px;
- width: 100%;
- @include center();
- flex-direction: column;
- img {
- height: 110px;
- width: 175px;
- }
- p {
- color: #999;
- font-size: 12px;
- padding: 20px 0 65px 0;
- }
- }
- }
- .title-text {
- padding: 34px 0 13px 15px;
- }
- .title-reminder {
- padding: 34px 0 0 0;
- }
- .friendly-reminder, .warm-reminder {
- display: flex;
- justify-content: flex-start;
- align-items: flex-start;
- flex-direction: column;
- margin-bottom: 10px;
- background-color: #F2F2F2;
- padding: 20px 19px 19px 14px;
- p {
- font-weight: bold;
- text-align: left;
- padding-bottom: 11px;
- font-size: 15px;
- }
- span {
- text-align: left;
- font-size: 12px;
- }
- }
- .mood-list {
- display: grid;
- grid-template-columns: repeat(2, 1fr); //定义了一个 2x2 的网格布
- grid-template-rows: repeat(2, 1fr);
- gap: 21px;
- //width: 100%;
- padding: 0 44px 20px 37px;
- .item {
- width: 137px;
- height: 94px;
- /* padding: px2rem(47) px2rem(57) px2rem(49) px2rem(57); */
- background-color: #F2F6FF;
- @include center();
- flex-direction: column;
- p {
- font-size: 14px;
- padding: 0;
- color: #666666;
- .day {
- padding: 5px;
- font-size: 28px;
- }
- .day-text {
- font-size: 12px
- }
- }
- }
- }
- .mood-list-no-data {
- height: 250px;
- width: 100%;
- .no-data {
- @include center();
- flex-direction: column;
- img {
- height: 110px;
- width: 175px;
- }
- p {
- color: #999;
- font-size: 12px;
- padding: 20px 0 65px 0;
- }
- }
- }
- }
- }
- }
- &.report {
- position: relative;
- height: calc(100vh - 150px);
- overflow: scroll;
- background-color: #f5f5f5;
- .content {
- position: relative;
- .list {
- position: relative;
-
- .item {
- display: flex;
- justify-content: space-between;
- align-items: flex-end;
- padding: 34px 15px;
- background-color: #fff;
- margin-bottom: 11px;
- .left {
- display: flex;
- justify-content: flex-start;
- align-items: flex-start;
- img {
- height: 25px;
- width: 25px;
- }
- .middle {
- .title,
- .overall,
- .trend {
- display: flex;
- justify-content: flex-start;
- align-items: center;
- padding-left: 13px;
- span,
- p {
- font-size: 18px;
- font-family: Source Han Sans CN;
- font-weight: 400;
- color: #8d8d8d;
- line-height: 30px;
- }
- }
- .title {
- span {
- padding-right: 20px;
- }
- p {
- color: #282828;
- }
- }
- .overall {
- display: flex;
- justify-content: flex-start;
- align-items: flex-start;
- width: 100%;
-
- .left {
- flex-direction: column;
- p {
- padding-left: 20px;
- font-weight: bold;
- }
- }
- .right {
- img {
- height: 15px;
- width: 9px;
- }
- }
- }
- .trend {
- align-items: flex-start;
- text-align: left;
- }
- }
- }
- .right {
- img {
- width: 9px;
- height: 15px;
- }
- }
- }
- &.no-data {
- height: calc(100vh - 100px);
- width: 100%;
- @include center();
- flex-direction: column;
- img {
- height: 110px;
- width: 175px;
- }
- p {
- color: #999;
- font-size: 16px;
- padding: 20px 0 65px 0;
- }
- }
- }
- }
- }
- }
-
- .title {
- font-size: 16px;
- }
- .van-popup {
- flex: 1;
- max-height: 600px;
- width: 100%;
- background-color: $background;
- }
- .popup {
- /* height: 100%;
- width: 100%; */
- background-color: $background;
- padding: 20px;
- .item {
- flex: 1;
- padding: 10px;
- margin: 15px 0;
- text-align: left;
- font-size: 14px;
- background-color: #fff;
- border-radius: 10px;
- p {
- margin: 5px 0;
- }
- h5 {
- margin: 5px 0;
- font-size: 16px;
- }
- &.first {
- padding-top: 0;
- }
- &.science-tips {
- .tips {
- width: 60px;
- height: 20px;
- color: #fff;
- @include center();
- background-color: red;
- border-top-left-radius: 20px;
- border-top-right-radius: 15px;
- border-bottom-right-radius: 15px;
- }
- }
- }
- .van-button {
- height: 40px;
- background-color: $newBlue;
- color: #fff;
- border-radius: 20px;
- }
- }
- }
|