123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395 |
- .container {
- display: flex;
- flex-direction: column;
- background-color: rgba(255, 255, 255, 1);
- min-height: 100vh;
- padding-bottom: 30rpx;
- position: relative;
- height: 100vh;
- overflow: hidden;
- }
- .header {
- position: relative;
- width: 100%;
- height: 180rpx;
- }
- .header .background {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background: linear-gradient(180deg, rgba(46, 130, 255, 1) 0%, rgba(46, 130, 255, 1) 84.9%, rgba(46, 130, 255, 0) 100%);
- }
- .back-icon {
- position: fixed;
- top: 110rpx;
- left: 30rpx;
- z-index: 999;
- width: 40rpx;
- height: 40rpx;
- }
- .header-title {
- text-align: center;
- font-size: 36rpx;
- margin-bottom: 20rpx;
- }
- .user-info-container {
- position: relative;
- display: flex;
- justify-content: space-between;
- align-items: flex-start;
- padding: 0rpx 24rpx;
- top: -190rpx;
- width: 100%;
- box-sizing: border-box;
- }
- .user-info {
- background-color: transparent;
- color: rgba(255, 255, 255, 1);
- padding: 30rpx;
- border-radius: 20rpx;
- position: relative;
- width: 100%;
- }
- .user-name {
- font-size: 40rpx;
- font-weight: 500;
- margin-bottom: 24rpx;
- }
- .user-id, .user-address {
- display: flex;
- align-items: center;
- font-size: 32rpx;
- font-weight: 400;
- margin-bottom: 20rpx;
- color: rgba(255, 255, 255, 1);
- }
- .id-icon, .address-icon {
- width: 40rpx !important;
- height: 40rpx !important;
- margin-right: 10rpx !important;
- }
- .user-phone, .user-address {
- display: flex;
- font-size: 15px;
- margin-bottom: 3px;
- color: rgba(255, 255, 255, 1);
- }
- .user-phone image, .user-address image {
- width: 32rpx;
- height: 32rpx;
- margin-right: 10rpx;
- }
- .edit-btn {
- position: absolute;
- right: 30rpx;
- top: 30rpx;
- font-size: 28rpx;
- color: #1989fa;
- padding: 10rpx 20rpx;
- border: 1px solid #1989fa;
- border-radius: 30rpx;
- }
- .payment-section {
- position: relative;
- background-color: transparent;
- margin: -10rpx 30rpx 0 30rpx;
- border-radius: 120rpx;
- padding: 0;
- top: -200rpx;
- box-shadow: none;
- width: calc(100% - 70rpx);
- box-sizing: border-box;
- }
- .payment-title {
- font-size: 32rpx;
- color: rgba(46, 48, 56, 1);
- margin-bottom: 20rpx;
- }
- .payment-amount {
- font-size: 60rpx;
- color: rgba(239, 93, 93, 1);
- font-weight: bold;
- margin: 30rpx 0;
- }
- .quick-amounts {
- display: flex;
- flex-wrap: wrap;
- justify-content: space-between;
- margin-top: 20rpx;
- }
- .amount-item {
- width: 30%;
- text-align: center;
- background-color: #f5f5f5;
- padding: 20rpx 0;
- margin-bottom: 20rpx;
- border-radius: 8rpx;
- font-size: 32rpx;
- }
- .usage-info {
- margin-top: 30rpx;
- font-size: 28rpx;
- color: #666;
- line-height: 1.6;
- }
- .pay-btn {
- background-color: rgba(46, 130, 255, 1);
- color: rgba(255, 255, 255, 1);
- font-size: 36rpx;
- text-align: center;
- padding: 24rpx 0;
- border-radius: 60rpx;
- margin: 40rpx auto;
- margin-bottom: 160rpx;
- width: 85%;
- max-width: 800rpx;
- }
- .pay-btn.active {
- background-color: rgba(46, 130, 255, 1);
- opacity: 1;
- }
- .pay-btn.inactive {
- background-color: rgba(46, 130, 255, 0.5);
- opacity: 0.8;
- }
- .switch-meter {
- padding: 5px 10px;
- background-color: #f0f0f0;
- border-radius: 4px;
- font-size: 14px;
- color: #333;
- }
- /* 金额显示样式 */
- .amount-container {
- background-color: white;
- border-radius: 20rpx;
- padding: 40rpx 30rpx 1rpx;
- box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.08);
- }
- .amount-title {
- font-size: 34rpx;
- color: rgba(46, 48, 56, 1);
- font-weight: 500;
- margin-bottom: 10rpx;
- }
- .amount-display {
- position: relative;
- margin-bottom: 30rpx;
- display: flex;
- align-items: flex-end;
- }
- .amount-value {
- font-size: 80rpx;
- color: rgba(239, 93, 93, 1);
- font-weight: 700;
- line-height: 1;
- }
- .amount-unit {
- font-size: 30rpx;
- color: rgba(46, 48, 56, 1);
- margin-left: 4rpx;
- margin-bottom: 10rpx;
- }
- /* 余额信息样式调整 */
- .balance-info {
- display: flex;
- font-size: 34rpx;
- margin-bottom: 30rpx;
- align-items: center;
- }
- .balance-label {
- color: rgba(46, 48, 56, 1);
- }
- .balance-value {
- color: rgba(239, 93, 93, 1);
- font-weight: 400;
- }
- .balance-unit {
- color: #333;
- margin-right: 10rpx;
- }
- .margin-left {
- margin-left: 20rpx;
- }
- /* 快捷金额选择 */
- .quick-amount {
- display: flex;
- flex-wrap: wrap;
- justify-content: space-between;
- margin-bottom: 15px;
- }
- .amount-btn {
- width: 30%;
- text-align: center;
- padding: 24rpx 0;
- border-radius: 10rpx;
- margin-bottom: 24rpx;
- font-size: 32rpx;
- color: #333;
- background-color: rgba(242, 245, 250, 1);
- }
- .amount-btn:active {
- background-color: #f5f5f5;
- }
- .custom-amount {
- color: #1e90ff;
- border-color: #1e90ff;
- }
- .custom-amount:active {
- background-color: rgba(30, 144, 255, 0.05);
- }
- /* 温馨提示位置调整 */
- .tips {
- font-size: 24rpx;
- color: #999;
- padding: 20rpx 30rpx;
- top: -200rpx;
- text-align: left;
- border-top: none;
- position: relative;
- left: -100rpx;
- }
- .tips-title {
- color: rgba(239, 93, 93, 1);
- }
- tips-content {
- color: rgba(104, 108, 128, 1);
- }
- /* 数字键盘样式优化 */
- .keyboard {
- position: fixed;
- bottom: 0;
- left: 0;
- right: 0;
- background-color: #f0f0f0;
- padding: 20rpx;
- z-index: 1000;
- border-top: 2rpx solid #ddd;
- }
- .keyboard-row {
- display: flex;
- justify-content: space-between;
- margin-bottom: 20rpx;
- }
- .key {
- width: 23%;
- height: 100rpx;
- background-color: white;
- border-radius: 10rpx;
- display: flex;
- justify-content: center;
- align-items: center;
- font-size: 40rpx;
- box-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.1);
- margin: 0 10rpx;
- }
- .key.zero {
- width: 48%;
- }
- .delete {
- background-color: #f5f5f5;
- }
- .delete image {
- width: 48rpx;
- height: 48rpx;
- }
- .confirm {
- background-color: #1e90ff;
- color: white;
- }
- /* 自定义金额输入框样式 - 修改为与快捷金额按钮一致 */
- .custom-input-container {
- width: 100%;
- display: flex;
- align-items: center;
- border-radius: 10rpx;
- margin-bottom: 24rpx;
- padding: 0 24rpx;
- background-color: rgba(242, 245, 250, 1);
- }
- /* 自定义金额输入框选中状态 */
- .custom-input-container.selected {
- border: 2rpx solid rgba(46, 125, 253, 1);
- }
- .yuan-symbol {
- color: rgba(63, 65, 76, 1); /* 默认颜色 */
- font-size: 34rpx;
- margin-right: 4rpx;
- }
- /* 选中状态下的¥符号颜色 */
- .custom-input-container.selected .yuan-symbol {
- color: rgba(46, 125, 253, 1);
- }
- .custom-amount-input {
- flex: 1;
- height: 80rpx;
- font-size: 34rpx;
- color: #333;
- }
- /* 选中状态下的输入框文字颜色 */
- .custom-input-container.selected .custom-amount-input {
- color: rgba(46, 125, 253, 1);
- }
- /* 添加选中状态的样式 */
- .amount-btn.selected {
- border: 2rpx solid rgba(46, 125, 253, 1);
- color: rgba(46, 125, 253, 1);
- }
- .scrollable-content {
- height: 100%;
- width: 100%;
- }
|