index.wxss 5.1 KB

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