zhangdanlist.wxss 6.4 KB

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