task-create.wxss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. /* pages/task-create/task-create.wxss */
  2. .container {
  3. padding: 20rpx;
  4. padding-bottom: 40rpx;
  5. background-color: #f5f5f5;
  6. min-height: 100vh;
  7. }
  8. .form-item {
  9. background-color: #fff;
  10. border-radius: 16rpx;
  11. padding: 30rpx;
  12. margin-bottom: 20rpx;
  13. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  14. }
  15. .form-item.sub-item {
  16. margin-left: 40rpx;
  17. background-color: #f9f9f9;
  18. }
  19. .form-label {
  20. font-size: 32rpx;
  21. font-weight: bold;
  22. color: #333;
  23. display: block;
  24. margin-bottom: 20rpx;
  25. }
  26. .required {
  27. color: #F44336;
  28. margin-left: 10rpx;
  29. }
  30. .form-input {
  31. font-size: 30rpx;
  32. color: #333;
  33. padding: 20rpx;
  34. border: 2rpx solid #eee;
  35. border-radius: 12rpx;
  36. background-color: #fafafa;
  37. }
  38. .form-textarea {
  39. font-size: 30rpx;
  40. color: #333;
  41. padding: 20rpx;
  42. border: 2rpx solid #eee;
  43. border-radius: 12rpx;
  44. background-color: #fafafa;
  45. min-height: 200rpx;
  46. width: 100%;
  47. box-sizing: border-box;
  48. }
  49. /* 积分选择器 */
  50. .points-selector {
  51. margin-top: 20rpx;
  52. }
  53. .points-options {
  54. display: flex;
  55. flex-wrap: wrap;
  56. margin-bottom: 10rpx;
  57. }
  58. .points-option {
  59. width: 80rpx;
  60. height: 80rpx;
  61. display: flex;
  62. align-items: center;
  63. justify-content: center;
  64. border: 2rpx solid #ddd;
  65. border-radius: 12rpx;
  66. margin-right: 10rpx;
  67. margin-bottom: 10rpx;
  68. font-size: 32rpx;
  69. color: #666;
  70. }
  71. .points-option.active {
  72. background-color: #FF6B6B;
  73. color: #fff;
  74. border-color: #FF6B6B;
  75. }
  76. .points-tip {
  77. font-size: 24rpx;
  78. color: #999;
  79. }
  80. /* 时间选择器 */
  81. .datetime-picker {
  82. display: flex;
  83. justify-content: space-between;
  84. }
  85. .picker-value {
  86. flex: 1;
  87. margin-right: 20rpx;
  88. padding: 20rpx;
  89. border: 2rpx solid #eee;
  90. border-radius: 12rpx;
  91. background-color: #fafafa;
  92. font-size: 30rpx;
  93. color: #333;
  94. text-align: center;
  95. }
  96. .picker-value:last-child {
  97. margin-right: 0;
  98. }
  99. /* 重复类型 */
  100. .repeat-selector {
  101. display: flex;
  102. justify-content: space-between;
  103. }
  104. .repeat-option {
  105. flex: 1;
  106. margin-right: 10rpx;
  107. padding: 20rpx;
  108. border: 2rpx solid #ddd;
  109. border-radius: 12rpx;
  110. text-align: center;
  111. font-size: 28rpx;
  112. color: #666;
  113. }
  114. .repeat-option:last-child {
  115. margin-right: 0;
  116. }
  117. .repeat-option.active {
  118. background-color: #FF6B6B;
  119. color: #fff;
  120. border-color: #FF6B6B;
  121. }
  122. /* 提示文本 */
  123. .form-tip {
  124. font-size: 24rpx;
  125. color: #999;
  126. margin-left: 20rpx;
  127. display: block;
  128. margin-top: 10rpx;
  129. }
  130. /* 按钮组 */
  131. .button-group {
  132. display: flex;
  133. margin-top: 40rpx;
  134. padding: 0 20rpx;
  135. }
  136. .preview-btn {
  137. flex: 1;
  138. margin-right: 20rpx;
  139. background-color: #fff;
  140. color: #FF6B6B;
  141. border: 2rpx solid #FF6B6B;
  142. border-radius: 50rpx;
  143. padding: 24rpx;
  144. font-size: 32rpx;
  145. font-weight: bold;
  146. }
  147. .preview-btn::after {
  148. border: none;
  149. }
  150. .submit-btn {
  151. flex: 2;
  152. background-color: #FF6B6B;
  153. color: #fff;
  154. border-radius: 50rpx;
  155. padding: 24rpx;
  156. font-size: 32rpx;
  157. font-weight: bold;
  158. }
  159. .submit-btn::after {
  160. border: none;
  161. }
  162. button[disabled] {
  163. opacity: 0.6;
  164. }