170 lines
3.2 KiB
Plaintext
170 lines
3.2 KiB
Plaintext
/* ===== 页面与滚动 ===== */
|
|
.page {
|
|
background: #f7f7f7;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.content {
|
|
flex: 1;
|
|
padding: 24rpx 24rpx; /* 统一外边距 */
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.no-scrollbar::-webkit-scrollbar {
|
|
width: 0;
|
|
height: 0;
|
|
display: none;
|
|
}
|
|
|
|
/* 遮罩 */
|
|
.page-mask {
|
|
position: fixed;
|
|
inset: 0;
|
|
background-color: rgba(0, 0, 0, 0.35);
|
|
z-index: 9999;
|
|
}
|
|
|
|
/* ===== 空状态 ===== */
|
|
.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;
|
|
}
|
|
.order-no {
|
|
font-size: 26rpx;
|
|
color: #666666;
|
|
}
|
|
|
|
.status-badge {
|
|
height: 40rpx;
|
|
padding: 0 18rpx;
|
|
border-radius: 999rpx;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
.status-text {
|
|
font-size: 24rpx;
|
|
font-weight: 600;
|
|
}
|
|
.status-pending { background: #fff6e6; color: #ff8d1a; } /* 待支付:主题橙 */
|
|
.status-success { background: #e9fbef; color: #12b05b; } /* 已/成功:绿色 */
|
|
.status-default { background: #f0f0f0; color: #666666; } /* 其他:灰 */
|
|
|
|
/* 课程名称 */
|
|
.course-name {
|
|
font-size: 30rpx;
|
|
font-weight: 600;
|
|
color: #1f1f1f;
|
|
line-height: 44rpx;
|
|
}
|
|
.ellipsis-2 {
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* 价格 + 倒计时 */
|
|
.price-line {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16rpx;
|
|
}
|
|
.amount {
|
|
font-size: 34rpx;
|
|
color: #ff5a1a; /* 与你的小程序橙色系统一 */
|
|
font-weight: 700;
|
|
}
|
|
|
|
.countdown-pill {
|
|
background: #fff4f2;
|
|
border: 1rpx solid #ffd6cc;
|
|
padding: 0 16rpx;
|
|
height: 40rpx;
|
|
border-radius: 999rpx;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
}
|
|
.countdown-text {
|
|
font-size: 22rpx;
|
|
color: #ff5a1a;
|
|
}
|
|
|
|
/* 底部行:时间 + 操作区 */
|
|
.bottomline {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16rpx;
|
|
padding-top: 8rpx;
|
|
border-top: 1rpx dashed #f0f0f0;
|
|
}
|
|
.ctime {
|
|
font-size: 24rpx;
|
|
color: #888888;
|
|
}
|
|
|
|
.actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16rpx;
|
|
}
|
|
|
|
/* 按钮 */
|
|
.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;
|
|
}
|
|
.btn-ghost {
|
|
background: #ffffff;
|
|
color: #333333;
|
|
border: 2rpx solid #e6e6e6;
|
|
}
|
|
.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* 等 */
|