lijijiaofei.wxss 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409
  1. .ljcontainer {
  2. display: flex;
  3. flex-direction: column;
  4. background-color: #f5f5f5;
  5. min-height: 100vh;
  6. padding-bottom: 30rpx;
  7. padding: 0;
  8. box-sizing: border-box;
  9. width: 100%;
  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. .pay-btn.active {
  150. background-color: rgba(46, 130, 255, 1);
  151. opacity: 1;
  152. }
  153. .pay-btn.inactive {
  154. background-color: rgba(46, 130, 255, 0.5);
  155. opacity: 0.8;
  156. }
  157. .switch-meter {
  158. padding: 5px 10px;
  159. background-color: #f0f0f0;
  160. border-radius: 4px;
  161. font-size: 14px;
  162. color: #333;
  163. }
  164. /* 金额显示样式 */
  165. .amount-container {
  166. background-color: white;
  167. border-radius: 20rpx;
  168. padding: 40rpx 30rpx 1rpx;
  169. box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.08);
  170. }
  171. .amount-title {
  172. font-size: 34rpx;
  173. color: rgba(46, 48, 56, 1);
  174. font-weight: 500;
  175. margin-bottom: 10rpx;
  176. }
  177. .amount-display {
  178. position: relative;
  179. margin-bottom: 30rpx;
  180. display: flex;
  181. align-items: flex-end;
  182. }
  183. .amount-value {
  184. font-size: 80rpx;
  185. color: rgba(239, 93, 93, 1);
  186. font-weight: 700;
  187. line-height: 1;
  188. }
  189. .amount-unit {
  190. font-size: 30rpx;
  191. color: rgba(46, 48, 56, 1);
  192. margin-left: 4rpx;
  193. margin-bottom: 10rpx;
  194. }
  195. /* 余额信息样式调整 */
  196. .balance-info {
  197. display: flex;
  198. font-size: 34rpx;
  199. margin-bottom: 30rpx;
  200. align-items: center;
  201. }
  202. .balance-label {
  203. color: rgba(46, 48, 56, 1);
  204. }
  205. .balance-value {
  206. color: rgba(239, 93, 93, 1);
  207. font-weight: 400;
  208. }
  209. .balance-unit {
  210. color: #333;
  211. margin-right: 10rpx;
  212. }
  213. .margin-left {
  214. margin-left: 20rpx;
  215. }
  216. /* 快捷金额选择 */
  217. .quick-amount {
  218. display: flex;
  219. flex-wrap: wrap;
  220. justify-content: space-between;
  221. margin-bottom: 15px;
  222. }
  223. .amount-btn {
  224. width: 30%;
  225. text-align: center;
  226. padding: 24rpx 0;
  227. border-radius: 10rpx;
  228. margin-bottom: 24rpx;
  229. font-size: 32rpx;
  230. color: #333;
  231. background-color: rgba(242, 245, 250, 1);
  232. }
  233. .amount-btn:active {
  234. background-color: #f5f5f5;
  235. }
  236. .custom-amount {
  237. color: #1e90ff;
  238. border-color: #1e90ff;
  239. }
  240. .custom-amount:active {
  241. background-color: rgba(30, 144, 255, 0.05);
  242. }
  243. /* 温馨提示样式 */
  244. .tips {
  245. margin: -200rpx 30rpx 20rpx 30rpx;
  246. color: #999;
  247. border-radius: 16rpx;
  248. padding: 24rpx;
  249. width: calc(100% - 60rpx);
  250. box-sizing: border-box;
  251. }
  252. .tips-header {
  253. margin-bottom: 16rpx;
  254. }
  255. .tips-title {
  256. color: #EF5D5D;
  257. font-size: 28rpx;
  258. font-weight: 500;
  259. }
  260. .tips-body {
  261. display: flex;
  262. flex-direction: column;
  263. gap: 8rpx;
  264. }
  265. .tips-content {
  266. color: #666666;
  267. font-size: 26rpx;
  268. line-height: 1.5;
  269. }
  270. /* 数字键盘样式优化 */
  271. .keyboard {
  272. position: fixed;
  273. bottom: 0;
  274. left: 0;
  275. right: 0;
  276. background-color: #f0f0f0;
  277. padding: 20rpx;
  278. z-index: 1000;
  279. border-top: 2rpx solid #ddd;
  280. }
  281. .keyboard-row {
  282. display: flex;
  283. justify-content: space-between;
  284. margin-bottom: 20rpx;
  285. }
  286. .key {
  287. width: 23%;
  288. height: 100rpx;
  289. background-color: white;
  290. border-radius: 10rpx;
  291. display: flex;
  292. justify-content: center;
  293. align-items: center;
  294. font-size: 40rpx;
  295. box-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.1);
  296. margin: 0 10rpx;
  297. }
  298. .key.zero {
  299. width: 48%;
  300. }
  301. .delete {
  302. background-color: #f5f5f5;
  303. }
  304. .delete image {
  305. width: 48rpx;
  306. height: 48rpx;
  307. }
  308. .confirm {
  309. background-color: #1e90ff;
  310. color: white;
  311. }
  312. /* 自定义金额输入框样式 - 修改为与快捷金额按钮一致 */
  313. .custom-input-container {
  314. width: 100%;
  315. display: flex;
  316. align-items: center;
  317. border-radius: 10rpx;
  318. margin-bottom: 24rpx;
  319. padding: 0 24rpx;
  320. background-color: rgba(242, 245, 250, 1);
  321. }
  322. /* 自定义金额输入框选中状态 */
  323. .custom-input-container.selected {
  324. border: 2rpx solid rgba(46, 125, 253, 1);
  325. }
  326. .yuan-symbol {
  327. color: rgba(63, 65, 76, 1); /* 默认颜色 */
  328. font-size: 34rpx;
  329. margin-right: 4rpx;
  330. }
  331. /* 选中状态下的¥符号颜色 */
  332. .custom-input-container.selected .yuan-symbol {
  333. color: rgba(46, 125, 253, 1);
  334. }
  335. .custom-amount-input {
  336. flex: 1;
  337. height: 80rpx;
  338. font-size: 34rpx;
  339. color: #333;
  340. }
  341. /* 选中状态下的输入框文字颜色 */
  342. .custom-input-container.selected .custom-amount-input {
  343. color: rgba(46, 125, 253, 1);
  344. }
  345. /* 添加选中状态的样式 */
  346. .amount-btn.selected {
  347. border: 2rpx solid rgba(46, 125, 253, 1);
  348. color: rgba(46, 125, 253, 1);
  349. }
  350. .scrollable-content {
  351. height: 100%;
  352. width: 100%;
  353. }