Files
miniwx/pages/index/index.wxss
T
2026-04-24 17:28:43 +08:00

276 lines
4.1 KiB
Plaintext

/**index.wxss**/
page {
background-color: #f5f7fa;
min-height: 100vh;
}
.page {
padding: 40rpx 32rpx;
}
.header {
display: flex;
flex-direction: column;
align-items: center;
padding: 60rpx 0 40rpx;
}
.header-icon {
font-size: 100rpx;
margin-bottom: 24rpx;
line-height: 1;
}
/* loading 遮罩 */
.loading-mask {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: #f5f7fa;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
z-index: 999;
}
.loading-spinner {
width: 64rpx;
height: 64rpx;
border: 6rpx solid #e0e0e0;
border-top: 6rpx solid #1890ff;
border-radius: 50%;
animation: spin 0.8s linear infinite;
margin-bottom: 24rpx;
}
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.loading-text {
font-size: 28rpx;
color: #999;
}
/* 登录失败 */
.fail-icon {
font-size: 80rpx;
margin-bottom: 20rpx;
}
.fail-text {
font-size: 28rpx;
color: #999;
margin-bottom: 32rpx;
}
.retry-btn {
font-size: 28rpx;
color: #fff;
background: #1890ff;
padding: 16rpx 56rpx;
border-radius: 36rpx;
}
.retry-btn:active {
background: #096dd9;
}
.header-title {
font-size: 44rpx;
font-weight: 700;
color: #1a1a1a;
margin-bottom: 12rpx;
}
.header-subtitle {
font-size: 28rpx;
color: #999;
}
/* 功能卡片 */
.action-list {
margin-top: 24rpx;
}
.action-card {
display: flex;
align-items: center;
background: #fff;
border-radius: 20rpx;
padding: 36rpx 32rpx;
margin-bottom: 24rpx;
box-shadow: 0 8rpx 32rpx rgba(24, 144, 255, 0.12), 0 2rpx 8rpx rgba(0, 0, 0, 0.06);
}
.action-card:active {
background: #f0f0f0;
box-shadow: 0 4rpx 16rpx rgba(24, 144, 255, 0.08), 0 1rpx 4rpx rgba(0, 0, 0, 0.04);
}
.action-icon-wrap {
width: 88rpx;
height: 88rpx;
border-radius: 20rpx;
display: flex;
align-items: center;
justify-content: center;
margin-right: 28rpx;
flex-shrink: 0;
}
.action-icon-blue {
background: rgba(24, 144, 255, 0.1);
}
.action-icon-green {
background: rgba(82, 196, 26, 0.1);
}
.action-icon-text {
font-size: 44rpx;
}
.action-info {
flex: 1;
display: flex;
flex-direction: column;
}
.action-title {
font-size: 32rpx;
font-weight: 600;
color: #1a1a1a;
margin-bottom: 8rpx;
}
.action-desc {
font-size: 24rpx;
color: #999;
}
.action-arrow {
font-size: 40rpx;
color: #ccc;
margin-left: 16rpx;
}
/* 最新预约卡片 */
.latest-card {
background: #fff;
border-radius: 20rpx;
padding: 28rpx 32rpx;
margin-top: 8rpx;
box-shadow: 0 8rpx 32rpx rgba(82, 196, 26, 0.12), 0 2rpx 8rpx rgba(0, 0, 0, 0.06);
}
.latest-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20rpx;
padding-bottom: 16rpx;
border-bottom: 1rpx solid #f0f0f0;
}
.latest-header-right {
display: flex;
align-items: center;
gap: 12rpx;
}
.qrcode-btn {
font-size: 22rpx;
color: #52c41a;
background: rgba(82, 196, 26, 0.1);
padding: 6rpx 20rpx;
border-radius: 20rpx;
border: 1rpx solid rgba(82, 196, 26, 0.3);
}
.qrcode-btn:active {
background: rgba(82, 196, 26, 0.2);
}
.latest-title {
font-size: 28rpx;
font-weight: 600;
color: #1a1a1a;
}
.status-tag {
font-size: 22rpx;
padding: 4rpx 16rpx;
border-radius: 16rpx;
font-weight: 500;
margin-left: auto;
}
.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;
}
.latest-body {
margin-bottom: 8rpx;
}
.latest-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8rpx 0;
}
.latest-label {
font-size: 24rpx;
color: #999;
}
.latest-value {
font-size: 24rpx;
color: #333;
}
.latest-footer {
padding-top: 16rpx;
border-top: 1rpx solid #f0f0f0;
text-align: center;
}
.latest-link {
font-size: 24rpx;
color: #1890ff;
}
.footer {
margin-top: 120rpx;
text-align: center;
}
.footer-text {
font-size: 24rpx;
color: #ccc;
}