anomaly.css 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. /* 页面背景 */
  2. .anomaly-container {
  3. min-height: 100vh;
  4. background-color: #F7F8FA;
  5. display: flex;
  6. flex-direction: column;
  7. }
  8. .anomaly-scroll {
  9. flex: 1;
  10. padding: 0.625rem 0.9375rem 0;
  11. box-sizing: border-box;
  12. }
  13. /* 内容卡片 */
  14. .ano-card {
  15. background-color: #fff;
  16. border-radius: 0.5rem;
  17. padding: 0.9375rem;
  18. margin-bottom: 0.625rem;
  19. }
  20. /* 节标题 */
  21. .ano-section-title {
  22. display: flex;
  23. align-items: center;
  24. margin-bottom: 0.625rem;
  25. }
  26. .ano-title-bar {
  27. width: 0.1875rem;
  28. height: 0.9375rem;
  29. background-color: #FF9800;
  30. border-radius: 0.09375rem;
  31. margin-right: 0.375rem;
  32. }
  33. .ano-title-text {
  34. font-size: 0.9375rem;
  35. font-weight: bold;
  36. color: #333;
  37. }
  38. /* 异常类型行 */
  39. .ano-type-row {
  40. display: flex;
  41. align-items: center;
  42. justify-content: space-between;
  43. padding: 0.3125rem 0;
  44. }
  45. .ano-type-val {
  46. font-size: 0.875rem;
  47. color: #333;
  48. flex: 1;
  49. }
  50. .ano-type-val.placeholder {
  51. color: #ccc;
  52. }
  53. .ano-right-arrow {
  54. width: 0.625rem;
  55. height: 0.625rem;
  56. }
  57. /* 描述文本框 */
  58. .ano-textarea {
  59. width: 100%;
  60. min-height: 6.25rem;
  61. font-size: 0.875rem;
  62. color: #333;
  63. line-height: 1.6;
  64. background-color: #FAFAFA;
  65. border-radius: 0.3125rem;
  66. padding: 0.625rem;
  67. box-sizing: border-box;
  68. }
  69. /* 照片网格 */
  70. .ano-photo-grid {
  71. display: flex;
  72. flex-wrap: wrap;
  73. gap: 0.5rem;
  74. }
  75. .ano-photo-item {
  76. width: 4.6875rem;
  77. height: 4.6875rem;
  78. border-radius: 0.375rem;
  79. position: relative;
  80. overflow: hidden;
  81. }
  82. .ano-photo-preview {
  83. width: 100%;
  84. height: 100%;
  85. }
  86. .ano-photo-del {
  87. position: absolute;
  88. top: 0.125rem;
  89. right: 0.125rem;
  90. width: 1.125rem;
  91. height: 1.125rem;
  92. line-height: 1rem;
  93. text-align: center;
  94. background-color: rgba(0, 0, 0, 0.5);
  95. color: #fff;
  96. border-radius: 50%;
  97. font-size: 0.875rem;
  98. }
  99. .ano-photo-add {
  100. width: 4.6875rem;
  101. height: 4.6875rem;
  102. border: 0.0625rem dashed #E0E0E0;
  103. border-radius: 0.375rem;
  104. background-color: #FAFAFA;
  105. display: flex;
  106. flex-direction: column;
  107. justify-content: center;
  108. align-items: center;
  109. }
  110. .ano-add-icon {
  111. width: 1.5625rem;
  112. height: 1.5625rem;
  113. margin-bottom: 0.3125rem;
  114. opacity: 0.5;
  115. }
  116. .ano-add-text {
  117. font-size: 0.75rem;
  118. color: #999;
  119. }
  120. /* 底部提交 */
  121. .ano-footer {
  122. position: fixed;
  123. bottom: 0;
  124. left: 0;
  125. width: 100%;
  126. background-color: #FF9800;
  127. padding: 0.625rem 1.25rem;
  128. padding-bottom: constant(safe-area-inset-bottom);
  129. padding-bottom: env(safe-area-inset-bottom);
  130. box-sizing: border-box;
  131. }
  132. .ano-submit-btn {
  133. width: 100%;
  134. height: 2.8125rem;
  135. line-height: 2.8125rem;
  136. background: linear-gradient(90deg, #FF9800 0%, #FF5722 100%);
  137. color: #fff;
  138. font-size: 1rem;
  139. font-weight: bold;
  140. border-radius: 1.40625rem;
  141. border: none;
  142. }
  143. .ano-submit-btn::after {
  144. border: none;
  145. }
  146. /* 异常类型选择器 */
  147. .ano-sheet-mask {
  148. position: fixed;
  149. top: 0;
  150. left: 0;
  151. width: 100%;
  152. height: 100%;
  153. background-color: rgba(0, 0, 0, 0.5);
  154. z-index: 999;
  155. display: flex;
  156. align-items: flex-end;
  157. }
  158. .ano-sheet {
  159. width: 100%;
  160. background-color: #fff;
  161. border-radius: 0.75rem 0.75rem 0 0;
  162. padding-bottom: constant(safe-area-inset-bottom);
  163. padding-bottom: env(safe-area-inset-bottom);
  164. }
  165. .ano-sheet-title {
  166. display: block;
  167. text-align: center;
  168. font-size: 0.875rem;
  169. color: #999;
  170. padding: 0.9375rem 0 0.625rem;
  171. border-bottom: 1px solid #f5f5f5;
  172. }
  173. .ano-sheet-list {
  174. max-height: 60vh;
  175. }
  176. .ano-sheet-item {
  177. display: flex;
  178. align-items: center;
  179. justify-content: space-between;
  180. padding: 0.9375rem 1.25rem;
  181. border-bottom: 1px solid #f9f9f9;
  182. }
  183. .ano-sheet-item-text {
  184. font-size: 1rem;
  185. color: #333;
  186. }
  187. .ano-sheet-item-text.selected {
  188. color: #FF9800;
  189. font-weight: bold;
  190. }
  191. .ano-check-icon {
  192. width: 0.625rem;
  193. height: 0.625rem;
  194. }
  195. .ano-sheet-cancel {
  196. text-align: center;
  197. font-size: 1rem;
  198. color: #999;
  199. padding: 0.9375rem 0;
  200. border-top: 0.5rem solid #F7F8FA;
  201. }