index.wxss 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. /* pages/checkin/index.wxss */
  2. .checkin-container {
  3. background: linear-gradient(180deg, #e8f4fd 0%, #f0f8ff 30%, #f8f9fc 60%);
  4. min-height: 100vh;
  5. padding: 0 32rpx;
  6. }
  7. /* 用户信息栏 */
  8. .user-header {
  9. display: flex;
  10. justify-content: space-between;
  11. align-items: center;
  12. padding: 40rpx 0 32rpx;
  13. }
  14. .user-info {
  15. display: flex;
  16. align-items: center;
  17. }
  18. .avatar {
  19. width: 80rpx;
  20. height: 80rpx;
  21. border-radius: 50%;
  22. margin-right: 24rpx;
  23. border: 4rpx solid #fff;
  24. box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.1);
  25. }
  26. .user-details {
  27. display: flex;
  28. align-items: center;
  29. }
  30. .nickname {
  31. font-size: 32rpx;
  32. font-weight: 600;
  33. color: #333;
  34. }
  35. .points-info {
  36. text-align: right;
  37. }
  38. .points-number {
  39. font-size: 48rpx;
  40. font-weight: bold;
  41. color: #4a90e2;
  42. line-height: 1;
  43. }
  44. .points-label {
  45. font-size: 24rpx;
  46. color: #999;
  47. margin-top: 8rpx;
  48. }
  49. /* 签到标题 */
  50. .checkin-header {
  51. display: flex;
  52. justify-content: space-between;
  53. align-items: center;
  54. margin-bottom: 32rpx;
  55. }
  56. .checkin-title {
  57. font-size: 36rpx;
  58. font-weight: 600;
  59. color: #333;
  60. }
  61. .month-info {
  62. font-size: 28rpx;
  63. color: #4a90e2;
  64. }
  65. /* 日历容器 */
  66. .calendar-container {
  67. background: #fff;
  68. border-radius: 24rpx;
  69. padding: 32rpx;
  70. margin-bottom: 40rpx;
  71. box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.08);
  72. }
  73. /* 星期标题 */
  74. .weekdays {
  75. display: flex;
  76. margin-bottom: 24rpx;
  77. }
  78. .weekday {
  79. flex: 1;
  80. text-align: center;
  81. font-size: 28rpx;
  82. color: #999;
  83. font-weight: 500;
  84. }
  85. /* 日期网格 */
  86. .calendar-grid {
  87. display: flex;
  88. flex-wrap: wrap;
  89. }
  90. .calendar-day {
  91. width: calc(100% / 7);
  92. height: 80rpx;
  93. display: flex;
  94. flex-direction: column;
  95. align-items: center;
  96. justify-content: center;
  97. position: relative;
  98. margin-bottom: 16rpx;
  99. }
  100. .calendar-day.empty {
  101. visibility: hidden;
  102. }
  103. .day-number {
  104. font-size: 28rpx;
  105. color: #333;
  106. font-weight: 500;
  107. }
  108. .calendar-day.today .day-number {
  109. background: linear-gradient(135deg, #ff6b35 0%, #ff8a50 100%);
  110. color: #fff;
  111. border-radius: 50%;
  112. width: 56rpx;
  113. height: 56rpx;
  114. display: flex;
  115. align-items: center;
  116. justify-content: center;
  117. font-weight: 600;
  118. box-shadow: 0 4rpx 12rpx rgba(255, 107, 53, 0.3);
  119. }
  120. .calendar-day.checked .day-number {
  121. color: #4a90e2;
  122. font-weight: 600;
  123. }
  124. .check-dot {
  125. width: 12rpx;
  126. height: 12rpx;
  127. background: #4a90e2;
  128. border-radius: 50%;
  129. position: absolute;
  130. bottom: 8rpx;
  131. }
  132. .calendar-day.today .check-dot {
  133. display: none;
  134. }
  135. /* 签到按钮 */
  136. .checkin-btn-container {
  137. margin-bottom: 48rpx;
  138. }
  139. .checkin-btn {
  140. width: 100%;
  141. height: 96rpx;
  142. background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  143. border: none;
  144. border-radius: 48rpx;
  145. color: #fff;
  146. font-size: 32rpx;
  147. font-weight: 600;
  148. display: flex;
  149. align-items: center;
  150. justify-content: center;
  151. box-shadow: 0 8rpx 24rpx rgba(74, 144, 226, 0.3);
  152. }
  153. .checkin-btn.disabled {
  154. background: #ccc;
  155. box-shadow: none;
  156. }
  157. .checkin-btn::after {
  158. border: none;
  159. }
  160. /* 积分任务 */
  161. .tasks-section {
  162. margin-bottom: 40rpx;
  163. }
  164. .tasks-title {
  165. font-size: 36rpx;
  166. font-weight: 600;
  167. color: #333;
  168. margin-bottom: 24rpx;
  169. }
  170. .tasks-list {
  171. background: #fff;
  172. border-radius: 24rpx;
  173. overflow: hidden;
  174. box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.08);
  175. }
  176. .task-item {
  177. display: flex;
  178. align-items: center;
  179. justify-content: space-between;
  180. padding: 32rpx;
  181. border-bottom: 1rpx solid #f0f0f0;
  182. transition: background-color 0.2s ease;
  183. }
  184. .task-item:hover {
  185. background-color: #fafafa;
  186. }
  187. .task-item:last-child {
  188. border-bottom: none;
  189. }
  190. .task-content {
  191. display: flex;
  192. align-items: center;
  193. flex: 1;
  194. }
  195. .task-icon {
  196. width: 64rpx;
  197. height: 64rpx;
  198. margin-right: 24rpx;
  199. background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  200. border-radius: 16rpx;
  201. padding: 12rpx;
  202. }
  203. .task-info {
  204. flex: 1;
  205. }
  206. .task-title {
  207. font-size: 30rpx;
  208. color: #333;
  209. font-weight: 500;
  210. margin-bottom: 8rpx;
  211. }
  212. .task-desc {
  213. font-size: 24rpx;
  214. color: #999;
  215. }
  216. .task-action {
  217. padding: 16rpx 32rpx;
  218. background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  219. border-radius: 32rpx;
  220. box-shadow: 0 2rpx 8rpx rgba(74, 144, 226, 0.2);
  221. }
  222. .action-text {
  223. font-size: 26rpx;
  224. color: #4a90e2;
  225. font-weight: 500;
  226. }