与牧同行-小程序用户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

315 lines
4.6 KiB

  1. .container {
  2. padding: 30rpx;
  3. min-height: 100vh;
  4. background: #f5f5f5;
  5. }
  6. /* 已选择路径 */
  7. .selected-path {
  8. background: white;
  9. border-radius: 16rpx;
  10. padding: 30rpx;
  11. margin-bottom: 30rpx;
  12. box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.05);
  13. }
  14. .path-title {
  15. font-size: 28rpx;
  16. color: #666;
  17. display: block;
  18. margin-bottom: 20rpx;
  19. }
  20. .path-items {
  21. display: flex;
  22. flex-wrap: wrap;
  23. align-items: center;
  24. margin-bottom: 20rpx;
  25. }
  26. .path-item {
  27. display: flex;
  28. align-items: center;
  29. padding: 12rpx 20rpx;
  30. background: #f0f8ff;
  31. border-radius: 8rpx;
  32. margin-right: 10rpx;
  33. margin-bottom: 10rpx;
  34. cursor: pointer;
  35. }
  36. .path-item:active {
  37. background: #e1f0ff;
  38. }
  39. .path-item.last {
  40. background: #e6f7ff;
  41. border: 1rpx solid #1890ff;
  42. }
  43. .path-item text:first-child {
  44. font-size: 28rpx;
  45. color: #1890ff;
  46. font-weight: 500;
  47. }
  48. .separator {
  49. margin-left: 10rpx;
  50. color: #999;
  51. }
  52. /* 选择按钮 */
  53. .select-btn-container {
  54. margin: 40rpx 0;
  55. }
  56. .select-btn {
  57. width: 100%;
  58. background: linear-gradient(135deg, #1890ff, #096dd9);
  59. color: white;
  60. border-radius: 12rpx;
  61. font-size: 32rpx;
  62. height: 88rpx;
  63. line-height: 88rpx;
  64. border: none;
  65. }
  66. .select-btn::after {
  67. border: none;
  68. }
  69. .select-btn[loading] {
  70. opacity: 0.8;
  71. }
  72. .select-btn:active {
  73. opacity: 0.9;
  74. }
  75. /* 操作按钮 */
  76. .action-buttons {
  77. display: flex;
  78. gap: 20rpx;
  79. margin-top: 50rpx;
  80. }
  81. .btn {
  82. flex: 1;
  83. border-radius: 12rpx;
  84. font-size: 28rpx;
  85. height: 80rpx;
  86. line-height: 80rpx;
  87. border: none;
  88. }
  89. .btn::after {
  90. border: none;
  91. }
  92. .complete-btn {
  93. background: #07c160;
  94. color: white;
  95. }
  96. .complete-btn[disabled] {
  97. background: #ccc;
  98. color: #999;
  99. }
  100. .complete-btn:active:not([disabled]) {
  101. background: #06ad56;
  102. }
  103. .reset-btn {
  104. background: #fff;
  105. color: #ff4d4f;
  106. border: 1rpx solid #ff4d4f !important;
  107. }
  108. .reset-btn:active {
  109. background: #fff5f5;
  110. }
  111. /* 选择器模态框 */
  112. .picker-modal {
  113. position: fixed;
  114. top: 0;
  115. left: 0;
  116. right: 0;
  117. bottom: 0;
  118. z-index: 1000;
  119. }
  120. .picker-mask {
  121. position: absolute;
  122. top: 0;
  123. left: 0;
  124. right: 0;
  125. bottom: 0;
  126. background: rgba(0, 0, 0, 0.5);
  127. animation: fadeIn 0.3s ease;
  128. }
  129. .picker-content {
  130. position: absolute;
  131. bottom: 0;
  132. left: 0;
  133. right: 0;
  134. background: white;
  135. border-radius: 32rpx 32rpx 0 0;
  136. max-height: 70vh;
  137. display: flex;
  138. flex-direction: column;
  139. animation: slideUp 0.3s ease;
  140. }
  141. .picker-header {
  142. padding: 32rpx 40rpx;
  143. border-bottom: 1rpx solid #f0f0f0;
  144. display: flex;
  145. align-items: center;
  146. justify-content: space-between;
  147. position: relative;
  148. }
  149. .picker-title {
  150. font-size: 32rpx;
  151. color: #333;
  152. font-weight: 600;
  153. flex: 1;
  154. text-align: center;
  155. }
  156. .picker-close {
  157. font-size: 48rpx;
  158. color: #999;
  159. position: absolute;
  160. right: 30rpx;
  161. top: 50%;
  162. transform: translateY(-50%);
  163. width: 60rpx;
  164. height: 60rpx;
  165. text-align: center;
  166. line-height: 60rpx;
  167. }
  168. .picker-close:active {
  169. background: #f5f5f5;
  170. border-radius: 50%;
  171. }
  172. .picker-body {
  173. flex: 1;
  174. overflow: hidden;
  175. }
  176. /* 加载状态 */
  177. .loading-container {
  178. display: flex;
  179. flex-direction: column;
  180. align-items: center;
  181. justify-content: center;
  182. height: 300rpx;
  183. }
  184. .loading-spinner {
  185. width: 60rpx;
  186. height: 60rpx;
  187. border: 4rpx solid #f0f0f0;
  188. border-top-color: #1890ff;
  189. border-radius: 50%;
  190. animation: spin 1s linear infinite;
  191. margin-bottom: 20rpx;
  192. }
  193. .loading-text {
  194. font-size: 28rpx;
  195. color: #999;
  196. }
  197. /* 区域列表 */
  198. .region-list {
  199. height: 60vh;
  200. }
  201. .region-item {
  202. padding: 32rpx 40rpx;
  203. border-bottom: 1rpx solid #f0f0f0;
  204. display: flex;
  205. align-items: center;
  206. justify-content: space-between;
  207. }
  208. .region-item:active {
  209. background: #f5f5f5;
  210. }
  211. .region-info {
  212. flex: 1;
  213. }
  214. .region-name {
  215. font-size: 30rpx;
  216. color: #333;
  217. display: block;
  218. margin-bottom: 8rpx;
  219. }
  220. .arrow {
  221. color: #ccc;
  222. font-size: 36rpx;
  223. margin-left: 20rpx;
  224. }
  225. /* 空状态 */
  226. .empty-state {
  227. display: flex;
  228. justify-content: center;
  229. align-items: center;
  230. height: 200rpx;
  231. }
  232. .empty-text {
  233. font-size: 28rpx;
  234. color: #999;
  235. }
  236. /* 使用说明 */
  237. .instruction {
  238. margin-top: 60rpx;
  239. padding: 24rpx;
  240. background: white;
  241. border-radius: 12rpx;
  242. border-left: 6rpx solid #1890ff;
  243. }
  244. .instruction-title {
  245. font-size: 28rpx;
  246. color: #1890ff;
  247. font-weight: 600;
  248. display: block;
  249. margin-bottom: 16rpx;
  250. }
  251. .instruction-text {
  252. font-size: 26rpx;
  253. color: #666;
  254. line-height: 1.6;
  255. white-space: pre-line;
  256. }
  257. /* 动画 */
  258. @keyframes fadeIn {
  259. from { opacity: 0; }
  260. to { opacity: 1; }
  261. }
  262. @keyframes slideUp {
  263. from { transform: translateY(100%); }
  264. to { transform: translateY(0); }
  265. }
  266. @keyframes spin {
  267. from { transform: rotate(0deg); }
  268. to { transform: rotate(360deg); }
  269. }