美化了样式
This commit is contained in:
@ -1,134 +1,169 @@
|
||||
/* pages/course/courseOrderList/courseOrderList.wxss */
|
||||
/* ===== 页面与滚动 ===== */
|
||||
.page {
|
||||
background: #f7f7f7;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.mt-17 {
|
||||
margin-top: 31.88rpx;
|
||||
.content {
|
||||
flex: 1;
|
||||
padding: 24rpx 24rpx; /* 统一外边距 */
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.ml-37 {
|
||||
margin-left: 92.38rpx;
|
||||
}
|
||||
.ml-11 {
|
||||
margin-left: 20.63rpx;
|
||||
|
||||
.no-scrollbar::-webkit-scrollbar {
|
||||
width: 0;
|
||||
height: 0;
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* 遮罩 */
|
||||
.page-mask {
|
||||
position: fixed;
|
||||
top: 0; left: 0;
|
||||
width: 100%; height: 100%;
|
||||
background-color: rgba(0, 0, 0, 0.3);
|
||||
inset: 0;
|
||||
background-color: rgba(0, 0, 0, 0.35);
|
||||
z-index: 9999;
|
||||
}
|
||||
.page {
|
||||
padding: 26.25rpx 0 50.63rpx;
|
||||
background-color: #f8f8f8;
|
||||
width: 100%;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
height: 100%;
|
||||
}
|
||||
.group_1 {
|
||||
margin-left: 20.63rpx;
|
||||
margin-right: 18.77rpx;
|
||||
}
|
||||
.list-item {
|
||||
padding-left: 22.5rpx;
|
||||
padding-right: 3.51rpx;
|
||||
filter: drop-shadow(0rpx 3.75rpx 3.75rpx #00000040);
|
||||
background-color: #ffffff;
|
||||
border-radius: 9.66rpx;
|
||||
}
|
||||
.list-item:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
.group {
|
||||
padding: 32.51rpx 15rpx 25.82rpx 0;
|
||||
border-bottom: solid 1.88rpx #e3e3e3;
|
||||
|
||||
/* ===== 空状态 ===== */
|
||||
.empty {
|
||||
padding: 100rpx 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
color: #999999;
|
||||
}
|
||||
.empty-img { width: 280rpx; height: 280rpx; margin-bottom: 20rpx; }
|
||||
.empty-text { font-size: 28rpx; }
|
||||
|
||||
/* ===== 卡片通用 ===== */
|
||||
.card {
|
||||
background: #ffffff;
|
||||
border-radius: 16rpx;
|
||||
padding: 24rpx;
|
||||
box-shadow: 0 8rpx 24rpx rgba(0,0,0,0.05);
|
||||
}
|
||||
.card + .card { margin-top: 20rpx; }
|
||||
|
||||
/* ===== 列表项排版 ===== */
|
||||
.order-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16rpx;
|
||||
}
|
||||
|
||||
/* 顶部行:订单号 + 状态 */
|
||||
.topline {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16rpx;
|
||||
}
|
||||
.font {
|
||||
font-size: 26.25rpx;
|
||||
font-family: SourceHanSansCN;
|
||||
line-height: 24.17rpx;
|
||||
color: #696969;
|
||||
.order-no {
|
||||
font-size: 26rpx;
|
||||
color: #666666;
|
||||
}
|
||||
.text {
|
||||
line-height: 24.02rpx;
|
||||
|
||||
.status-badge {
|
||||
height: 40rpx;
|
||||
padding: 0 18rpx;
|
||||
border-radius: 999rpx;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.font_2 {
|
||||
font-size: 26.25rpx;
|
||||
font-family: SourceHanSansCN;
|
||||
line-height: 24.17rpx;
|
||||
color: #f84947;
|
||||
.status-text {
|
||||
font-size: 24rpx;
|
||||
font-weight: 600;
|
||||
}
|
||||
.font_3 {
|
||||
.status-pending { background: #fff6e6; color: #ff8d1a; } /* 待支付:主题橙 */
|
||||
.status-success { background: #e9fbef; color: #12b05b; } /* 已/成功:绿色 */
|
||||
.status-default { background: #f0f0f0; color: #666666; } /* 其他:灰 */
|
||||
|
||||
/* 课程名称 */
|
||||
.course-name {
|
||||
font-size: 30rpx;
|
||||
font-family: SourceHanSansCN;
|
||||
line-height: 35.63rpx;
|
||||
color: #000000;
|
||||
font-weight: 600;
|
||||
color: #1f1f1f;
|
||||
line-height: 44rpx;
|
||||
}
|
||||
.text_2 {
|
||||
margin-top: 25.69rpx;
|
||||
.ellipsis-2 {
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
}
|
||||
.font_4 {
|
||||
font-size: 30rpx;
|
||||
font-family: SourceHanSansCN;
|
||||
line-height: 24.17rpx;
|
||||
color: #3d3d3d;
|
||||
|
||||
/* 价格 + 倒计时 */
|
||||
.price-line {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16rpx;
|
||||
}
|
||||
.text_3 {
|
||||
margin-top: 58.09rpx;
|
||||
line-height: 22.76rpx;
|
||||
margin-right: 22rpx; /* 向左移动:增加右侧间距 */
|
||||
.amount {
|
||||
font-size: 34rpx;
|
||||
color: #ff5a1a; /* 与你的小程序橙色系统一 */
|
||||
font-weight: 700;
|
||||
}
|
||||
.font_5 {
|
||||
font-size: 26.25rpx;
|
||||
font-family: SourceHanSansCN;
|
||||
line-height: 26.32rpx;
|
||||
color: #f84947;
|
||||
|
||||
.countdown-pill {
|
||||
background: #fff4f2;
|
||||
border: 1rpx solid #ffd6cc;
|
||||
padding: 0 16rpx;
|
||||
height: 40rpx;
|
||||
border-radius: 999rpx;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
}
|
||||
.text_4 {
|
||||
margin-right: 7.13rpx;
|
||||
margin-top: 34.91rpx;
|
||||
font-size: 28.13rpx;
|
||||
.countdown-text {
|
||||
font-size: 22rpx;
|
||||
color: #ff5a1a;
|
||||
}
|
||||
.group_2 {
|
||||
margin-right: 20.87rpx;
|
||||
margin-top: 30.30rpx;
|
||||
padding: 15.94rpx 0 17.81rpx;
|
||||
border-top: solid 1.88rpx #e3e3e3;
|
||||
|
||||
/* 底部行:时间 + 操作区 */
|
||||
.bottomline {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16rpx;
|
||||
padding-top: 8rpx;
|
||||
border-top: 1rpx dashed #f0f0f0;
|
||||
}
|
||||
.font_6 {
|
||||
font-size: 22.5rpx;
|
||||
font-family: SourceHanSansCN;
|
||||
line-height: 26.25rpx;
|
||||
color: #a1a1a1;
|
||||
.ctime {
|
||||
font-size: 24rpx;
|
||||
color: #888888;
|
||||
}
|
||||
/* .text_5 {
|
||||
width: 206.25rpx;
|
||||
} */
|
||||
.text-wrapper {
|
||||
padding: 10.8rpx 0 8.16rpx;
|
||||
background-color: #ffffff;
|
||||
border-radius: 9.38rpx;
|
||||
width: 142.5rpx;
|
||||
height: 46.88rpx;
|
||||
border: solid 1.88rpx #ff8d1a;
|
||||
|
||||
.actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16rpx;
|
||||
}
|
||||
.font_7 {
|
||||
font-size: 26.25rpx;
|
||||
font-family: SourceHanSansCN;
|
||||
line-height: 24.17rpx;
|
||||
color: #ff8d1a;
|
||||
|
||||
/* 按钮 */
|
||||
.btn {
|
||||
height: 64rpx;
|
||||
min-width: 180rpx;
|
||||
padding: 0 24rpx;
|
||||
border-radius: 999rpx;
|
||||
font-size: 26rpx;
|
||||
font-weight: 600;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.text-wrapper_2 {
|
||||
padding: 11.89rpx 0 8.94rpx;
|
||||
background-color: #ff8d1a;
|
||||
border-radius: 9.38rpx;
|
||||
width: 140.63rpx;
|
||||
height: 45rpx;
|
||||
.btn-ghost {
|
||||
background: #ffffff;
|
||||
color: #333333;
|
||||
border: 2rpx solid #e6e6e6;
|
||||
}
|
||||
.font_8 {
|
||||
font-size: 26.25rpx;
|
||||
font-family: SourceHanSansCN;
|
||||
line-height: 24.17rpx;
|
||||
.btn-primary {
|
||||
background: linear-gradient(180deg, #ffa64a 0%, #ff8d1a 100%);
|
||||
color: #ffffff;
|
||||
box-shadow: 0 6rpx 14rpx rgba(255, 141, 26, 0.25);
|
||||
}
|
||||
|
||||
/* ===== 迁移提示:以下旧的散装类可删除(如无外部依赖) ===== */
|
||||
/* .mt-17, .ml-37, .ml-11, .group_1, .list-item, .group, .font*, .text* 等 */
|
||||
|
Reference in New Issue
Block a user