Files
sgy-web/pages/user/index.wxss
2023-06-21 17:14:39 +08:00

451 lines
6.8 KiB
Plaintext

page {
background-color: #f4f4f6;
}
/* 头部 */
.userTop {
background-color: #5283ea;
height: 380rpx;
position: relative;
}
.userTop.active {
height: 320rpx;
}
.userTop-url {
height: 190rpx;
position: relative;
}
.userTop-back,
.userTop-cont {
position: absolute;
left: 0;
width: 100%;
}
.userTop-back {
height: 100%;
bottom: 0;
}
.userTop-cont {
padding: 40rpx 60rpx;
box-sizing: border-box;
display: flex;
}
.userTop-head {
width: 110rpx;
height: 110rpx;
border: 4rpx solid #dae6ff;
background-color: #ffffff;
position: relative;
border-radius: 50%;
}
.userTop-head image {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
border-radius: 50%;
}
.userTop-name {
line-height: 110rpx;
color: #ffffff;
font-size: 38rpx;
padding-left: 40rpx;
box-sizing: border-box;
display: flex;
}
.userTop-name-vip {
width: 140rpx;
margin-left: 20rpx;
margin-top: 38rpx;
}
.userTop-head-vip{
position: absolute;
bottom: -16rpx;
left: 18%;
font-size: 24rpx;
color: #ffffff;
height: 32rpx;
line-height: 32rpx;
width: 64%;
text-align: center;
border-radius: 80rpx;
background-image: linear-gradient(to right, #ffa340, #ff7707);
}
.bar {
padding: 0 60rpx;
display: flex;
}
.barTips {
display: flex;
line-height: 38rpx;
color: #ffffff;
}
.barTips-center {
line-height: 54rpx;
}
.barTips-name {
flex: 1;
font-size: 26rpx;
}
.barTips-center .barTips-name {
font-weight: 600;
font-size: 28rpx;
}
.barTips-name text {
font-weight: 600;
padding: 0 5rpx;
}
.barTips-text {
font-size: 24rpx;
opacity: .8;
}
.barCont {
width: calc(100% - 170rpx);
}
.barBack {
width: 100%;
height: 6rpx;
position: relative;
border-radius: 200rpx;
margin-top: 15rpx;
}
.barBack::after {
position: absolute;
content: '';
left: 0;
top: 0;
height: 100%;
width: 100%;
background-color: #ffffff;
border-radius: 200rpx;
opacity: .5;
}
.barBack text {
position: absolute;
content: '';
left: 0;
top: 0;
height: 100%;
background-color: #ffffff;
border-radius: 100rpx;
opacity: 1;
}
.barBtn {
background-color: #ffffff;
border-radius: 100rpx;
border: 2rpx solid #ffffff;
width: 120rpx;
text-align: center;
margin-left: 40rpx;
color: #5283ea;
font-size: 24rpx;
height: 54rpx;
line-height: 54rpx;
}
.barBtn-active {
width: 180rpx;
}
.barBtn.active {
opacity: .8;
color: #999;
}
/* 主内容 */
.userCont {
width: 100%;
position: absolute;
top: 285rpx;
padding: 0 30rpx 30rpx;
box-sizing: border-box;
}
.userCont.active {
top: 210rpx;
}
/* 订单 */
.userOrder {
padding: 0 30rpx;
box-sizing: border-box;
width: 100%;
}
.userOrder-cont {
padding: 30rpx 0;
box-sizing: border-box;
border-radius: 20rpx 20rpx 0 0;
background-image: linear-gradient(to top, #eef5ff 5%, #ffffff 90%);
}
.userOrder-title {
display: flex;
margin-bottom: 30rpx;
line-height: 48rpx;
padding: 0 30rpx;
}
.userOrder-title-name {
flex: 1;
font-size: 34rpx;
}
.userOrder-title-more {
color: #a6a7ab;
font-size: 28rpx;
display: flex;
}
.userOrder-title-arrow {
width: 42rpx;
height: 42rpx;
margin-top: 3rpx;
}
.userOrder-list {
display: flex;
}
.userOrder-item {
flex: 4;
text-align: center;
position: relative;
}
.userOrder-item-name {
font-size: 26rpx;
margin-top: 5rpx;
color: #868686;
}
.userOrder-item-icon {
width: 42rpx;
height: 42rpx;
}
.userOrder-item-number {
border-radius: 50%;
color: #ffffff;
background-color: #ff9951;
position: absolute;
top: -15rpx;
right: 40rpx;
font-size: 24rpx;
width: 30rpx;
height: 30rpx;
line-height: 30rpx;
border: 4rpx solid #ffffff;
}
/* 入口 */
.entry {
background-color: #ffffff;
border-radius: 0 0 20rpx 20rpx;
padding: 30rpx 0 0;
box-sizing: border-box;
flex-wrap: wrap;
justify-content: flex-start;
width: 100%;
}
.entry-item {
width: 25%;
display: inline-block;
text-align: center;
font-size: 28rpx;
margin-bottom: 40rpx;
}
.entry-item-img {
width: 56rpx;
height: 56rpx;
display: block;
margin: 0 auto 10rpx;
}
.entry-item-name {
color: #313131;
}
/* 常用工具 */
.tool {
background-color: #ffffff;
border-radius: 20rpx;
padding: 30rpx 0 30rpx 30rpx;
box-sizing: border-box;
margin-top: 30rpx;
}
.tool-title {
margin-bottom: 30rpx;
line-height: 48rpx;
font-size: 34rpx;
}
.tool-list {
margin-top: 50rpx;
}
.tool-item {
display: flex;
padding-bottom: 35rpx;
line-height: 48rpx;
margin-bottom: 35rpx;
border-bottom: 2rpx solid #e1e1e1;
position: relative;
}
.tool-item.btn{
background-color: transparent;
font-weight: normal;
width: 100% !important;
padding: 0 0 40rpx !important;
}
.tool-item.btn::after{
border: none;
}
.tool-item:last-child {
border: none;
margin: 0;
padding-bottom: 15rpx;
}
.tool-item-img {
width: 48rpx;
height: 48rpx;
margin-right: 20rpx;
}
.tool-item-name {
color: #434343;
}
.tool-item-arrow {
width: 48rpx;
height: 48rpx;
position: absolute;
right: 30rpx;
}
.tool-item-code {
position: absolute;
right: 30rpx;
color: #ff9951;
font-size: 28rpx;
display: flex;
}
.tool-item-copy {
height: 34rpx;
line-height: 34rpx;
border: 2rpx solid #ff9951;
padding: 0 15rpx;
border-radius: 5rpx;
margin-left: 15rpx;
font-size: 26rpx;
margin-top: 4rpx;
}
/* 推荐人弹出 */
.parentEject {
position: fixed;
width: 100vw;
height: 100vh;
left: 0;
top: 0;
background-color: rgba(0, 0, 0, .6);
z-index: 1000;
display: none;
}
.parentEject.active{
display: block;
}
.parentPop {
width: 80%;
position: fixed;
left: 10%;
top: calc(50% - 200rpx);
z-index: 10001;
height: 400rpx;
display: none;
overflow: hidden;
}
.parentPop.active{
display: block;
}
.parentPop-back,
.parentPop-cont {
height: 320rpx;
position: absolute;
left: 0;
top: 0;
border-radius: 40rpx;
width: 100%;
}
.parentPop-cont {
padding: 60rpx;
box-sizing: border-box;
}
.parentPop-close {
width: 50rpx;
left: calc(50% - 25rpx);
position: absolute;
bottom: 10rpx;
}
.parentPop-img {
width: 220rpx;
position: absolute;
right: 40rpx;
top: 40rpx;
}
.parentPop-head {
width: 94rpx;
height: 94rpx;
border-radius: 100%;
border: 4rpx solid #ffffff;
}
.parentPop-nick {
margin: 10rpx 0 15rpx;
font-weight: 600;
color: #214b9b;
font-size: 32rpx;
}
.parentPop-user {
color: #666666;
}