Files
miniwx/pages/records/records.wxss
T
2026-04-18 22:15:11 +08:00

175 lines
2.5 KiB
Plaintext

/**records.wxss**/
page {
background-color: #f5f7fa;
min-height: 100vh;
}
.page {
padding-bottom: calc(32rpx + env(safe-area-inset-bottom));
}
/* 筛选标签 */
.tabs {
display: flex;
background: #fff;
padding: 16rpx 32rpx;
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.04);
position: sticky;
top: 0;
z-index: 10;
}
.tab {
flex: 1;
text-align: center;
font-size: 28rpx;
color: #666;
padding: 16rpx 0;
position: relative;
}
.tab-active {
color: #1890ff;
font-weight: 600;
}
.tab-active::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 48rpx;
height: 6rpx;
background: #1890ff;
border-radius: 3rpx;
}
/* 记录列表 */
.record-list {
padding: 24rpx 32rpx;
}
.record-card {
background: #fff;
border-radius: 20rpx;
padding: 32rpx;
margin-bottom: 24rpx;
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.04);
}
.record-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 24rpx;
padding-bottom: 20rpx;
border-bottom: 1rpx solid #f0f0f0;
}
.record-id {
font-size: 24rpx;
color: #999;
}
.status-tag {
font-size: 24rpx;
padding: 6rpx 20rpx;
border-radius: 20rpx;
font-weight: 500;
}
.status-pending {
background: rgba(250, 173, 20, 0.1);
color: #faad14;
}
.status-approved {
background: rgba(82, 196, 26, 0.1);
color: #52c41a;
}
.status-rejected {
background: rgba(255, 77, 79, 0.1);
color: #ff4d4f;
}
.status-cancelled {
background: rgba(0, 0, 0, 0.04);
color: #999;
}
.record-body {
margin-bottom: 8rpx;
}
.record-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12rpx 0;
}
.record-label {
font-size: 26rpx;
color: #999;
flex-shrink: 0;
}
.record-value {
font-size: 26rpx;
color: #333;
text-align: right;
margin-left: 32rpx;
}
.record-footer {
padding-top: 20rpx;
border-top: 1rpx solid #f0f0f0;
display: flex;
justify-content: flex-end;
}
.cancel-btn {
font-size: 26rpx;
color: #ff4d4f;
padding: 12rpx 32rpx;
border: 1rpx solid #ff4d4f;
border-radius: 32rpx;
}
.cancel-btn:active {
background: #fff1f0;
}
/* 空状态 */
.empty {
display: flex;
flex-direction: column;
align-items: center;
padding-top: 200rpx;
}
.empty-icon {
font-size: 120rpx;
margin-bottom: 32rpx;
}
.empty-text {
font-size: 28rpx;
color: #999;
margin-bottom: 48rpx;
}
.empty-btn {
font-size: 28rpx;
color: #fff;
background: #1890ff;
padding: 20rpx 64rpx;
border-radius: 40rpx;
}
.empty-btn:active {
background: #096dd9;
}