lijijiaofei.wxss 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405
  1. .container {
  2. display: flex;
  3. flex-direction: column;
  4. background-color: #f5f5f5;
  5. min-height: 100vh;
  6. padding-bottom: 30rpx;
  7. position: relative;
  8. height: 100vh;
  9. overflow: hidden;
  10. }
  11. .header {
  12. position: relative;
  13. width: 100%;
  14. height: 180rpx;
  15. }
  16. .header .background {
  17. position: absolute;
  18. top: 0;
  19. left: 0;
  20. width: 100%;
  21. height: 100%;
  22. background: linear-gradient(180deg, rgba(46, 130, 255, 1) 0%, rgba(46, 130, 255, 1) 84.9%, rgba(46, 130, 255, 0) 100%);
  23. }
  24. .back-icon {
  25. position: absolute;
  26. left: 30rpx;
  27. top: 120rpx;
  28. font-size: 40rpx;
  29. color: white;
  30. z-index: 10;
  31. width: 60rpx;
  32. height: 60rpx;
  33. display: flex;
  34. align-items: center;
  35. justify-content: center;
  36. }
  37. .header-title {
  38. text-align: center;
  39. font-size: 36rpx;
  40. margin-bottom: 20rpx;
  41. }
  42. .user-info-container {
  43. position: relative;
  44. display: flex;
  45. justify-content: space-between;
  46. align-items: flex-start;
  47. padding: 0rpx 30rpx;
  48. top: -180rpx;
  49. width: 100%;
  50. box-sizing: border-box;
  51. }
  52. .user-info {
  53. background-color: transparent;
  54. color: white;
  55. padding: 30rpx;
  56. border-radius: 20rpx;
  57. position: relative;
  58. width: 100%;
  59. }
  60. .user-name {
  61. font-size: 40rpx;
  62. font-weight: bold;
  63. margin-bottom: 24rpx;
  64. }
  65. .user-id, .user-address {
  66. display: flex;
  67. align-items: center;
  68. font-size: 30rpx;
  69. margin-bottom: 20rpx;
  70. color: rgba(255, 255, 255, 1);
  71. }
  72. .id-icon, .address-icon {
  73. width: 32rpx;
  74. height: 32rpx;
  75. margin-right: 10rpx;
  76. }
  77. .user-phone, .user-address {
  78. display: flex;
  79. font-size: 15px;
  80. margin-bottom: 3px;
  81. color: rgba(255, 255, 255, 1);
  82. }
  83. .user-phone image, .user-address image {
  84. width: 32rpx;
  85. height: 32rpx;
  86. margin-right: 10rpx;
  87. }
  88. .edit-btn {
  89. position: absolute;
  90. right: 30rpx;
  91. top: 30rpx;
  92. font-size: 28rpx;
  93. color: #1989fa;
  94. padding: 10rpx 20rpx;
  95. border: 1px solid #1989fa;
  96. border-radius: 30rpx;
  97. }
  98. .payment-section {
  99. position: relative;
  100. background-color: transparent;
  101. margin: -10rpx 30rpx 0 30rpx;
  102. border-radius: 120rpx;
  103. padding: 0;
  104. top: -180rpx;
  105. box-shadow: none;
  106. width: calc(100% - 70rpx);
  107. box-sizing: border-box;
  108. }
  109. .payment-title {
  110. font-size: 32rpx;
  111. color: rgba(46, 48, 56, 1);
  112. margin-bottom: 20rpx;
  113. }
  114. .payment-amount {
  115. font-size: 60rpx;
  116. color: rgba(239, 93, 93, 1);
  117. font-weight: bold;
  118. margin: 30rpx 0;
  119. }
  120. .quick-amounts {
  121. display: flex;
  122. flex-wrap: wrap;
  123. justify-content: space-between;
  124. margin-top: 20rpx;
  125. }
  126. .amount-item {
  127. width: 30%;
  128. text-align: center;
  129. background-color: #f5f5f5;
  130. padding: 20rpx 0;
  131. margin-bottom: 20rpx;
  132. border-radius: 8rpx;
  133. font-size: 32rpx;
  134. }
  135. .usage-info {
  136. margin-top: 30rpx;
  137. font-size: 28rpx;
  138. color: #666;
  139. line-height: 1.6;
  140. }
  141. .pay-btn {
  142. background-color: #1989fa;
  143. color: white;
  144. font-size: 36rpx;
  145. text-align: center;
  146. padding: 24rpx 0;
  147. border-radius: 60rpx;
  148. margin: 40rpx auto;
  149. margin-bottom: 160rpx;
  150. width: 85%;
  151. max-width: 800rpx;
  152. }
  153. .switch-meter {
  154. padding: 5px 10px;
  155. background-color: #f0f0f0;
  156. border-radius: 4px;
  157. font-size: 14px;
  158. color: #333;
  159. }
  160. /* 金额显示样式 */
  161. .amount-container {
  162. background-color: white;
  163. border-radius: 20rpx;
  164. padding: 40rpx 30rpx 1rpx;
  165. box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.08);
  166. }
  167. .amount-title {
  168. font-size: 34rpx;
  169. color: rgba(46, 48, 56, 1);
  170. margin-bottom: 10rpx;
  171. }
  172. .amount-display {
  173. position: relative;
  174. margin-bottom: 30rpx;
  175. display: flex;
  176. align-items: flex-end;
  177. }
  178. .amount-value {
  179. font-size: 72rpx;
  180. color: rgba(239, 93, 93, 1);
  181. font-weight: bold;
  182. line-height: 1;
  183. }
  184. .amount-unit {
  185. font-size: 28rpx;
  186. color: #333;
  187. margin-left: 4rpx;
  188. margin-bottom: 10rpx;
  189. }
  190. /* 余额信息样式调整 */
  191. .balance-info {
  192. display: flex;
  193. font-size: 34rpx;
  194. margin-bottom: 30rpx;
  195. align-items: center;
  196. }
  197. .balance-label {
  198. color: #666;
  199. }
  200. .balance-value {
  201. color: rgba(239, 93, 93, 1);
  202. font-weight: bold;
  203. }
  204. .balance-unit {
  205. color: #333;
  206. margin-right: 10rpx;
  207. }
  208. .margin-left {
  209. margin-left: 20rpx;
  210. }
  211. /* 快捷金额选择 */
  212. .quick-amount {
  213. display: flex;
  214. flex-wrap: wrap;
  215. justify-content: space-between;
  216. margin-bottom: 15px;
  217. }
  218. .amount-btn {
  219. width: 30%;
  220. text-align: center;
  221. padding: 24rpx 0;
  222. border: 2rpx solid #ddd;
  223. border-radius: 10rpx;
  224. margin-bottom: 24rpx;
  225. font-size: 34rpx;
  226. color: #333;
  227. background-color: rgba(242, 245, 250, 1);
  228. }
  229. .amount-btn:active {
  230. background-color: #f5f5f5;
  231. }
  232. .custom-amount {
  233. color: #1e90ff;
  234. border-color: #1e90ff;
  235. }
  236. .custom-amount:active {
  237. background-color: rgba(30, 144, 255, 0.05);
  238. }
  239. /* 温馨提示位置调整 */
  240. .tips {
  241. font-size: 24rpx;
  242. color: #999;
  243. padding: 20rpx 30rpx;
  244. top: -180rpx;
  245. text-align: left;
  246. border-top: none;
  247. position: relative;
  248. left: -100rpx;
  249. }
  250. .tips-title {
  251. color: rgba(239, 93, 93, 1);
  252. }
  253. tips-content {
  254. color: rgba(104, 108, 128, 1);
  255. }
  256. /* 数字键盘样式优化 */
  257. .keyboard {
  258. position: fixed;
  259. bottom: 0;
  260. left: 0;
  261. right: 0;
  262. background-color: #f0f0f0;
  263. padding: 20rpx;
  264. z-index: 1000;
  265. border-top: 2rpx solid #ddd;
  266. }
  267. .keyboard-row {
  268. display: flex;
  269. justify-content: space-between;
  270. margin-bottom: 20rpx;
  271. }
  272. .key {
  273. width: 23%;
  274. height: 100rpx;
  275. background-color: white;
  276. border-radius: 10rpx;
  277. display: flex;
  278. justify-content: center;
  279. align-items: center;
  280. font-size: 40rpx;
  281. box-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.1);
  282. margin: 0 10rpx;
  283. }
  284. .key.zero {
  285. width: 48%;
  286. }
  287. .delete {
  288. background-color: #f5f5f5;
  289. }
  290. .delete image {
  291. width: 48rpx;
  292. height: 48rpx;
  293. }
  294. .confirm {
  295. background-color: #1e90ff;
  296. color: white;
  297. }
  298. /* 自定义金额输入框样式 - 修改为与快捷金额按钮一致 */
  299. .custom-input-container {
  300. width: 100%;
  301. display: flex;
  302. align-items: center;
  303. border: 2rpx solid #ddd; /* 默认边框颜色与快捷金额按钮一致 */
  304. border-radius: 10rpx;
  305. margin-bottom: 24rpx;
  306. padding: 0 10rpx;
  307. background-color: rgba(242, 245, 250, 1);
  308. }
  309. /* 自定义金额输入框选中状态 */
  310. .custom-input-container.selected {
  311. border: 2rpx solid rgba(46, 125, 253, 1);
  312. }
  313. .yuan-symbol {
  314. color: rgba(63, 65, 76, 1); /* 默认颜色 */
  315. font-size: 34rpx;
  316. margin-right: 4rpx;
  317. }
  318. /* 选中状态下的¥符号颜色 */
  319. .custom-input-container.selected .yuan-symbol {
  320. color: rgba(46, 125, 253, 1);
  321. }
  322. .custom-amount-input {
  323. flex: 1;
  324. height: 80rpx;
  325. font-size: 34rpx;
  326. color: #333;
  327. }
  328. /* 选中状态下的输入框文字颜色 */
  329. .custom-input-container.selected .custom-amount-input {
  330. color: rgba(46, 125, 253, 1);
  331. }
  332. /* 添加选中状态的样式 */
  333. .amount-btn.selected {
  334. border: 2rpx solid rgba(46, 125, 253, 1);
  335. color: rgba(46, 125, 253, 1);
  336. }
  337. /* 固定返回按钮样式 */
  338. .fixed-back {
  339. position: fixed;
  340. top: 50rpx;
  341. left: 30rpx;
  342. z-index: 999;
  343. border-radius: 50%;
  344. width: 50rpx;
  345. height: 200rpx;
  346. display: flex;
  347. align-items: center;
  348. color: rgba(255, 255, 255, 1);
  349. }
  350. .scrollable-content {
  351. height: 100%;
  352. width: 100%;
  353. }