合伙人运营小程序
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

index.wxss 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. page {
  2. background-color: #F7F8FA;
  3. height: 100vh;
  4. box-sizing: border-box;
  5. margin: 0;
  6. padding: 0;
  7. font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  8. }
  9. .container {
  10. width: 100%;
  11. height: 100%;
  12. display: flex;
  13. flex-direction: column;
  14. }
  15. /* 地图样式:占满剩余高度 */
  16. .map {
  17. flex: 1;
  18. width: 100%;
  19. min-height: 50vh;
  20. }
  21. /* 三选项卡样式 */
  22. .tab-container {
  23. display: flex;
  24. background: #FFFFFF;
  25. padding: 8rpx 16rpx;
  26. margin: 8rpx 0;
  27. border-radius: 12rpx;
  28. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.04);
  29. }
  30. .tab-item {
  31. flex: 1;
  32. display: flex;
  33. align-items: center;
  34. justify-content: center;
  35. height: 80rpx;
  36. border-radius: 8rpx;
  37. position: relative;
  38. color: #4E5969;
  39. font-size: 30rpx;
  40. font-weight: 500;
  41. transition: all 0.2s ease;
  42. }
  43. .tab-active {
  44. background: linear-gradient(135deg, #165DFF 0%, #0F4CD3 100%);
  45. color: #FFFFFF;
  46. }
  47. .tab-item:active {
  48. opacity: 0.9;
  49. transform: scale(0.98);
  50. }
  51. .tab-badge {
  52. display: inline-flex;
  53. align-items: center;
  54. justify-content: center;
  55. width: 36rpx;
  56. height: 36rpx;
  57. background: rgba(255, 255, 255, 0.2);
  58. color: #FFFFFF;
  59. font-size: 22rpx;
  60. border-radius: 50%;
  61. margin-left: 8rpx;
  62. }
  63. .tab-item:not(.tab-active) .tab-badge {
  64. background: #E5E6EB;
  65. color: #86909C;
  66. }
  67. .tab-text {
  68. display: inline-block;
  69. }
  70. /* 列表容器样式 */
  71. .list-wrap {
  72. background: #FFFFFF;
  73. margin: 0 16rpx 16rpx;
  74. border-radius: 16rpx;
  75. box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.06);
  76. overflow: hidden;
  77. max-height: 40vh;
  78. overflow-y: auto;
  79. }
  80. .list-header {
  81. display: flex;
  82. justify-content: space-between;
  83. align-items: center;
  84. padding: 24rpx 24rpx 16rpx;
  85. border-bottom: 1rpx solid #F2F3F5;
  86. }
  87. .list-title {
  88. font-size: 32rpx;
  89. font-weight: 600;
  90. color: #1D2129;
  91. }
  92. .list-count {
  93. font-size: 24rpx;
  94. color: #86909C;
  95. }
  96. /* 空数据样式 */
  97. .empty-wrap {
  98. padding: 80rpx 0;
  99. text-align: center;
  100. }
  101. .empty-icon {
  102. font-size: 80rpx;
  103. color: #C9CDD4;
  104. margin-bottom: 20rpx;
  105. }
  106. .empty-text {
  107. font-size: 28rpx;
  108. color: #86909C;
  109. }
  110. /* 列表项卡片样式 */
  111. .list-card {
  112. display: flex;
  113. justify-content: space-between;
  114. align-items: center;
  115. padding: 24rpx;
  116. border-bottom: 1rpx solid #F7F8FA;
  117. transition: background 0.2s ease;
  118. }
  119. .list-card:last-child {
  120. border-bottom: none;
  121. }
  122. .list-card:active {
  123. background: #F7F8FA;
  124. }
  125. .card-left {
  126. flex: 1;
  127. display: flex;
  128. flex-direction: column;
  129. gap: 8rpx;
  130. }
  131. /* 类型标签 */
  132. .card-tag {
  133. display: inline-block;
  134. padding: 4rpx 12rpx;
  135. border-radius: 6rpx;
  136. font-size: 22rpx;
  137. font-weight: 500;
  138. }
  139. .tag-car {
  140. background: #EEF7FF;
  141. color: #165DFF;
  142. }
  143. .tag-station {
  144. background: #E8FFF3;
  145. color: #00B42A;
  146. }
  147. .tag-user {
  148. background: #FFF7E6;
  149. color: #FF7D00;
  150. }
  151. /* 名称/地址/状态 */
  152. .card-name {
  153. font-size: 30rpx;
  154. font-weight: 500;
  155. color: #1D2129;
  156. line-height: 1.4;
  157. }
  158. .card-address {
  159. font-size: 24rpx;
  160. color: #86909C;
  161. line-height: 1.4;
  162. max-width: 500rpx;
  163. white-space: nowrap;
  164. overflow: hidden;
  165. text-overflow: ellipsis;
  166. }
  167. .card-status {
  168. font-size: 22rpx;
  169. color: #FF7D00;
  170. margin-top: 4rpx;
  171. }
  172. /* 右侧详情按钮 */
  173. .card-right {
  174. flex-shrink: 0;
  175. margin-left: 16rpx;
  176. }
  177. .detail-btn {
  178. display: inline-flex;
  179. align-items: center;
  180. justify-content: center;
  181. width: 88rpx;
  182. height: 64rpx;
  183. background: linear-gradient(135deg, #165DFF 0%, #0F4CD3 100%);
  184. color: #FFFFFF;
  185. font-size: 26rpx;
  186. font-weight: 500;
  187. border-radius: 8rpx;
  188. box-shadow: 0 2rpx 8rpx rgba(22, 93, 255, 0.3);
  189. transition: all 0.2s ease;
  190. }
  191. .detail-btn:active {
  192. opacity: 0.9;
  193. transform: scale(0.96);
  194. }
  195. /* 深色模式适配 */
  196. @media (prefers-color-scheme: dark) {
  197. page {
  198. background-color: #1D1D1F;
  199. }
  200. .tab-container, .list-wrap {
  201. background: #2C2C2E;
  202. color: #FFFFFF;
  203. }
  204. .list-title {
  205. color: #FFFFFF;
  206. }
  207. .list-header {
  208. border-bottom-color: #3A3A3C;
  209. }
  210. .list-card {
  211. border-bottom-color: #3A3A3C;
  212. }
  213. .list-card:active {
  214. background: #3A3A3C;
  215. }
  216. .card-address, .list-count {
  217. color: #8E8E93;
  218. }
  219. }