123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265 |
- /* pages/checkin/index.wxss */
- .checkin-container {
- background: linear-gradient(180deg, #e8f4fd 0%, #f0f8ff 30%, #f8f9fc 60%);
- min-height: 100vh;
- padding: 0 32rpx;
- }
- /* 用户信息栏 */
- .user-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 40rpx 0 32rpx;
- }
- .user-info {
- display: flex;
- align-items: center;
- }
- .avatar {
- width: 80rpx;
- height: 80rpx;
- border-radius: 50%;
- margin-right: 24rpx;
- border: 4rpx solid #fff;
- box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
- }
- .user-details {
- display: flex;
- align-items: center;
- }
- .nickname {
- font-size: 32rpx;
- font-weight: 600;
- color: #333;
- }
- .points-info {
- text-align: right;
- }
- .points-number {
- font-size: 48rpx;
- font-weight: bold;
- color: #4a90e2;
- line-height: 1;
- }
- .points-label {
- font-size: 24rpx;
- color: #999;
- margin-top: 8rpx;
- }
- /* 签到标题 */
- .checkin-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 32rpx;
- }
- .checkin-title {
- font-size: 36rpx;
- font-weight: 600;
- color: #333;
- }
- .month-info {
- font-size: 28rpx;
- color: #4a90e2;
- }
- /* 日历容器 */
- .calendar-container {
- background: #fff;
- border-radius: 24rpx;
- padding: 32rpx;
- margin-bottom: 40rpx;
- box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.08);
- }
- /* 星期标题 */
- .weekdays {
- display: flex;
- margin-bottom: 24rpx;
- }
- .weekday {
- flex: 1;
- text-align: center;
- font-size: 28rpx;
- color: #999;
- font-weight: 500;
- }
- /* 日期网格 */
- .calendar-grid {
- display: flex;
- flex-wrap: wrap;
- }
- .calendar-day {
- width: calc(100% / 7);
- height: 80rpx;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- position: relative;
- margin-bottom: 16rpx;
- }
- .calendar-day.empty {
- visibility: hidden;
- }
- .day-number {
- font-size: 28rpx;
- color: #333;
- font-weight: 500;
- }
- .calendar-day.today .day-number {
- background: linear-gradient(135deg, #ff6b35 0%, #ff8a50 100%);
- color: #fff;
- border-radius: 50%;
- width: 56rpx;
- height: 56rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- font-weight: 600;
- box-shadow: 0 4rpx 12rpx rgba(255, 107, 53, 0.3);
- }
- .calendar-day.checked .day-number {
- color: #4a90e2;
- font-weight: 600;
- }
- .check-dot {
- width: 12rpx;
- height: 12rpx;
- background: #4a90e2;
- border-radius: 50%;
- position: absolute;
- bottom: 8rpx;
- }
- .calendar-day.today .check-dot {
- display: none;
- }
- /* 签到按钮 */
- .checkin-btn-container {
- margin-bottom: 48rpx;
- }
- .checkin-btn {
- width: 100%;
- height: 96rpx;
- background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
- border: none;
- border-radius: 48rpx;
- color: #fff;
- font-size: 32rpx;
- font-weight: 600;
- display: flex;
- align-items: center;
- justify-content: center;
- box-shadow: 0 8rpx 24rpx rgba(74, 144, 226, 0.3);
- }
- .checkin-btn.disabled {
- background: #ccc;
- box-shadow: none;
- }
- .checkin-btn::after {
- border: none;
- }
- /* 积分任务 */
- .tasks-section {
- margin-bottom: 40rpx;
- }
- .tasks-title {
- font-size: 36rpx;
- font-weight: 600;
- color: #333;
- margin-bottom: 24rpx;
- }
- .tasks-list {
- background: #fff;
- border-radius: 24rpx;
- overflow: hidden;
- box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.08);
- }
- .task-item {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 32rpx;
- border-bottom: 1rpx solid #f0f0f0;
- transition: background-color 0.2s ease;
- }
- .task-item:hover {
- background-color: #fafafa;
- }
- .task-item:last-child {
- border-bottom: none;
- }
- .task-content {
- display: flex;
- align-items: center;
- flex: 1;
- }
- .task-icon {
- width: 64rpx;
- height: 64rpx;
- margin-right: 24rpx;
- background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
- border-radius: 16rpx;
- padding: 12rpx;
- }
- .task-info {
- flex: 1;
- }
- .task-title {
- font-size: 30rpx;
- color: #333;
- font-weight: 500;
- margin-bottom: 8rpx;
- }
- .task-desc {
- font-size: 24rpx;
- color: #999;
- }
- .task-action {
- padding: 16rpx 32rpx;
- background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
- border-radius: 32rpx;
- box-shadow: 0 2rpx 8rpx rgba(74, 144, 226, 0.2);
- }
- .action-text {
- font-size: 26rpx;
- color: #4a90e2;
- font-weight: 500;
- }
|