index.wxss 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  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 !important;
  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. /* color: #ccc; */
  156. /* box-shadow: none; */
  157. }
  158. .checkin-btn::after {
  159. border: none;
  160. }
  161. /* 积分任务 */
  162. .tasks-section {
  163. margin-bottom: 40rpx;
  164. }
  165. .tasks-title {
  166. font-size: 36rpx;
  167. font-weight: 600;
  168. color: #333;
  169. margin-bottom: 24rpx;
  170. }
  171. .tasks-list {
  172. background: #fff;
  173. border-radius: 24rpx;
  174. overflow: hidden;
  175. box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.08);
  176. }
  177. .task-item {
  178. display: flex;
  179. align-items: center;
  180. justify-content: space-between;
  181. padding: 32rpx;
  182. border-bottom: 1rpx solid #f0f0f0;
  183. transition: background-color 0.2s ease;
  184. }
  185. .task-item:hover {
  186. background-color: #fafafa;
  187. }
  188. .task-item:last-child {
  189. border-bottom: none;
  190. }
  191. .task-content {
  192. display: flex;
  193. align-items: center;
  194. flex: 1;
  195. }
  196. .task-icon {
  197. width: 64rpx;
  198. height: 64rpx;
  199. margin-right: 24rpx;
  200. background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  201. border-radius: 16rpx;
  202. padding: 12rpx;
  203. }
  204. .task-info {
  205. flex: 1;
  206. }
  207. .task-title {
  208. font-size: 30rpx;
  209. color: #333;
  210. font-weight: 500;
  211. margin-bottom: 8rpx;
  212. }
  213. .task-desc {
  214. font-size: 24rpx;
  215. color: #999;
  216. }
  217. .task-action {
  218. padding: 16rpx 32rpx;
  219. background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  220. border-radius: 32rpx;
  221. box-shadow: 0 2rpx 8rpx rgba(74, 144, 226, 0.2);
  222. }
  223. .action-text {
  224. font-size: 26rpx;
  225. color: #4a90e2;
  226. font-weight: 500;
  227. }