map.wxss 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. .map-container {
  2. display: flex;
  3. flex-direction: column;
  4. height: 100vh;
  5. background-color: #f8f9fa;
  6. }
  7. /* 顶部导航栏 */
  8. .navbar {
  9. display: flex;
  10. align-items: center;
  11. justify-content: space-between;
  12. padding: 50rpx 30rpx 20rpx;
  13. background-color: #ffffff;
  14. position: relative;
  15. z-index: 10;
  16. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
  17. }
  18. .back-btn {
  19. display: flex;
  20. align-items: center;
  21. padding: 10rpx 20rpx;
  22. border-radius: 30rpx;
  23. background-color: rgba(0, 0, 0, 0.05);
  24. transition: all 0.2s ease;
  25. }
  26. .back-btn:active {
  27. background-color: rgba(0, 0, 0, 0.1);
  28. }
  29. .back-icon {
  30. font-size: 32rpx;
  31. color: #333;
  32. font-weight: bold;
  33. margin-right: 5rpx;
  34. }
  35. .back-text {
  36. font-size: 28rpx;
  37. color: #333;
  38. }
  39. .title {
  40. font-size: 32rpx;
  41. font-weight: bold;
  42. color: #333;
  43. position: absolute;
  44. left: 50%;
  45. transform: translateX(-50%);
  46. }
  47. /* 地图视图 */
  48. .map-view {
  49. flex: 1;
  50. position: relative;
  51. overflow: hidden;
  52. }
  53. .map {
  54. width: 100%;
  55. height: 100%;
  56. }
  57. /* 搜索框 */
  58. .search-box {
  59. position: absolute;
  60. top: 20rpx;
  61. left: 30rpx;
  62. right: 30rpx;
  63. height: 80rpx;
  64. background-color: #fff;
  65. border-radius: 40rpx;
  66. display: flex;
  67. align-items: center;
  68. padding: 0 30rpx;
  69. box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.1);
  70. z-index: 100;
  71. }
  72. .search-icon {
  73. font-size: 36rpx;
  74. margin-right: 20rpx;
  75. color: #999;
  76. }
  77. .search-input {
  78. flex: 1;
  79. height: 80rpx;
  80. font-size: 28rpx;
  81. }
  82. /* 测试按钮 */
  83. .debug-panel {
  84. position: absolute;
  85. top: 20rpx;
  86. right: 30rpx;
  87. display: flex;
  88. flex-direction: column;
  89. gap: 10rpx;
  90. z-index: 100;
  91. }
  92. .debug-btn {
  93. padding: 10rpx 15rpx;
  94. border-radius: 10rpx;
  95. background-color: rgba(255, 255, 255, 0.8);
  96. box-shadow: 0 2rpx 6rpx rgba(0,0,0,0.1);
  97. transition: all 0.2s ease;
  98. text-align: center;
  99. }
  100. .debug-btn:active {
  101. background-color: rgba(0, 0, 0, 0.1);
  102. }
  103. .debug-btn text {
  104. font-size: 28rpx;
  105. color: #333;
  106. }
  107. /* 底部面板 */
  108. .bottom-panel {
  109. position: absolute;
  110. bottom: 0;
  111. left: 0;
  112. right: 0;
  113. background-color: #fff;
  114. border-radius: 30rpx 30rpx 0 0;
  115. padding: 30rpx;
  116. box-shadow: 0 -4rpx 20rpx rgba(0, 0, 0, 0.1);
  117. z-index: 100;
  118. display: flex;
  119. flex-direction: column;
  120. max-height: 60vh;
  121. }
  122. .panel-header {
  123. display: flex;
  124. justify-content: space-between;
  125. align-items: center;
  126. margin-bottom: 20rpx;
  127. }
  128. .panel-title {
  129. font-size: 32rpx;
  130. font-weight: bold;
  131. color: #333;
  132. }
  133. .panel-subtitle {
  134. font-size: 24rpx;
  135. color: #999;
  136. }
  137. /* 地点列表 */
  138. .location-list {
  139. max-height: 40vh;
  140. margin-bottom: 20rpx;
  141. }
  142. .location-item {
  143. display: flex;
  144. align-items: center;
  145. padding: 20rpx;
  146. margin-bottom: 10rpx;
  147. background-color: #f8f9fa;
  148. border-radius: 10rpx;
  149. position: relative;
  150. }
  151. .location-item.active {
  152. background-color: #e6f7ff;
  153. }
  154. .location-index {
  155. width: 40rpx;
  156. height: 40rpx;
  157. border-radius: 50%;
  158. background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  159. color: #fff;
  160. display: flex;
  161. justify-content: center;
  162. align-items: center;
  163. font-size: 24rpx;
  164. font-weight: bold;
  165. margin-right: 15rpx;
  166. }
  167. .location-info {
  168. flex: 1;
  169. }
  170. .location-name {
  171. font-size: 28rpx;
  172. font-weight: bold;
  173. color: #333;
  174. margin-bottom: 5rpx;
  175. }
  176. .location-address {
  177. font-size: 24rpx;
  178. color: #999;
  179. }
  180. .location-actions {
  181. display: flex;
  182. }
  183. .action-btn {
  184. width: 60rpx;
  185. height: 60rpx;
  186. display: flex;
  187. justify-content: center;
  188. align-items: center;
  189. }
  190. .delete-btn {
  191. color: #ff4d4f;
  192. }
  193. .action-icon {
  194. font-size: 36rpx;
  195. }
  196. /* 空状态 */
  197. .empty-state {
  198. display: flex;
  199. flex-direction: column;
  200. align-items: center;
  201. justify-content: center;
  202. padding: 40rpx 0;
  203. }
  204. .empty-icon {
  205. font-size: 60rpx;
  206. margin-bottom: 20rpx;
  207. }
  208. .empty-text {
  209. font-size: 28rpx;
  210. color: #999;
  211. }
  212. /* 底部按钮 */
  213. .action-buttons {
  214. display: flex;
  215. justify-content: space-between;
  216. margin-top: 20rpx;
  217. }
  218. .action-btn {
  219. height: 80rpx;
  220. border-radius: 40rpx;
  221. display: flex;
  222. justify-content: center;
  223. align-items: center;
  224. font-size: 28rpx;
  225. transition: all 0.3s ease;
  226. }
  227. .secondary {
  228. width: 30%;
  229. background-color: #f0f0f0;
  230. color: #666;
  231. }
  232. .secondary:active {
  233. background-color: #e0e0e0;
  234. }
  235. .primary {
  236. width: 65%;
  237. background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  238. color: #fff;
  239. box-shadow: 0 4rpx 15rpx rgba(79, 172, 254, 0.4);
  240. }
  241. .primary:active {
  242. transform: translateY(2rpx);
  243. box-shadow: 0 2rpx 8rpx rgba(79, 172, 254, 0.3);
  244. }
  245. .disabled {
  246. opacity: 0.6;
  247. }