form-common.scss 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. page {
  2. background-color: #F6F8FB;
  3. }
  4. .page-container {
  5. min-height: 100vh;
  6. background-color: #F6F8FB;
  7. display: flex;
  8. flex-direction: column;
  9. width: 100vw;
  10. box-sizing: border-box;
  11. }
  12. .form-content {
  13. flex: 1;
  14. width: 100%;
  15. box-sizing: border-box;
  16. padding: 24rpx 32rpx 40rpx;
  17. .form-card {
  18. background-color: #FFFFFF;
  19. border-radius: 32rpx;
  20. padding: 40rpx 32rpx;
  21. box-shadow: 0 10rpx 40rpx rgba(0, 0, 0, 0.03);
  22. }
  23. .form-item {
  24. margin-bottom: 48rpx;
  25. &:last-child {
  26. margin-bottom: 0;
  27. }
  28. .label-row {
  29. display: flex;
  30. justify-content: space-between;
  31. align-items: center;
  32. margin-bottom: 20rpx;
  33. padding-left: 8rpx;
  34. .label {
  35. font-size: 28rpx;
  36. font-weight: 600;
  37. color: #333333;
  38. }
  39. .optional {
  40. font-size: 26rpx;
  41. color: #B3B3B3;
  42. font-weight: normal;
  43. margin-left: 8rpx;
  44. }
  45. .tag-missing {
  46. color: #FF7B3B;
  47. font-size: 22rpx;
  48. background-color: rgba(255, 123, 59, 0.1);
  49. padding: 4rpx 14rpx;
  50. border-radius: 8rpx;
  51. font-weight: 500;
  52. }
  53. }
  54. .input-box {
  55. position: relative;
  56. display: flex;
  57. align-items: center;
  58. background-color: #F8FAFC;
  59. border-radius: 16rpx;
  60. padding: 0 24rpx;
  61. height: 84rpx;
  62. transition: all 0.3s ease;
  63. border: 2rpx solid transparent;
  64. &:focus-within {
  65. background-color: #EBF1FA;
  66. border-color: rgba(31, 108, 255, 0.2);
  67. }
  68. input {
  69. flex: 1;
  70. font-size: 28rpx;
  71. color: #1A1A1A;
  72. font-weight: 500;
  73. height: 100%;
  74. }
  75. .ph-style {
  76. color: #A0AABF;
  77. font-size: 28rpx;
  78. font-weight: 400;
  79. }
  80. .arrow {
  81. width: 14rpx;
  82. height: 14rpx;
  83. border-right: 3.5rpx solid #B0BACC;
  84. border-top: 3.5rpx solid #B0BACC;
  85. transform: rotate(45deg);
  86. margin-left: 20rpx;
  87. border-radius: 2rpx;
  88. }
  89. .date-picker-wrap {
  90. flex: 1;
  91. display: flex;
  92. align-items: center;
  93. justify-content: space-between;
  94. height: 100%;
  95. .date-block {
  96. flex: 1;
  97. position: relative;
  98. height: 100%;
  99. display: flex;
  100. align-items: center;
  101. &.right-text {
  102. justify-content: flex-end;
  103. }
  104. }
  105. .date-text {
  106. font-size: 28rpx;
  107. color: #1A1A1A;
  108. font-weight: 500;
  109. &.is-empty {
  110. color: #A0AABF;
  111. font-weight: 400;
  112. font-size: 28rpx;
  113. }
  114. }
  115. .date-separator {
  116. color: #A0AABF;
  117. margin: 0 30rpx;
  118. font-size: 28rpx;
  119. font-weight: 500;
  120. }
  121. }
  122. .picker-overlay {
  123. position: absolute;
  124. inset: 0;
  125. z-index: 10;
  126. opacity: 0;
  127. width: 100%;
  128. height: 100%;
  129. }
  130. }
  131. .textarea-box {
  132. background-color: #F8FAFC;
  133. border-radius: 16rpx;
  134. padding: 24rpx;
  135. transition: all 0.3s ease;
  136. border: 2rpx solid transparent;
  137. &:focus-within {
  138. background-color: #EBF1FA;
  139. border-color: rgba(31, 108, 255, 0.2);
  140. }
  141. textarea {
  142. width: 100%;
  143. height: 160rpx;
  144. font-size: 28rpx;
  145. color: #1A1A1A;
  146. line-height: 1.6;
  147. font-weight: 400;
  148. }
  149. .ph-style {
  150. color: #A0AABF;
  151. font-size: 28rpx;
  152. }
  153. }
  154. }
  155. .switch-row {
  156. display: flex;
  157. justify-content: space-between;
  158. align-items: center;
  159. padding: 30rpx 8rpx;
  160. border-top: 1rpx solid #F0F4FC;
  161. margin-top: 20rpx;
  162. &:first-of-type {
  163. margin-top: 40rpx;
  164. }
  165. .s-label {
  166. font-size: 32rpx;
  167. font-weight: 500;
  168. color: #1A1A1A;
  169. }
  170. }
  171. }
  172. .footer-btn-area {
  173. width: 100vw;
  174. box-sizing: border-box;
  175. padding: 30rpx 40rpx calc(env(safe-area-inset-bottom) + 30rpx);
  176. background-color: transparent;
  177. .btn-save {
  178. width: 100%;
  179. height: 80rpx;
  180. display: flex;
  181. justify-content: center;
  182. align-items: center;
  183. background: linear-gradient(135deg, $brand-primary 0%, #0052D9 100%);
  184. color: #FFFFFF;
  185. font-size: 28rpx;
  186. font-weight: 600;
  187. border-radius: 40rpx;
  188. transition: all 0.3s;
  189. border: none;
  190. box-shadow: 0 12rpx 24rpx rgba(31, 108, 255, 0.25);
  191. margin: 0;
  192. &::after {
  193. border: none;
  194. }
  195. &:active {
  196. opacity: 0.8;
  197. transform: scale(0.98);
  198. box-shadow: 0 6rpx 12rpx rgba(31, 108, 255, 0.2);
  199. }
  200. &.is-disabled {
  201. background: #E5E9F2;
  202. color: #A0AABF;
  203. box-shadow: none;
  204. opacity: 1;
  205. pointer-events: none;
  206. }
  207. }
  208. }