242 lines
3.6 KiB
Plaintext
242 lines
3.6 KiB
Plaintext
/* 微信小程序签到页面样式 */
|
|
|
|
.container {
|
|
padding: 20rpx;
|
|
background-color: #f5f5f5;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.page-title {
|
|
text-align: center;
|
|
font-size: 36rpx;
|
|
font-weight: bold;
|
|
margin: 20rpx 0;
|
|
color: #333;
|
|
}
|
|
|
|
/* 签到信息卡片 */
|
|
.signin-info {
|
|
background: white;
|
|
border-radius: 12rpx;
|
|
padding: 30rpx;
|
|
margin-bottom: 30rpx;
|
|
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.info-card {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.info-item {
|
|
text-align: center;
|
|
flex: 1;
|
|
}
|
|
|
|
.label {
|
|
display: block;
|
|
font-size: 24rpx;
|
|
color: #999;
|
|
margin-bottom: 10rpx;
|
|
}
|
|
|
|
.value {
|
|
display: block;
|
|
font-size: 32rpx;
|
|
font-weight: bold;
|
|
color: #333;
|
|
}
|
|
|
|
/* 签到按钮 */
|
|
.signin-button-container {
|
|
text-align: center;
|
|
margin: 40rpx 0;
|
|
}
|
|
|
|
.signin-button {
|
|
width: 60%;
|
|
height: 80rpx;
|
|
line-height: 80rpx;
|
|
font-size: 32rpx;
|
|
font-weight: bold;
|
|
border-radius: 40rpx;
|
|
color: white;
|
|
background: linear-gradient(to right, #ff6b6b, #ff8e53);
|
|
border: none;
|
|
}
|
|
|
|
.signin-button.signed {
|
|
background: #ccc;
|
|
color: #999;
|
|
}
|
|
|
|
.signin-button:active {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
/* 本周签到日历 */
|
|
.week-calendar {
|
|
background: white;
|
|
border-radius: 12rpx;
|
|
padding: 30rpx;
|
|
margin-bottom: 30rpx;
|
|
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.calendar-title {
|
|
font-size: 28rpx;
|
|
font-weight: bold;
|
|
margin-bottom: 20rpx;
|
|
color: #333;
|
|
}
|
|
|
|
.calendar-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(7, 1fr);
|
|
gap: 10rpx;
|
|
}
|
|
|
|
.weekday {
|
|
text-align: center;
|
|
font-size: 24rpx;
|
|
color: #999;
|
|
height: 60rpx;
|
|
line-height: 60rpx;
|
|
}
|
|
|
|
.calendar-day {
|
|
text-align: center;
|
|
font-size: 24rpx;
|
|
color: #999;
|
|
height: 60rpx;
|
|
line-height: 60rpx;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.calendar-day.signed {
|
|
background: #4CAF50;
|
|
color: white;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.calendar-day.unsigned {
|
|
background: #f0f0f0;
|
|
color: #999;
|
|
}
|
|
|
|
/* 奖励规则 */
|
|
.reward-rules {
|
|
background: white;
|
|
border-radius: 12rpx;
|
|
padding: 30rpx;
|
|
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.rules-title {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-size: 28rpx;
|
|
font-weight: bold;
|
|
margin-bottom: 20rpx;
|
|
color: #333;
|
|
padding-bottom: 20rpx;
|
|
border-bottom: 1rpx solid #eee;
|
|
}
|
|
|
|
.rules-content {
|
|
padding-left: 20rpx;
|
|
}
|
|
|
|
.rule-item {
|
|
font-size: 24rpx;
|
|
color: #666;
|
|
margin: 10rpx 0;
|
|
padding-left: 20rpx;
|
|
position: relative;
|
|
}
|
|
|
|
.rule-item::before {
|
|
content: '•';
|
|
position: absolute;
|
|
left: 0;
|
|
color: #ff6b6b;
|
|
}
|
|
|
|
.rule-desc {
|
|
font-size: 22rpx;
|
|
color: #999;
|
|
margin-top: 20rpx;
|
|
padding: 15rpx;
|
|
background: #f9f9f9;
|
|
border-radius: 8rpx;
|
|
border-left: 4rpx solid #ff6b6b;
|
|
}
|
|
|
|
/* 成功弹窗 */
|
|
.signin-success-modal {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.modal-content {
|
|
background: white;
|
|
border-radius: 20rpx;
|
|
padding: 40rpx;
|
|
text-align: center;
|
|
width: 80%;
|
|
max-width: 500rpx;
|
|
}
|
|
|
|
.modal-icon {
|
|
font-size: 80rpx;
|
|
color: #4CAF50;
|
|
margin-bottom: 20rpx;
|
|
}
|
|
|
|
.modal-title {
|
|
font-size: 32rpx;
|
|
font-weight: bold;
|
|
color: #333;
|
|
margin-bottom: 10rpx;
|
|
}
|
|
|
|
.modal-reward {
|
|
font-size: 28rpx;
|
|
color: #ff6b6b;
|
|
margin-bottom: 30rpx;
|
|
}
|
|
|
|
.modal-close {
|
|
background: #4CAF50;
|
|
color: white;
|
|
border-radius: 40rpx;
|
|
width: 80%;
|
|
margin: 0 auto;
|
|
height: 70rpx;
|
|
line-height: 70rpx;
|
|
}
|
|
|
|
/* 响应式适配 */
|
|
@media screen and (max-width: 750rpx) {
|
|
.container {
|
|
padding: 10rpx;
|
|
}
|
|
|
|
.info-card {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.info-item {
|
|
margin: 15rpx 0;
|
|
}
|
|
} |