.container { display: flex; flex-direction: column; background-color: #f5f5f5; min-height: 100vh; padding-bottom: 30rpx; padding: 0; box-sizing: border-box; width: 100%; } .header { position: fixed; top: 0; left: 0; width: 100%; height: 300rpx; z-index: 5; } .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: 120rpx; left: 25rpx; z-index: 999; width: 40rpx; height: 40rpx; } .header-title { text-align: center; font-size: 36rpx; margin-bottom: 20rpx; } .user-info-container { position: fixed; top: 160rpx; left: 0; width: 100%; padding: 0 0rpx; box-sizing: border-box; z-index: 10; } .user-info { background-color: transparent; color: white; padding: 24rpx 36rpx; width: 100%; } .user-name { font-size: 40rpx; font-weight: bold; margin-bottom: 20rpx; } .user-id, .user-address { display: flex; align-items: center; font-size: 30rpx; font-weight: 400; margin-bottom: 10rpx; color: rgba(255, 255, 255, 1); } .id-icon, .address-icon { width: 40rpx; height: 40rpx; margin-right: 10rpx; } .bill-list-container { flex: 1; padding: 20rpx; margin-top: 30rpx; } .bill-date-section { font-size: 32rpx; font-weight: bold; padding: 20rpx 10rpx; color: #333; } .address-info { display: flex; align-items: center; margin-bottom: 30rpx; padding: 20rpx 0; } .address-icon image { width: 40rpx; height: 40rpx; margin-right: 10rpx; } .address-text { font-size: 28rpx; color: #333; } /* 修改搜索容器样式 */ .search-container { position: fixed; top: 360rpx; /* 调整位置到用户信息下方 */ left: 0; padding: 12rpx 24rpx 0rpx 24rpx; box-sizing: border-box; z-index: 20; /* 确保在背景之上 */ } /* 修改搜索按钮样式 */ .search-button { padding: 15rpx 20rpx; display: flex; justify-content: center; align-items: center; box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1); border-radius: 16rpx; background: rgba(255, 255, 255, 0.3); } .search-button text { font-size: 28rpx; color: rgba(255, 255, 255, 1); margin-left: 12rpx; } .search-icon { width: 30rpx; height: 30rpx; } /* 调整账单列表容器位置 */ .bill-list-wrapper { position: fixed; top: 450rpx; /* 调整位置,为搜索按钮留出空间 */ left: 0; width: 100%; height: calc(100vh - 450rpx); z-index: 15; overflow: hidden; } /* 调整账单列表样式 */ .bill-list { width: 100%; height: 100%; padding: 0 24rpx; box-sizing: border-box; padding-bottom: 50rpx; } .bill-card { width: 100%; border-radius: 12rpx; overflow: hidden; margin-bottom: 30rpx; box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1); } .paid-date { background-color: #f5f5f5; } .invoice-btn { color: #1989fa; font-size: 26rpx; } /* 调整账单信息布局 */ .bill-info { background-color: #fff; padding: 30rpx 30rpx 30rpx 30rpx; display: flex; justify-content: space-between; } /* 水滴图标区域 */ .bill-icon { display: flex; align-items: center; justify-content: center; margin-right: 15rpx; margin-top: -50rpx; } .water-icon { width: 45rpx; height: 45rpx; } /* 账单信息左侧区域 */ .bill-info-left { flex: 1; } /* 账单信息右侧区域 */ .bill-info-right { text-align: right; display: flex; flex-direction: column; justify-content: center; } /* 移除之前的水滴图标样式 */ .bill-number { font-size: 32rpx; color: rgba(46, 48, 56, 1); margin-bottom: 10rpx; font-weight: 600; } .bill-amount { font-size: 36rpx; font-weight: bold; color: rgba(46, 48, 56, 1); margin-bottom: 10rpx; } .bill-usage { font-size: 30rpx; color: rgba(100, 108, 128, 1); margin-bottom: 10rpx; } .bill-payment-time { font-size: 26rpx; color: rgba(100, 108, 128, 1); margin-bottom: 10rpx; } .bill-status { font-size: 26rpx; text-align: right; } .paid { color: #07c160; } .unpaid { color: #ff4d4f; } .no-more { text-align: center; color: #999; font-size: 26rpx; padding: 30rpx 0; } .no-data { text-align: center; color: #999; font-size: 26rpx; padding: 250rpx 0; } .bill-action { margin-top: 20rpx; display: flex; justify-content: flex-end; } .pay-btn { background-color: #ff4d4f; color: white; font-size: 28rpx; padding: 10rpx 40rpx; border-radius: 30rpx; line-height: 1.5; } .detail-btn { background-color: #f0f0f0; color: #333; font-size: 28rpx; padding: 10rpx 40rpx; border-radius: 30rpx; line-height: 1.5; } .list-end { text-align: center; color: #999; font-size: 26rpx; padding: 30rpx 0; } .empty-list { text-align: center; color: #999; font-size: 28rpx; padding: 100rpx 0; } /* 未缴费金额标红 */ .unpaid-amount { color: #ff4d4f; } /* 删除原有的年份选择器样式,替换为以下样式 */ .picker-mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); z-index: 999; } .picker-container-modal { position: fixed; bottom: -100%; left: 0; width: 100%; background: #fff; transition: all 0.3s ease-in-out; z-index: 1000; } .picker-container-modal.show { bottom: 0; } .picker-header { display: flex; justify-content: space-between; align-items: center; padding: 20rpx 30rpx; border-bottom: 1rpx solid #eee; } .picker-cancel, .picker-confirm { font-size: 32rpx; padding: 10rpx; } .picker-cancel { color: #999; } .picker-confirm { color: #2E82FF; } .picker-title { font-size: 32rpx; color: #333; } /* 修改年份选择器样式 */ .year-picker { width: 100%; height: 400rpx; } .picker-item { line-height: 100rpx; text-align: center; font-size: 36rpx; color: #999; display: flex; align-items: center; justify-content: center; height: 100rpx; } /* 修改选中项样式 */ .picker-view-indicator { height: 100rpx; } /* 添加选中项的样式 */ .picker-view-column view.picker-item { display: flex; align-items: center; justify-content: center; }