stationList.scss 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375
  1. .slot-wrap {
  2. display: flex;
  3. align-items: center;
  4. /* 如果您想让slot内容占满整个导航栏的宽度 */
  5. flex: 1;
  6. /* 如果您想让slot内容与导航栏左右有空隙 */
  7. /* padding: 0 30rpx; */
  8. }
  9. .action-bar {
  10. text-align: center;
  11. pointer-events: auto;
  12. position: relative;
  13. .button {
  14. line-height: 40rpx;
  15. padding: 16rpx;
  16. background-color: #ffffff;
  17. }
  18. .city {
  19. position: absolute;
  20. border-radius: 40px;
  21. padding: 10rpx 30rpx;
  22. margin-left: 20rpx;
  23. background-color: rgb(247, 247, 247);
  24. }
  25. .scan {
  26. width: 240rpx;
  27. height: 84rpx;
  28. background-image: linear-gradient(230deg, #00a5ff 7%, #0089c9 100%);
  29. box-shadow: 0 1px 12px 0 #0089c980;
  30. border-radius: 20px;
  31. font-size: 28rpx;
  32. line-height: 50rpx;
  33. color: #ffffff;
  34. margin: 0 auto;
  35. img {
  36. width: 40rpx;
  37. height: 40rpx;
  38. vertical-align: text-bottom;
  39. margin-right: 16rpx;
  40. }
  41. }
  42. .right {
  43. position: absolute;
  44. right: 30rpx;
  45. bottom: 0;
  46. .button {
  47. position: relative;
  48. width: 80rpx;
  49. height: 80rpx;
  50. margin-top: 20rpx;
  51. margin-right: 0;
  52. box-shadow: 0 1px 4px 1px rgba(0, 0, 0, 0.1);
  53. border-radius: 10px;
  54. padding: 0;
  55. img {
  56. width: 80rpx;
  57. height: 80rpx;
  58. }
  59. &.scan {
  60. width: 80rpx;
  61. height: 80rpx;
  62. background-image: linear-gradient(230deg, #00a5ff 7%, #0089c9 100%);
  63. box-shadow: 0 1px 12px 0 rgba(0, 201, 164, 0.5);
  64. color: #ffffff;
  65. }
  66. &.ui-map {
  67. background-image: url(/static/map/ui-map.png);
  68. background-size: 80rpx auto;
  69. background-position-y: top;
  70. }
  71. &.ui-list {
  72. background-image: url(/static/map/ui-list.png);
  73. background-size: 80rpx auto;
  74. background-position-y: top;
  75. }
  76. &.current-location {
  77. background-image: url(/static/map/current-location.png);
  78. background-size: 80rpx auto;
  79. background-position-y: top;
  80. }
  81. }
  82. .floatBtn {
  83. position: relative;
  84. width: 80rpx;
  85. height: 80rpx;
  86. margin-top: 20rpx;
  87. margin-right: 0;
  88. }
  89. }
  90. }
  91. .sort-radius {
  92. margin: 0 8rpx;
  93. background: #7c7c7c15;
  94. height: 50rpx;
  95. display: flex;
  96. flex-direction: column;
  97. align-items: center;
  98. justify-content: center;
  99. border-radius: 1000px;
  100. font-size: 24rpx;
  101. }
  102. .flex {
  103. padding: 0 20rpx;
  104. margin-top: 20rpx;
  105. flex-wrap: wrap;
  106. align-items: center;
  107. > .city-item {
  108. width: 20%;
  109. text-align: center;
  110. }
  111. > .sort-brand-item {
  112. width: 20%;
  113. text-align: center;
  114. }
  115. }
  116. .sort-active {
  117. background: rgba(0, 201, 164, 0.1);
  118. border: 1px solid #0974c5;
  119. color: #0974c5;
  120. }
  121. .button-city {
  122. line-height: 40rpx;
  123. padding: 16rpx;
  124. background-color: #ffffff;
  125. position: absolute;
  126. border-radius: 40px;
  127. padding: 10rpx 30rpx;
  128. }
  129. .top-wrapper {
  130. position: fixed;
  131. top: 0;
  132. padding-top: calc(var(--status-bar-height) + 50rpx);
  133. height: calc(var(--status-bar-height) + 120rpx);
  134. width: 100%;
  135. z-index: 1;
  136. }
  137. .view-item {
  138. display: flex;
  139. justify-content: space-between;
  140. align-items: center;
  141. padding-right: 24rpx;
  142. }
  143. .view-item-change {
  144. text-align: right;
  145. > .-money {
  146. font-size: 36rpx;
  147. color: $main-color;
  148. font-weight: bold;
  149. }
  150. > .-time {
  151. font-size: 22rpx;
  152. color: #999;
  153. }
  154. }
  155. .view-item-detail {
  156. line-height: 1.75;
  157. flex: 1;
  158. > .-title {
  159. font-size: 28rpx;
  160. }
  161. > .-number {
  162. font-size: 24rpx;
  163. color: #bdbfc0;
  164. }
  165. }
  166. .bottom-wrapper {
  167. pointer-events: none;
  168. position: fixed;
  169. bottom: 20rpx;
  170. width: 100%;
  171. text-align: left;
  172. z-index: 1;
  173. }
  174. .stationCard {
  175. pointer-events: auto;
  176. background-color: #fff;
  177. background-image: radial-gradient(
  178. ellipse at 64% 0%,
  179. #00aeff39 0%,
  180. rgba(0, 255, 213, 0) 34%
  181. ),
  182. radial-gradient(ellipse at 25% 0%, #00ffd534 0%, rgba(0, 255, 213, 0) 35%);
  183. width: 700rpx;
  184. border-radius: 10px;
  185. margin: 20rpx auto;
  186. text-align: left;
  187. padding: 20rpx 30rpx 20rpx;
  188. line-height: 1.5;
  189. .close {
  190. font-size: 40rpx;
  191. font-weight: 400;
  192. line-height: 40rpx;
  193. float: right;
  194. margin-left: 20rpx;
  195. }
  196. .title {
  197. font-size: 30rpx;
  198. line-height: 60rpx;
  199. font-weight: 500;
  200. display: flex;
  201. align-items: center;
  202. .name {
  203. flex: 1;
  204. overflow: hidden;
  205. text-overflow: ellipsis;
  206. white-space: nowrap;
  207. }
  208. }
  209. .address {
  210. height: 36rpx;
  211. font-size: 22rpx;
  212. color: #707070;
  213. }
  214. .tag {
  215. font-size: 22rpx;
  216. border: 2rpx solid #80808042;
  217. border-radius: 30rpx;
  218. display: inline;
  219. padding: 4rpx 12rpx;
  220. margin-left: 10rpx;
  221. line-height: 1;
  222. img {
  223. width: 20rpx;
  224. height: 20rpx;
  225. margin-right: 6rpx;
  226. }
  227. &.nearest {
  228. padding: 4rpx 12rpx;
  229. color: #00a5ff;
  230. border: 2rpx solid #00a5ff;
  231. }
  232. }
  233. .tags {
  234. min-height: 48rpx;
  235. margin-top: 6rpx;
  236. }
  237. .price {
  238. font-size: 36rpx;
  239. line-height: 1;
  240. font-weight: 500;
  241. margin-right: 10rpx;
  242. }
  243. .unit {
  244. font-size: 22rpx;
  245. color: #707070;
  246. }
  247. .bottom {
  248. display: flex;
  249. justify-content: space-between;
  250. margin-top: 16rpx;
  251. }
  252. .label {
  253. display: inline-block;
  254. margin-left: 10rpx;
  255. height: 40rpx;
  256. line-height: 38rpx;
  257. font-size: 20rpx;
  258. padding: 0 10rpx 0 50rpx;
  259. background-position: left top;
  260. background-repeat: no-repeat;
  261. background-size: 42rpx 100%;
  262. border-radius: 5px;
  263. }
  264. .label.fast {
  265. border: 1px solid #00a5ff;
  266. background-image: url(/static/map/fast-pile-count-l.png);
  267. }
  268. .label.slow {
  269. margin-left: 20rpx;
  270. border: 1px solid #ff9920;
  271. background-image: url(/static/map/slow-pile-count-l.png);
  272. }
  273. }
  274. .list {
  275. margin-top: 180rpx;
  276. .stationCard {
  277. background: #ffffff;
  278. box-shadow: 0 2px 2px 1px rgba(0, 0, 0, 0.05);
  279. }
  280. }
  281. .coupon-tag {
  282. /deep/ .u-tag {
  283. color: #ffffff;
  284. background-color: #f28227;
  285. border-color: transparent;
  286. position: absolute;
  287. margin-left: 5px;
  288. width: 90rpx;
  289. }
  290. }
  291. /* DarkMode 下的样式 start */
  292. @media (prefers-color-scheme: dark) {
  293. .stationCard {
  294. color: #ffffff;
  295. background-color: #222336;
  296. .title {
  297. color: #ffffff;
  298. }
  299. .divider {
  300. border-color: #5a5a5a;
  301. }
  302. .time,
  303. .address {
  304. color: #a9a9a9;
  305. }
  306. }
  307. .list {
  308. color: #ffffff;
  309. background-color: #121425;
  310. .stationCard {
  311. background-color: #222336;
  312. }
  313. }
  314. .action-bar {
  315. .button {
  316. background: #3a3c58;
  317. &.ui-map {
  318. background-position-y: bottom !important;
  319. }
  320. &.ui-list {
  321. background-position-y: bottom !important;
  322. }
  323. &.current-location {
  324. background-position-y: bottom !important;
  325. }
  326. }
  327. }
  328. }