lijijiaofei.wxss 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405
  1. .container {
  2. display: flex;
  3. flex-direction: column;
  4. background-color: rgba(255, 255, 255, 1);
  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: rgba(255, 255, 255, 1);
  55. padding: 30rpx;
  56. border-radius: 20rpx;
  57. position: relative;
  58. width: 100%;
  59. }
  60. .user-name {
  61. font-size: 40rpx;
  62. font-weight: 500;
  63. margin-bottom: 24rpx;
  64. }
  65. .user-id, .user-address {
  66. display: flex;
  67. align-items: center;
  68. font-size: 32rpx;
  69. font-weight: 400;
  70. margin-bottom: 20rpx;
  71. color: rgba(255, 255, 255, 1);
  72. }
  73. .id-icon, .address-icon {
  74. width: 40rpx !important;
  75. height: 40rpx !important;
  76. margin-right: 10rpx !important;
  77. }
  78. .user-phone, .user-address {
  79. display: flex;
  80. font-size: 15px;
  81. margin-bottom: 3px;
  82. color: rgba(255, 255, 255, 1);
  83. }
  84. .user-phone image, .user-address image {
  85. width: 32rpx;
  86. height: 32rpx;
  87. margin-right: 10rpx;
  88. }
  89. .edit-btn {
  90. position: absolute;
  91. right: 30rpx;
  92. top: 30rpx;
  93. font-size: 28rpx;
  94. color: #1989fa;
  95. padding: 10rpx 20rpx;
  96. border: 1px solid #1989fa;
  97. border-radius: 30rpx;
  98. }
  99. .payment-section {
  100. position: relative;
  101. background-color: transparent;
  102. margin: -10rpx 30rpx 0 30rpx;
  103. border-radius: 120rpx;
  104. padding: 0;
  105. top: -180rpx;
  106. box-shadow: none;
  107. width: calc(100% - 70rpx);
  108. box-sizing: border-box;
  109. }
  110. .payment-title {
  111. font-size: 32rpx;
  112. color: rgba(46, 48, 56, 1);
  113. margin-bottom: 20rpx;
  114. }
  115. .payment-amount {
  116. font-size: 60rpx;
  117. color: rgba(239, 93, 93, 1);
  118. font-weight: bold;
  119. margin: 30rpx 0;
  120. }
  121. .quick-amounts {
  122. display: flex;
  123. flex-wrap: wrap;
  124. justify-content: space-between;
  125. margin-top: 20rpx;
  126. }
  127. .amount-item {
  128. width: 30%;
  129. text-align: center;
  130. background-color: #f5f5f5;
  131. padding: 20rpx 0;
  132. margin-bottom: 20rpx;
  133. border-radius: 8rpx;
  134. font-size: 32rpx;
  135. }
  136. .usage-info {
  137. margin-top: 30rpx;
  138. font-size: 28rpx;
  139. color: #666;
  140. line-height: 1.6;
  141. }
  142. .pay-btn {
  143. background-color: rgba(46, 130, 255, 1);
  144. color: rgba(255, 255, 255, 1);
  145. font-size: 36rpx;
  146. text-align: center;
  147. padding: 24rpx 0;
  148. border-radius: 60rpx;
  149. margin: 40rpx auto;
  150. margin-bottom: 160rpx;
  151. width: 85%;
  152. max-width: 800rpx;
  153. }
  154. .switch-meter {
  155. padding: 5px 10px;
  156. background-color: #f0f0f0;
  157. border-radius: 4px;
  158. font-size: 14px;
  159. color: #333;
  160. }
  161. /* 金额显示样式 */
  162. .amount-container {
  163. background-color: white;
  164. border-radius: 20rpx;
  165. padding: 40rpx 30rpx 1rpx;
  166. box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.08);
  167. }
  168. .amount-title {
  169. font-size: 34rpx;
  170. color: rgba(46, 48, 56, 1);
  171. font-weight: 500;
  172. margin-bottom: 10rpx;
  173. }
  174. .amount-display {
  175. position: relative;
  176. margin-bottom: 30rpx;
  177. display: flex;
  178. align-items: flex-end;
  179. }
  180. .amount-value {
  181. font-size: 80rpx;
  182. color: rgba(239, 93, 93, 1);
  183. font-weight: 700;
  184. line-height: 1;
  185. }
  186. .amount-unit {
  187. font-size: 30rpx;
  188. color: rgba(46, 48, 56, 1);
  189. margin-left: 4rpx;
  190. margin-bottom: 10rpx;
  191. }
  192. /* 余额信息样式调整 */
  193. .balance-info {
  194. display: flex;
  195. font-size: 34rpx;
  196. margin-bottom: 30rpx;
  197. align-items: center;
  198. }
  199. .balance-label {
  200. color: rgba(46, 48, 56, 1);
  201. }
  202. .balance-value {
  203. color: rgba(239, 93, 93, 1);
  204. font-weight: 400;
  205. }
  206. .balance-unit {
  207. color: #333;
  208. margin-right: 10rpx;
  209. }
  210. .margin-left {
  211. margin-left: 20rpx;
  212. }
  213. /* 快捷金额选择 */
  214. .quick-amount {
  215. display: flex;
  216. flex-wrap: wrap;
  217. justify-content: space-between;
  218. margin-bottom: 15px;
  219. }
  220. .amount-btn {
  221. width: 30%;
  222. text-align: center;
  223. padding: 24rpx 0;
  224. border-radius: 10rpx;
  225. margin-bottom: 24rpx;
  226. font-size: 32rpx;
  227. color: #333;
  228. background-color: rgba(242, 245, 250, 1);
  229. }
  230. .amount-btn:active {
  231. background-color: #f5f5f5;
  232. }
  233. .custom-amount {
  234. color: #1e90ff;
  235. border-color: #1e90ff;
  236. }
  237. .custom-amount:active {
  238. background-color: rgba(30, 144, 255, 0.05);
  239. }
  240. /* 温馨提示位置调整 */
  241. .tips {
  242. font-size: 24rpx;
  243. color: #999;
  244. padding: 20rpx 30rpx;
  245. top: -180rpx;
  246. text-align: left;
  247. border-top: none;
  248. position: relative;
  249. left: -100rpx;
  250. }
  251. .tips-title {
  252. color: rgba(239, 93, 93, 1);
  253. }
  254. tips-content {
  255. color: rgba(104, 108, 128, 1);
  256. }
  257. /* 数字键盘样式优化 */
  258. .keyboard {
  259. position: fixed;
  260. bottom: 0;
  261. left: 0;
  262. right: 0;
  263. background-color: #f0f0f0;
  264. padding: 20rpx;
  265. z-index: 1000;
  266. border-top: 2rpx solid #ddd;
  267. }
  268. .keyboard-row {
  269. display: flex;
  270. justify-content: space-between;
  271. margin-bottom: 20rpx;
  272. }
  273. .key {
  274. width: 23%;
  275. height: 100rpx;
  276. background-color: white;
  277. border-radius: 10rpx;
  278. display: flex;
  279. justify-content: center;
  280. align-items: center;
  281. font-size: 40rpx;
  282. box-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.1);
  283. margin: 0 10rpx;
  284. }
  285. .key.zero {
  286. width: 48%;
  287. }
  288. .delete {
  289. background-color: #f5f5f5;
  290. }
  291. .delete image {
  292. width: 48rpx;
  293. height: 48rpx;
  294. }
  295. .confirm {
  296. background-color: #1e90ff;
  297. color: white;
  298. }
  299. /* 自定义金额输入框样式 - 修改为与快捷金额按钮一致 */
  300. .custom-input-container {
  301. width: 100%;
  302. display: flex;
  303. align-items: center;
  304. border-radius: 10rpx;
  305. margin-bottom: 24rpx;
  306. padding: 0 24rpx;
  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. }