6 changed files with 587 additions and 484 deletions
@ -1,236 +1,327 @@ |
|||||
/* pages/user/user.wxss */ |
/* pages/user/user.wxss */ |
||||
page { |
page { |
||||
background: #EDEDED; |
background: #F7F7F7; |
||||
|
padding-bottom: 20rpx; |
||||
} |
} |
||||
.top-box { |
|
||||
padding: 0 30rpx; |
.bg { |
||||
display: flex; |
min-height: 100vh; |
||||
align-items: center; |
} |
||||
justify-content: space-between; |
|
||||
color: #fff; |
/* 顶部背景区域 */ |
||||
height: 180rpx; |
.top-background { |
||||
|
width: 100%; |
||||
|
height: 480rpx; /* 对应 H5 的 6.5rem 左右 */ |
||||
position: relative; |
position: relative; |
||||
|
overflow: hidden; |
||||
|
} |
||||
|
|
||||
|
.bg-img { |
||||
|
width: 100%; |
||||
|
height: 100%; |
||||
|
position: absolute; |
||||
|
top: 0; |
||||
|
left: 0; |
||||
|
z-index: 1; |
||||
|
} |
||||
|
|
||||
|
/* 顶部遮罩 */ |
||||
|
.top-background::after { |
||||
|
content: ''; |
||||
|
position: absolute; |
||||
|
top: 0; |
||||
|
left: 0; |
||||
|
width: 100%; |
||||
|
height: 100%; |
||||
|
background: rgba(0,0,0,0.25); |
||||
|
z-index: 2; |
||||
} |
} |
||||
.topbg { |
|
||||
|
/* 用户信息 */ |
||||
|
.user-top-new { |
||||
position: absolute; |
position: absolute; |
||||
|
top: 150rpx; /* 根据导航栏高度调整 */ |
||||
|
left: 0; |
||||
width: 100%; |
width: 100%; |
||||
z-index: -1; |
z-index: 3; |
||||
|
padding: 0 40rpx; |
||||
|
box-sizing: border-box; |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
} |
} |
||||
.top-box .headimg { |
|
||||
width: 100rpx; |
.avatar-box { |
||||
height: 100rpx; |
width: 135rpx; |
||||
|
height: 135rpx; |
||||
border-radius: 50%; |
border-radius: 50%; |
||||
|
border: 4rpx solid rgba(255,255,255,0.9); |
||||
|
overflow: hidden; |
||||
|
margin-right: 30rpx; |
||||
flex-shrink: 0; |
flex-shrink: 0; |
||||
margin-right: 20rpx; |
|
||||
} |
} |
||||
.userinfo { |
|
||||
|
.headimg { |
||||
|
width: 100%; |
||||
|
height: 100%; |
||||
|
} |
||||
|
|
||||
|
.info-text { |
||||
flex: 1; |
flex: 1; |
||||
font-size: 24rpx; |
color: #fff; |
||||
} |
} |
||||
.username { |
|
||||
|
.name-row { |
||||
display: flex; |
display: flex; |
||||
align-items: center; |
align-items: center; |
||||
font-size: 36rpx; |
|
||||
font-weight: bold; |
|
||||
margin-bottom: 15rpx; |
margin-bottom: 15rpx; |
||||
} |
} |
||||
.username image { |
|
||||
width: 31rpx; |
.nickname { |
||||
margin-left: 20rpx; |
font-size: 37rpx; |
||||
|
font-weight: bold; |
||||
|
margin-right: 15rpx; |
||||
|
max-width: 350rpx; |
||||
|
display: inline-block; |
||||
} |
} |
||||
.user-box { |
|
||||
margin: 0 30rpx; |
|
||||
margin-bottom: 20rpx; |
|
||||
background: white; |
|
||||
border-radius: 20rpx; |
|
||||
padding: 0rpx 20rpx; |
|
||||
font-size: 29rpx; |
|
||||
color: #333; |
|
||||
|
|
||||
|
.gender-icon { |
||||
|
width: 34rpx; |
||||
|
height: 34rpx; |
||||
} |
} |
||||
.user-box-top { |
|
||||
|
.id-row { |
||||
|
font-size: 28rpx; |
||||
|
opacity: 0.9; |
||||
|
} |
||||
|
|
||||
|
.arrow-right { |
||||
|
padding: 15rpx; |
||||
|
} |
||||
|
|
||||
|
/* 主容器 */ |
||||
|
.main-container { |
||||
|
position: relative; |
||||
|
margin-top: -80rpx; |
||||
|
z-index: 10; |
||||
|
padding: 20rpx 30rpx; |
||||
|
background: #f7f7f7; |
||||
|
border-radius: 33rpx 33rpx 0 0; |
||||
|
} |
||||
|
|
||||
|
/* 卡片通用样式 */ |
||||
|
.card-box { |
||||
|
background: #FFFFFF; |
||||
|
border-radius: 20rpx; |
||||
|
padding: 30rpx 20rpx; |
||||
|
margin-bottom: 20rpx; |
||||
|
box-shadow: 0 2rpx 10rpx rgba(0,0,0,0.02); |
||||
|
} |
||||
|
|
||||
|
/* 标题 */ |
||||
|
.title { |
||||
display: flex; |
display: flex; |
||||
align-items: center; |
|
||||
justify-content: space-between; |
justify-content: space-between; |
||||
padding: 30rpx 0; |
align-items: center; |
||||
height: 28rpx; |
margin-bottom: 30rpx; |
||||
|
padding: 0 10rpx; |
||||
} |
} |
||||
.all-text { |
|
||||
|
.main-title { |
||||
|
font-size: 34rpx; |
||||
|
font-weight: bold; |
||||
|
color: #333; |
||||
|
} |
||||
|
|
||||
|
.sub-title { |
||||
|
font-size: 26rpx; |
||||
|
color: #999; |
||||
display: flex; |
display: flex; |
||||
align-items: center; |
align-items: center; |
||||
font-size: 27rpx; |
|
||||
color: #888; |
|
||||
} |
} |
||||
.all-text .iconfont { |
|
||||
font-size: 24rpx; |
/* 订单部分 */ |
||||
|
.order-list { |
||||
|
display: flex; |
||||
|
justify-content: space-between; |
||||
|
margin-bottom: 30rpx; |
||||
|
padding: 0 10rpx; |
||||
} |
} |
||||
.user-order-types { |
|
||||
|
.order-item { |
||||
display: flex; |
display: flex; |
||||
|
flex-direction: column; |
||||
align-items: center; |
align-items: center; |
||||
flex-wrap: wrap; |
position: relative; |
||||
|
width: 20%; |
||||
} |
} |
||||
.user-order-type { |
|
||||
width: 25%; |
.order-item image { |
||||
text-align: center; |
width: 80rpx; |
||||
font-size: 27rpx; |
height: 80rpx; |
||||
margin-bottom: 30rpx; |
margin-bottom: 10rpx; |
||||
} |
} |
||||
.user-order-type image { |
|
||||
width: 60rpx; |
.order-item text { |
||||
height: 60rpx; |
font-size: 26rpx; |
||||
display: block; |
color: #333; |
||||
margin: 0 auto; |
|
||||
margin-bottom: 20rpx; |
|
||||
} |
} |
||||
.user-box-line { |
|
||||
line-height: 120rpx; |
.total { |
||||
border-bottom: 1rpx solid #d8d8d8; |
position: absolute; |
||||
|
min-width: 36rpx; |
||||
|
height: 36rpx; |
||||
|
line-height: 36rpx; |
||||
|
text-align: center; |
||||
|
background: linear-gradient(0deg, #FF8826, #FF2726); |
||||
|
border-radius: 18rpx; |
||||
|
font-size: 22rpx; |
||||
|
color: #FFFFFF; |
||||
|
right: 10rpx; |
||||
|
top: -10rpx; |
||||
|
padding: 0 6rpx; |
||||
} |
} |
||||
.user-box .user-box-line:last-child { |
|
||||
border-bottom: none; |
/* 待付款轮播 */ |
||||
|
.pay-swiper-box { |
||||
|
width: 100%; |
||||
|
height: 200rpx; |
||||
} |
} |
||||
|
|
||||
|
.swiper { |
||||
|
height: 100%; |
||||
|
} |
||||
|
|
||||
.pay { |
.dfkBox { |
||||
width: 648rpx; |
width: 100%; |
||||
height: 204rpx; |
height: 100%; |
||||
margin: 0 auto; |
|
||||
background: #F6F6F6; |
|
||||
padding: 18rpx; |
|
||||
box-sizing: border-box; |
box-sizing: border-box; |
||||
|
background: #F9F9F9; |
||||
|
padding: 20rpx; |
||||
|
display: flex; |
||||
|
border-radius: 10rpx; |
||||
|
} |
||||
|
|
||||
|
.prod-img { |
||||
|
width: 220rpx; |
||||
|
height: 160rpx; |
||||
|
margin-right: 20rpx; |
||||
|
border-radius: 8rpx; |
||||
|
flex-shrink: 0; |
||||
} |
} |
||||
|
|
||||
.s-box { |
.contentBox { |
||||
|
flex: 1; |
||||
display: flex; |
display: flex; |
||||
align-items: center; |
flex-direction: column; |
||||
width: 100%; |
justify-content: space-between; |
||||
height: 100%; |
|
||||
overflow: hidden; |
|
||||
} |
} |
||||
|
|
||||
.btn { |
.status-text { |
||||
width: 162rpx; |
|
||||
height: 56rpx; |
|
||||
background: #FB6E4D; |
|
||||
border-radius: 28rpx; |
|
||||
font-size: 32rpx; |
font-size: 32rpx; |
||||
font-family: PingFang SC; |
color: #333; |
||||
font-weight: 400; |
|
||||
color: #FFFFFF; |
|
||||
line-height: 56rpx; |
|
||||
text-align: center; |
|
||||
margin-top: 10rpx; |
|
||||
float:right; |
|
||||
} |
} |
||||
.swiper{ |
|
||||
height: 100% !important; |
.time-text { |
||||
|
font-size: 26rpx; |
||||
|
color: #666; |
||||
} |
} |
||||
.box-r{ |
|
||||
margin-left: 30rpx; |
.orderBtn { |
||||
width: 388rpx; |
width: 150rpx; |
||||
|
height: 52rpx; |
||||
|
background: #FB6E4D; |
||||
|
border-radius: 26rpx; |
||||
|
text-align: center; |
||||
|
line-height: 52rpx; |
||||
|
font-size: 26rpx; |
||||
|
color: #FFFFFF; |
||||
|
align-self: flex-end; |
||||
} |
} |
||||
.wpay{ |
|
||||
|
|
||||
font-size: 32rpx; |
/* 团购订单行 */ |
||||
font-family: PingFang SC; |
.group-order-row { |
||||
font-weight: 400; |
display: flex; |
||||
color: #333333; |
justify-content: space-between; |
||||
|
align-items: center; |
||||
|
padding: 30rpx 30rpx; |
||||
|
} |
||||
|
|
||||
|
.group-order-row .left { |
||||
|
display: flex; |
||||
|
align-items: center; |
||||
} |
} |
||||
.time{ |
|
||||
font-size: 28rpx; |
.group-icon { |
||||
font-family: PingFang SC; |
width: 40rpx; |
||||
font-weight: 400; |
height: 40rpx; |
||||
color: #666666; |
margin-left: 15rpx; |
||||
margin-top: 10rpx; |
|
||||
} |
} |
||||
.mask { |
|
||||
position: fixed; |
/* 常用功能 */ |
||||
top: 0; |
.section-box { |
||||
right: 0; |
padding: 20rpx 20rpx 0; |
||||
bottom: 0; |
|
||||
left: 0; |
|
||||
background-color: rgba(0, 0, 0, 0.5); |
|
||||
z-index: 999; |
|
||||
} |
|
||||
.model{ |
|
||||
width: 561rpx; |
|
||||
min-height: 449rpx; |
|
||||
background: #FFFFFF; |
|
||||
border-radius: 13rpx; |
|
||||
position: absolute; |
|
||||
box-sizing: border-box; |
box-sizing: border-box; |
||||
|
background: #FFFFFF; |
||||
|
border-radius: 20rpx; |
||||
|
margin-bottom: 20rpx; |
||||
|
} |
||||
|
|
||||
} |
.section-title { |
||||
.model-title{ |
|
||||
text-align: center; |
|
||||
font-size: 34rpx; |
font-size: 34rpx; |
||||
font-family: PingFang SC; |
|
||||
font-weight: bold; |
font-weight: bold; |
||||
color: #333333; |
color: #333; |
||||
margin-top: 32rpx; |
margin: 10rpx 0 20rpx 10rpx; |
||||
box-sizing: border-box; |
} |
||||
|
|
||||
} |
.common-func-grid { |
||||
.model-content{ |
|
||||
display: flex; |
display: flex; |
||||
flex-direction: column; |
justify-content: space-between; |
||||
align-items: center; |
|
||||
justify-content: center; |
|
||||
flex-wrap: wrap; |
flex-wrap: wrap; |
||||
margin-top: 100rpx; |
padding-bottom: 20rpx; |
||||
font-size: 34rpx; |
} |
||||
font-family: PingFang SC; |
|
||||
font-weight: 500; |
.func-item { |
||||
color: #333333; |
width: 315rpx; |
||||
} |
height: 110rpx; |
||||
.btn-list{ |
margin-bottom: 20rpx; |
||||
height: 106rpx; |
background-size: 100% 100%; |
||||
width: 100%; |
background-repeat: no-repeat; |
||||
position: absolute; |
} |
||||
bottom: 0; |
|
||||
border-top: 1rpx solid rgba(216, 216, 216, .99); |
/* 更多服务 */ |
||||
padding: 10rpx; |
.more-service-grid { |
||||
box-sizing: border-box; |
|
||||
display: flex; |
display: flex; |
||||
justify-content: space-between; |
flex-wrap: wrap; |
||||
|
padding-bottom: 20rpx; |
||||
|
} |
||||
|
|
||||
|
.service-item { |
||||
|
width: 25%; |
||||
|
display: flex; |
||||
|
flex-direction: column; |
||||
align-items: center; |
align-items: center; |
||||
|
margin: 20rpx 0; |
||||
|
} |
||||
|
|
||||
} |
.service-icon { |
||||
.model-btn{ |
width: 50rpx; |
||||
width: 50%; |
height: 50rpx; |
||||
text-align: center; |
margin-bottom: 15rpx; |
||||
height: 86rpx; |
} |
||||
line-height: 86rpx; |
|
||||
|
|
||||
font-size: 34rpx; |
.service-name { |
||||
font-family: PingFang SC; |
font-size: 26rpx; |
||||
font-weight: 500; |
color: #333; |
||||
color: #333333; |
|
||||
} |
|
||||
|
|
||||
button{ |
|
||||
margin:0; |
|
||||
padding:0; |
|
||||
border-radius:0; |
|
||||
border:none; |
|
||||
background-color:transparent; |
|
||||
} |
|
||||
|
|
||||
button::after{ |
|
||||
border: none; |
|
||||
} |
|
||||
|
|
||||
.bottom-intro{ |
|
||||
width: 100%; |
|
||||
padding: 75rpx; |
|
||||
font-family: PingFang-SC, PingFang-SC; |
|
||||
font-weight: 500; |
|
||||
font-size: 25rpx; |
|
||||
color: #999999; |
|
||||
line-height: 40rpx; |
|
||||
text-align: center; |
text-align: center; |
||||
box-sizing: border-box; |
width: 100%; |
||||
} |
line-height: 1.3; |
||||
|
} |
||||
|
|
||||
|
/* 底部文字 */ |
||||
|
.bottom-intro { |
||||
|
padding: 40rpx 0; |
||||
|
text-align: center; |
||||
|
font-size: 24rpx; |
||||
|
color: #999; |
||||
|
line-height: 36rpx; |
||||
|
} |
||||
|
|||||
Loading…
Reference in new issue