adultDeviceApp/assets/common.scss

1572 lines
38 KiB
SCSS

/*每个页面公共css */
page {
font-family: "Microsoft YaHei";
font-size: 14px;
background-color: #f7f7f7;
color: #333;
}
.f-r {
float: right;
}
.f-l {
float: left;
}
.f-12 {
font-size: 12px;
}
.f-14 {
font-size: 14px !important;
}
.f-15 {
font-size: 15px !important;
}
.f-16 {
font-size: 16px;
}
.f-18 {
font-size: 18px !important;
}
.f-20 {
font-size: 20px !important;
}
.f-22 {
font-size: 22px !important;
}
.f-24 {
font-size: 24px !important;
}
.mt-5 {
margin-top: 5px !important;
}
.mt-10 {
margin-top: 10px !important;
}
.mt-15 {
margin-top: 15px !important;
}
.mt-20 {
margin-top: 20px !important;
}
.mb-10 {
margin-bottom: 10px !important;
}
.mb-15 {
margin-bottom: 15px !important;
}
.ml-10 {
margin-left: 10px !important;
}
.ml-15 {
margin-left: 15px !important;
}
.mr-10 {
margin-right: 10px !important;
}
.mr-15 {
margin-right: 15px !important;
}
.pr-10 {
padding-right: 10px !important;
}
.pr-15 {
padding-right: 15px !important;
}
.text_c {
text-align: center
}
.text_l {
text-align: left !important;
}
.text_r {
text-align: right !important;
}
// .borderT15 {
// border-top: 15px solid #f7f7f7;
// }
.border-bottom {
border-bottom: 1px solid #f7f7f7;
}
.border-top {
border-top: 1px solid #f7f7f7;
}
.border-left {
border-left: 1px solid #f7f7f7;
}
.border-right {
border-right: 1px solid #f7f7f7;
}
.borderRadius {
border-radius: 0px;
}
.box_shadow {
box-shadow: 0px 1px 5px 2px #dfe2e1fc;
}
.overflow {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.btn {
background: $btncolor;
width: 100%;
text-align: center;
color: #fff;
height: 35px;
line-height: 35px;
border-radius: 15px;
}
.content {
min-height: 100vh;
}
.headimage {
width: 50px;
height: 50px;
background: #fff;
border-radius: 50%;
border: 2px solid #fff;
}
.nolist {
height: 200px;
color: #dfdfdf;
display: flex;
justify-content: center;
align-items: center;
icon {
font-size: 100px;
}
}
.endtext {
width: 100%;
font-size: 12px;
text-align: center;
color: #999;
}
// 弹窗
.wrapper {
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
z-index: 999;
.bg {
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.4);
z-index: 99;
}
// 左侧
.wrapper_box {
width: 220px;
background-color: #fff;
z-index: 1000;
position: absolute;
height: 100vh;
.top {
width: 100%;
height: 90px;
color: #fff;
text-align: center;
background: $mainColor;
.image1 {
width: 50px;
height: 50px;
margin: auto;
border-radius: 50%;
margin-bottom: 16rpx;
}
view {
width: 100%;
display: block;
text-align: center;
margin: auto;
}
}
.drawerList {
position: relative;
top: 0;
left: 0;
flex-direction: column;
flex: 1;
justify-content: flex-end;
margin-bottom: 20rpx;
width: 220px;
height: calc(100vh - 100px);
overflow-y: scroll;
.drawerList_item {
background: #f7f7f7;
margin: 10px;
padding: 8px;
border-radius: 10px;
display: flex;
justify-content: space-between;
.image1 {
width: 45px;
height: 45px;
border-radius: 50%;
margin-right: 10px;
}
.overflow {
font-size: 27rpx;
color: #333;
}
.right {
width: 70%;
.dangqian {
font-size: 20rpx;
color: #fff;
padding: 1px 5px;
background-color: $btncolor;
text-align: center;
width: auto;
margin-left: 10px;
width: auto;
display: inline-block;
float: right;
height: 15px;
line-height: 15px;
border-radius: 3px;
}
.toggle {
background-color: #999;
}
}
.info {
margin-top: 10px;
background-color: #f3f3f3;
view {
float: left;
margin-right: 10px;
font-size: 24rpx;
color: #999;
}
}
.name {
width: 100%;
display: flex;
justify-content: space-between;
.overflow {
width: 60%;
}
}
}
.add {
margin: 15px;
background: $btncolor;
color: #fff;
height: 30px;
text-align: center;
font-size: 28px;
line-height: 30px;
border-radius: 20px;
}
}
}
// 信息
.edit {
width: 15rem;
height: auto;
background: #fff;
border-radius: 10px;
padding: 15px;
position: relative;
top: 15%;
margin: auto;
z-index: 99999;
overflow: hidden;
.title {
text-align: center;
width: 100%;
color: #333;
font-size: 18px;
font-weight: bold;
}
.editem {
position: relative;
display: flex;
font-size: 14px;
border-radius: 10px;
margin-top: 15px;
height: 40px;
justify-content: space-between;
background: #eee;
padding: 0px 10px;
align-items: center;
.radioimg {
font-size: 22px;
color: $btncolor;
}
.radio {
width: 50%;
text-align: right;
display: flex;
justify-content: center;
align-items: center;
}
.name {
width: 4rem;
color: #333;
}
.right {
width: 60%;
height: 40px;
line-height: 40px;
text-align: right;
display: flex;
justify-content: flex-end;
input {
margin-right: 10px;
height: 40px;
line-height: 40px;
text-align: left;
}
picker {
width: 100%;
text-align: left;
}
.uni-input {
position: absolute;
right: 30px;
top: 0;
left: 0;
height: 40px;
line-height: 40px;
text-align: right;
z-index: 9999;
}
}
.value {
position: relative;
z-index: 999;
width: 3rem;
text-align: center;
float: left;
margin-right: 10px;
}
.iconfont {
margin-left: 10px;
float: right;
display: flex;
}
}
.tips {
font-size: 0.75rem;
color: #999;
text-align: center;
margin-top: 15px;
margin-bottom: 20px;
display: flex;
}
}
}
/* 头部 */
.header-con {
position: fixed;
top: 0;
left: 0;
right: 0;
width: 100%;
z-index: 99;
height:95px;
background: #F9FAFC;
box-shadow: 0px 1px 5px 0px #dfdfdf;
.bg {
width: 180px;
height: 74.3px;
position: absolute;
bottom: 0;
right: 0;
margin-top: 15px;
}
.header,
.header2 {
display: flex;
justify-content: left;
padding: 10px;
align-items: center;
font-size: 14px;
position: relative;
z-index: 99;
color: #fff;
text {
padding: 3px 10px;
border: 1px solid #fff;
margin-right: 5px;
border-radius: 5px;
background: #fff;
color: #333;
}
.btn {
width: 25%;
margin: 10px 0px;
height: 32px;
line-height: 32px;
color: #fff;
text-align: center;
border-radius: 20px;
background-color: $greencolor;
}
}
.header2 {
justify-content: space-between;
margin-left: 20px;
margin-top: 25px;
}
.left {
width: 100%;
text-align: left;
display: flex;
margin-top: 5px;
align-items: center;
.name {
display: flex;
align-items: center;
font-weight: bold;
margin-bottom: 8px;
icon {
font-size: 20px;
}
text {
background: inherit;
max-width: 100%;
font-size: 16px;
margin-right: 10px;
border: none;
color: #fff;
padding: 0;
}
}
.age {
display: flex;
line-height: 20px;
color: #fff;
image {
width: 18px;
height: 18px;
border: none;
border-radius: 0;
}
view {
margin-right: 10px;
display: flex;
}
}
}
.right {
width: 50px;
right: 0;
height: 70px;
display: flex;
padding-right: 15px;
align-items: center;
justify-content: flex-end;
position: absolute;
image {
width: 18px;
height: 18px;
margin-top: 23px;
}
}
.celiang_r {
position: absolute;
width: 70px;
background: #fff;
color: #75DAD0;
right: 15px;
display: flex;
flex-wrap: wrap;
border-radius: 10px;
justify-content: center;
bottom: -30px;
padding: 5px 0;
box-shadow: 0px 1px 5px 2px #dfe2e1fc;
-webkit-animation-name: heart;
-webkit-animation-duration: 0.75s;
-webkit-animation-timing-function: linear;
-webkit-animation-iteration-count: 1;
image,.t-icon {
width: 50px;
height: 50px;
}
text {
display: inline-block;
width: 100%;
text-align: center;
font-size: 13px;
padding: 0;
border: none;
margin: 0;
}
}
@keyframes heart {
5% {
-webkit-transform: translateX(3px) rotate(2deg);
}
25% {
-webkit-transform: translateX(-3px) rotate(-2deg);
}
50% {
-webkit-transform: translateX(2px) rotate(1deg);
}
75% {
-webkit-transform: translateX(-2px) rotate(-1deg);
}
100% {
-webkit-transform: translateX(0px) rotate(0deg);
}
}
}
.header-con::after {
content: "";
width: 100px;
height: 132px;
position: absolute;
bottom: -45px;
right: -10px;
background: url(@/static/bg0.png) no-repeat;
background-size: 100% 100%;
opacity: 0.9;
}
// 趋势、
.TrendPage {
background-color: #f7f7f7;
padding: 15px;
.boxTime {
width: 100%;
display: flex;
justify-content: space-between;
font-size: 28rpx;
align-items: center;
.tow {
color: $btncolor;
border: 1px solid $btncolor;
padding: 0 5px;
font-size: 12px;
height: 25px;
line-height: 25px;
border-radius: 10px;
}
.style {
background: $btncolor;
color: #fff;
}
.iconfont {
font-size: 14px;
color: #666;
}
}
.listC {
width: 100%;
display: flex;
font-size: 14px;
border-radius: 15px;
margin-top: 15px;
height: 38px;
align-items: center;
background-color: #f7f7f7;
justify-content: space-between;
.name {
width: auto;
padding: 0 15px;
font-size: 14px;
text-align: center;
border-radius: 15px;
height: 35px;
line-height: 35px;
}
.active {
font-size: 14px;
border-radius: 15px;
color: #fff;
background-color: $btncolor;
}
}
.box {
padding: 0;
display: flex;
flex-wrap: wrap;
border-radius: 10px;
justify-content: space-between;
}
.blockC {
clear: both;
width: 100%;
height: 250px;
background-color: #fff;
}
.data {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
color: #666;
margin-top: 20px;
width: 100%;
.item {
width: 47.5%;
text-align: center;
font-size: 14px;
line-height: 35px;
background: #fff;
padding: 10px 0;
border-radius: 15px;
margin-bottom: 15px;
}
.val {
display: flex;
align-items: center;
font-size: 20px;
font-weight: 700;
justify-content: center;
color: #666;
text {
font-size: 14px;
font-weight: 500;
display: block;
margin-top: 3px;
margin-left: 3px;
}
}
.name {
display: flex;
align-items: center;
justify-content: center;
color: #999;
}
}
.data :nth-of-type(5).item {
height: 73px;
line-height: 73px;
.name {
font-weight: 700;
color: $btncolor;
}
}
}
//选择对比
.calendar {
background: #f7f7f7;
min-height: 100vh;
.box {
margin-bottom: 305px;
}
.list {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
margin: 15px;
align-items: center;
.item {
width: 100%;
height: auto;
background: #fff;
display: flex;
height: 40px;
justify-content: space-between;
padding: 10px 15px;
border-radius: 10px;
align-items: center;
text-align: center;
font-size: 16px;
font-weight: 700;
view {
width: 32%;
}
image {
width: 25px;
height: 25px;
}
text {
width: 100%;
font-size: 12px;
display: block;
color: #666;
text-align: center;
font-weight: 400;
}
.check {
width: 35px !important;
.icon-kongradio {
font-size: 22px;
color: #999;
}
.icon-radio {
font-size: 22px;
color: #FCA82D;
}
}
}
}
.time {
width: 100%;
font-size: 14px;
color: #666;
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
text {
font-size: 14px;
margin-top: 3px;
}
}
.bottom {
margin: 0;
width: auto;
position: fixed;
left: 0px;
right: 0px;
bottom: 0px;
z-index: 9;
padding: 0 10px 10px;
background: #fff;
border-radius: 0;
border-top: 1px solid #dfdfdf;
.btn {
width: auto;
margin: 10px 0 0;
}
.list {
margin: 10px 0;
height: 120rpx;
position: relative;
.item {
background: #F7F7F7;
}
.time {
float: left;
text-align: center;
justify-content: center;
color: #fea82d;
font-weight: 700;
width: 35%;
}
.check {
position: absolute;
right: -5px;
top: -5px;
width: 25px;
.icon-quxiao {
font-size: 20px;
color: #999;
}
}
}
}
.pkclass {
position: absolute;
width: 30px;
height: 30px;
background: $greencolor;
border-radius: 50%;
line-height: 27px;
text-align: center;
color: #fff;
font-size: 19px;
left: 30px;
top: 120rpx;
}
.btn.active {
border: none;
color: #333 !important;
background-color: #DFDFDF !important;
display: block;
border-radius: 10px;
}
}
// 对比详情
.pkconp {
background: #f7f7f7;
min-height: 100vh;
.header {
text-align: center;
background: #fff;
padding: 15px 15px 10px;
margin: 15px;
border-radius: 10px 10px 0 0;
display: flex;
align-items: center;
position: relative;
.name {
text-align: left;
}
image {
width: 55px;
height: 55px;
border-radius: 50%;
margin-right: 15px;
}
.pkclass {
position: absolute;
background: linear-gradient(to right, #ff99ae, #ffb2c2);
right: 15px;
padding: 0px 10px;
border-radius: 10px;
color: #fff;
height: 30px;
line-height: 30px;
font-size: 14px;
}
.top {
display: flex;
color: #999;
margin-top: 10px;
}
}
.box {
background: #ffff;
display: flex;
flex-wrap: wrap;
justify-content: space-around;
align-items: center;
padding: 15px 0;
margin: 15px;
border-radius: 0 0 10px 10px;
.item {
text-align: center;
color: #999;
width: 33.3%;
line-height: 26px;
border-right: 1px solid #f7f7f7;
box-sizing: border-box;
view {
font-size: 20px;
font-weight: 700;
color: #666;
}
}
}
.control {
background: #fff;
margin: 15px;
display: flex;
border: 1px solid #F0F0F0;
border-radius: 10px;
flex-wrap: wrap;
justify-content: space-between;
.title {
width: 100%;
margin: 10px;
display: flex;
justify-content: space-between;
view {
width: 22%;
text-align: center;
}
.name {
width: 33%;
}
}
.li {
display: flex;
margin: 0 10px;
justify-content: space-between;
height: 54px;
border-top: 1px solid #eee;
align-items: center;
width: 100%;
.name {
width: 33%;
display: flex;
align-items: center;
image {
width: 20px;
height: 20px;
margin-right: 5px;
}
}
.num {
width: 22%;
display: flex;
align-items: center;
justify-content: center;
image {
width: 40rpx;
height: 40rpx;
}
}
.f,
.f0 {
width: 22%;
text-align: center;
text {
display: block;
width: 100%;
color: #999999;
font-size: 11px;
}
}
.f0 {
text {
font-size: 12px;
}
}
}
}
.time {
border-top: 1px solid #f0f0f0;
width: 100%;
padding: 15px 15px 0;
margin-top: 5px;
display: flex;
justify-content: space-between;
.yuanxing {
float: left;
}
}
}
// 历史
.history {
width: 100%;
height: auto;
margin-top: 15px;
overflow: hidden;
.list {
width: 100%;
.item {
width: auto;
height: auto;
background: #fff;
padding: 5px 10px;
display: flex;
justify-content: space-between;
border-radius: 10px;
align-items: center;
text-align: center;
font-size: 32rpx;
font-weight: 700;
margin-bottom: 30rpx;
line-height: 40rpx;
text {
width: 100%;
font-size: 24rpx;
display: block;
color: #666;
text-align: center;
font-weight: 400;
}
.time {
font-size: 28rpx;
color: #666;
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
width: 29%;
icon {
width: 40rpx;
height: 40rpx;
margin-right: 5px;
}
text {
width: 100%;
font-size: 28rpx;
margin-top: 3px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
}
}
.leftChild {
view {
min-width: auto !important;
}
}
}
// 测量也
.weightPages {
.text {
width: 100%;
text-align: center;
font-size: 16px;
margin-top: 20px;
color: $btncolor;
}
.title {
width: 100%;
text-align: center;
height: 45px;
line-height: 45px;
font-size: 18px;
font-weight: bold;
}
.image {
text-align: center;
image {
width: 200px;
height: 300px;
margin: auto;
margin-top: 20px;
}
}
.tips {
width: auto;
margin-top: 25px;
padding-left: 20px;
line-height: 30px;
font-size: 12px;
color: #999;
text {
display: block;
}
}
.wrapper {
position: fixed;
top: 0;
bottom: 0;
right: 0;
left: 0;
z-index: 99;
display: flex;
align-items: center;
justify-content: center;
background-color: rgba(0, 0, 0, 0.4);
.Blue {
width: 75%;
padding: 15px;
background: #fff;
z-index: 999;
border-radius: 5px;
text-align: center;
line-height: 30px;
.h4 {
font-size: 16px;
font-weight: 700;
margin-bottom: 10px;
}
.Blue-box {
display: flex;
align-items: center;
text-align: left;
height: 40px;
line-height: 40px;
margin-bottom: 15px;
text {
font-size: 18px;
font-weight: 700;
margin: 0 5px;
color: $btncolor;
}
}
input {
width: 85px;
background: #f7f7f7;
padding: 7px 5px;
margin-right: 10px;
border-radius: 5px;
}
}
.Blue-btn {
width: 45%;
background: $btncolor;
border-radius: 5px;
font-size: 14px;
margin-top: 10px;
margin-bottom: 5px;
height: 35px;
line-height: 35px;
float: right;
color: #fff;
}
.Blue-close {
background: #dfdfdf !important;
float: left !important;
color: #333;
}
}
.btnGroup {
width: 100%;
display: flex;
.btnClose,
.baocun {
width: 150px;
background-color: $btncolor;
border: 1px solid #f7f7f7;
color: #fff;
text-align: center;
padding: 7px;
border-radius: 10px;
margin: 15px auto;
}
.btnClose {
background-color: #dfdfdf;
color: #fff;
}
}
}
// 报告页
.myinfoPage {
.box {
color: #999;
background: #fff;
position: relative;
.left {
text-align: center;
position: relative;
padding: 8px 15px 0;
.text {
width: 100%;
text-align: left;
display: inline-block;
margin-bottom: 10px;
}
.wrapper {
width: 70%;
height: 10px;
background: #dfdfdf;
border-radius: 15px;
position: relative;
z-index: 11;
.leftprogress {
width: 0;
background: $btncolor;
position: absolute;
height: 10px;
z-index: 9;
top: 0;
border-radius: 10px 0 0 10px;
}
}
.fen {
width: 20%;
position: absolute;
right: 0px;
top: -15px;
line-height: 60px;
view {
width: 45px;
height: 45px;
background: $btncolor;
border-radius: 50%;
line-height: 45px;
color: #fff;
font-weight: bold;
float: left;
font-size: 16px;
}
}
}
.right {
width: 100%;
display: flex;
flex-wrap: wrap;
padding-bottom: 8px;
justify-content: space-between;
.item {
width: 25%;
text-align: center;
margin-top: 20px;
font-size: 13px;
line-height: 25px;
text {
font-size: 18px;
color: #666;
margin-right: 5px;
display: inline-block;
font-weight: bold;
}
image {
width: 18px;
height: 18px;
margin-left: 5px;
}
}
}
}
.box1 {
background: #fff;
display: flex;
flex-wrap: wrap;
border-radius: 10px;
font-size: 14px;
position: relative;
margin: 0px 15px 0;
padding-bottom: 10px;
.list {
width: 100%;
display: flex;
justify-content: space-between;
color: #666;
padding: 0;
line-height: 50px;
align-items: center;
flex-wrap: wrap;
image,
.t-icon {
width: 18px !important;
height: 18px;
border: 2px solid #c7c7c7;
background-color: #c7c7c7;
border-radius: 50%;
margin-right: 5px;
}
.block {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
color: #666;
position: relative;
border-bottom: 1px solid #f7f7f7;
.level,
.val {
width: 25%;
}
.name {
width: 40%;
display: flex;
align-items: center;
}
.icon {
width: 20px;
text-align: right;
display: flex;
image {
width: 20px;
height: 20px;
}
}
}
.desc {
line-height: 20px;
text-align: left;
width: 100%;
height: auto;
overflow: hidden;
border-radius: 5px;
// margin: 10px auto;
font-size: 12px;
color: #999;
padding: 10px;
background: #f7f7f7;
}
}
.statuevue {
height: 35px;
position: relative;
width: 100%;
margin: 20px auto 10px;
.bi {
display: flex;
justify-content: space-between;
width: auto;
padding-top: 10px;
.peobox {
position: absolute;
top: -1px;
.xx {
width: 5px;
height: 5px;
border-radius: 50%;
background: #fff;
position: absolute;
z-index: 9;
border: 2px solid #1b2086;
top: -1px;
}
}
}
.item {
position: relative;
margin: 0;
flex: 1;
height: 5px;
color: #666;
font-size: 12px;
.span1 {
width: 100%;
text-align: center;
position: absolute;
top: -23px;
}
.span {
margin-top: 8px;
position: absolute;
right: -8px;
}
}
}
}
.yuanxing {
display: inline-block;
background: #f19601;
width: 8px;
height: 12px;
margin-right: 5px;
font-size: 32rpx;
}
.btnf {
font-size: 13px;
border-radius: 5px;
height: 22px;
margin: 0 10px 0 0;
line-height: 22px;
color: #fff;
font-weight: 400;
width: 44px !important;
text-align: center !important;
float: right;
}
.tivon {
display: flex;
justify-content: center;
align-content: center;
align-items: center;
.bianji {
width: 20px;
height: 20px;
margin-left: 5px;
}
}
.box1 :last-child.list {
.val {
width: 25% !important;
}
}
.kcalClass {
width: 100%;
text-align: center;
font-size: 16px;
line-height: 55px;
margin: -20px auto;
}
.yichang {
background: #ffe4be;
color: #ff4239;
padding: 5px;
text-align: center;
border-radius: 5px;
margin: 0 15px 10px;
}
}