index_1874359642.wxss 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  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. .day-image{
  154. width: 22rpx;
  155. height: 22rpx;
  156. position: absolute;
  157. bottom: 0rpx;
  158. }
  159. .calendar-day.today .day-image {
  160. display: none;
  161. }
  162. /* 签到按钮 */
  163. .checkin-btn-container {
  164. margin-bottom: 10rpx;
  165. }
  166. .checkin-btn {
  167. width: 100%;
  168. height: 80rpx;
  169. background: #2b58a5 !important;
  170. border: none;
  171. border-radius: 48rpx;
  172. color: #ffffff !important;
  173. font-size: 26rpx;
  174. font-weight: 400;
  175. display: flex;
  176. align-items: center;
  177. justify-content: center;
  178. /* box-shadow: 0 8rpx 24rpx rgba(74, 144, 226, 0.3); */
  179. }
  180. .checkin-btn.disabled {
  181. /* background: #ccc; */
  182. /* color: #ccc; */
  183. /* box-shadow: none; */
  184. }
  185. .checkin-btn::after {
  186. border: none;
  187. }
  188. /* 积分任务 */
  189. .tasks-section {
  190. margin-bottom: 40rpx;
  191. }
  192. .tasks-title {
  193. font-size: 36rpx;
  194. font-weight: 700;
  195. color: #1a1a1a;
  196. margin-bottom: 24rpx;
  197. display: inline-block;
  198. position: relative;
  199. }
  200. .tasks-title::after {
  201. display: block;
  202. content: "";
  203. position: absolute;
  204. top: -3%;
  205. right: -3%;
  206. width: 30rpx;
  207. height: 30rpx;
  208. background-color: #005eff42;
  209. border-radius: 50%;
  210. z-index: 1;
  211. }
  212. .tasks-list {
  213. /* background: #fff; */
  214. /* border-radius: 24rpx; */
  215. overflow: hidden;
  216. box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.08);
  217. }
  218. .task-item {
  219. display: flex;
  220. align-items: center;
  221. justify-content: space-between;
  222. padding: 32rpx;
  223. background: #fff;
  224. transition: background-color 0.2s ease;
  225. margin-bottom: 20rpx;
  226. border-radius: 20rpx;
  227. }
  228. .task-item:hover {
  229. background-color: #fafafa;
  230. }
  231. .task-item:last-child {
  232. border-bottom: none;
  233. margin-bottom: 0;
  234. }
  235. .task-content {
  236. display: flex;
  237. align-items: center;
  238. flex: 1;
  239. }
  240. .task-icon {
  241. width: 64rpx;
  242. height: 64rpx;
  243. margin-right: 20rpx;
  244. /* background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); */
  245. border-radius: 16rpx;
  246. /* padding: 12rpx; */
  247. }
  248. .task-info {
  249. flex: 1;
  250. }
  251. .task-title {
  252. font-size: 30rpx;
  253. color: #333;
  254. font-weight: 500;
  255. margin-bottom: 8rpx;
  256. }
  257. .task-desc {
  258. font-size: 24rpx;
  259. color: #999;
  260. }
  261. .task-action {
  262. padding: 16rpx 32rpx;
  263. background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  264. border-radius: 32rpx;
  265. box-shadow: 0 2rpx 8rpx rgba(74, 144, 226, 0.2);
  266. display: flex;
  267. align-items: center;
  268. justify-content: center;
  269. line-height: inherit !important;
  270. }
  271. .action-text {
  272. font-size: 26rpx;
  273. color: #4a90e2;
  274. font-weight: 500;
  275. }
  276. .task-action.complete {
  277. background: #999999;
  278. box-shadow: none;
  279. }
  280. .task-action.complete .action-text {
  281. color: #ffffff;
  282. }