index.wxss 5.0 KB

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