lijijiaofei.wxss 6.4 KB

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