task-detail.wxss 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. /* pages/task-detail/task-detail.wxss */
  2. .container {
  3. padding: 20rpx;
  4. background-color: #f5f5f5;
  5. min-height: 100vh;
  6. }
  7. .loading {
  8. display: flex;
  9. justify-content: center;
  10. align-items: center;
  11. height: 400rpx;
  12. color: #999;
  13. font-size: 28rpx;
  14. }
  15. /* 任务头部 */
  16. .task-header {
  17. background-color: #fff;
  18. border-radius: 16rpx;
  19. padding: 30rpx;
  20. margin-bottom: 20rpx;
  21. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  22. }
  23. .status-badge {
  24. display: inline-block;
  25. padding: 8rpx 20rpx;
  26. border-radius: 20rpx;
  27. font-size: 24rpx;
  28. color: #fff;
  29. margin-bottom: 20rpx;
  30. }
  31. .status-badge.pending {
  32. background-color: #FFD700;
  33. }
  34. .status-badge.completed {
  35. background-color: #4CAF50;
  36. }
  37. .status-badge.overdue {
  38. background-color: #F44336;
  39. }
  40. .task-title {
  41. font-size: 40rpx;
  42. font-weight: bold;
  43. color: #333;
  44. display: block;
  45. margin-bottom: 20rpx;
  46. }
  47. .task-meta {
  48. display: flex;
  49. align-items: center;
  50. }
  51. .task-points {
  52. font-size: 32rpx;
  53. color: #FF6B6B;
  54. font-weight: bold;
  55. margin-right: 20rpx;
  56. }
  57. .task-category {
  58. font-size: 26rpx;
  59. color: #666;
  60. background-color: #f0f0f0;
  61. padding: 8rpx 16rpx;
  62. border-radius: 16rpx;
  63. }
  64. /* 任务信息 */
  65. .task-info {
  66. background-color: #fff;
  67. border-radius: 16rpx;
  68. padding: 30rpx;
  69. margin-bottom: 20rpx;
  70. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  71. }
  72. .info-item {
  73. display: flex;
  74. justify-content: space-between;
  75. align-items: center;
  76. padding: 20rpx 0;
  77. border-bottom: 1rpx solid #f0f0f0;
  78. }
  79. .info-item:last-child {
  80. border-bottom: none;
  81. }
  82. .info-label {
  83. font-size: 28rpx;
  84. color: #999;
  85. }
  86. .info-value {
  87. font-size: 28rpx;
  88. color: #333;
  89. max-width: 60%;
  90. text-align: right;
  91. }
  92. .time-urgent {
  93. color: #F44336;
  94. font-weight: bold;
  95. }
  96. /* 完成区域 */
  97. .complete-section, .review-section {
  98. background-color: #fff;
  99. border-radius: 16rpx;
  100. padding: 30rpx;
  101. margin-bottom: 20rpx;
  102. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  103. }
  104. .section-title {
  105. font-size: 32rpx;
  106. font-weight: bold;
  107. color: #333;
  108. display: block;
  109. margin-bottom: 30rpx;
  110. }
  111. .proof-upload {
  112. display: flex;
  113. justify-content: space-around;
  114. margin-bottom: 30rpx;
  115. }
  116. .proof-item {
  117. display: flex;
  118. flex-direction: column;
  119. align-items: center;
  120. width: 200rpx;
  121. height: 200rpx;
  122. border: 2rpx dashed #ddd;
  123. border-radius: 16rpx;
  124. justify-content: center;
  125. }
  126. .proof-icon {
  127. font-size: 60rpx;
  128. margin-bottom: 10rpx;
  129. }
  130. .proof-image {
  131. width: 200rpx;
  132. height: 200rpx;
  133. border-radius: 16rpx;
  134. }
  135. .proof-text {
  136. font-size: 24rpx;
  137. color: #666;
  138. }
  139. .complete-btn {
  140. background-color: #4CAF50;
  141. color: #fff;
  142. border-radius: 50rpx;
  143. padding: 24rpx;
  144. font-size: 32rpx;
  145. font-weight: bold;
  146. margin: 0;
  147. }
  148. .complete-btn::after {
  149. border: none;
  150. }
  151. /* 审核按钮 */
  152. .review-buttons {
  153. display: flex;
  154. justify-content: space-around;
  155. }
  156. .review-btn {
  157. flex: 1;
  158. margin: 0 10rpx;
  159. border-radius: 50rpx;
  160. padding: 24rpx;
  161. font-size: 32rpx;
  162. font-weight: bold;
  163. color: #fff;
  164. }
  165. .review-btn.pass {
  166. background-color: #4CAF50;
  167. }
  168. .review-btn.reject {
  169. background-color: #F44336;
  170. }
  171. .review-btn::after {
  172. border: none;
  173. }
  174. /* 状态提示 */
  175. .status-tip {
  176. display: flex;
  177. align-items: center;
  178. justify-content: center;
  179. background-color: #fff;
  180. border-radius: 16rpx;
  181. padding: 30rpx;
  182. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  183. }
  184. .tip-icon {
  185. font-size: 40rpx;
  186. margin-right: 20rpx;
  187. }
  188. .tip-text {
  189. font-size: 28rpx;
  190. color: #666;
  191. }