|
@@ -1,158 +1,306 @@
|
|
|
-/* pages/homepage/homepage.wxss */
|
|
|
-.container {
|
|
|
+.container1 {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ background-color: #f5f5f5;
|
|
|
min-height: 100vh;
|
|
|
- background-color: #f5f7fa;
|
|
|
- padding-bottom: 120rpx;
|
|
|
+ padding-bottom: 30rpx;
|
|
|
+}
|
|
|
+.logo {
|
|
|
+ position: absolute;
|
|
|
+ bottom: 80rpx;
|
|
|
+ width: 280rpx;
|
|
|
+ height: 100rpx;
|
|
|
+ top: 60rpx;
|
|
|
+ z-index: 2;
|
|
|
}
|
|
|
-
|
|
|
.header {
|
|
|
position: relative;
|
|
|
width: 100%;
|
|
|
- height: 320rpx;
|
|
|
- margin-top: -32rpx;
|
|
|
+ height: 180rpx;
|
|
|
}
|
|
|
|
|
|
-.background {
|
|
|
+.header .background {
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
- width: 101%;
|
|
|
+ width: 100%;
|
|
|
height: 100%;
|
|
|
+ background-color: #0080ff;
|
|
|
}
|
|
|
|
|
|
+.header .logo {
|
|
|
+ position: relative;
|
|
|
+ height: 80rpx;
|
|
|
+ margin: 50rpx 0 0 30rpx;
|
|
|
+ z-index: 1;
|
|
|
+}
|
|
|
|
|
|
-.logo {
|
|
|
- position: absolute;
|
|
|
- left: 32rpx;
|
|
|
- bottom: 80rpx;
|
|
|
- width: 280rpx;
|
|
|
- height: 100rpx;
|
|
|
- z-index: 2;
|
|
|
+.user-card {
|
|
|
+ position: relative;
|
|
|
+ background-color: #ffffff;
|
|
|
+ border-radius: 20rpx;
|
|
|
+ overflow: hidden;
|
|
|
+ padding-bottom: 30rpx;
|
|
|
+ top: 70rpx;
|
|
|
+ margin: 30rpx 30rpx 30rpx;
|
|
|
+}
|
|
|
+
|
|
|
+.user-info-section {
|
|
|
+ padding: 10rpx;
|
|
|
+}
|
|
|
+
|
|
|
+.info-row {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ margin-bottom: 15rpx;
|
|
|
+ position: relative;
|
|
|
}
|
|
|
|
|
|
-.welcome-card {
|
|
|
+.info-row .label {
|
|
|
+ color: rgba(163, 163, 163, 1);
|
|
|
+ font-size: 28rpx;
|
|
|
+ width: 140rpx;
|
|
|
+ margin-right: 50rpx;
|
|
|
+ font-family: 'PingFang', '苹方', sans-serif;
|
|
|
+}
|
|
|
+
|
|
|
+.info-row .value {
|
|
|
+ font-family: 'PingFang', '苹方', sans-serif; /* 添加苹方字体 */
|
|
|
+ color: rgba(46, 48, 56, 1);
|
|
|
+ font-size: 28rpx;
|
|
|
+ flex: 1;
|
|
|
+}
|
|
|
+
|
|
|
+.switch-btn {
|
|
|
position: absolute;
|
|
|
- left: 4%;
|
|
|
- /* 使用百分比替代固定像素 */
|
|
|
- top: 128px;
|
|
|
- /* 顶部距离可以保持固定,或根据需要调整 */
|
|
|
- width: 92%;
|
|
|
- /* 宽度占父容器的 96%,留出左右 2% 的边距 */
|
|
|
- height: 188px;
|
|
|
- /* 高度可以根据需要调整 */
|
|
|
- opacity: 1;
|
|
|
- background-color: #fff;
|
|
|
- border-radius: 8px;
|
|
|
- /* 圆角 */
|
|
|
- box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
|
|
|
- overflow: hidden;
|
|
|
+ right: 0;
|
|
|
+ background-color: #f0f8ff;
|
|
|
+ color: #0080ff;
|
|
|
+ font-size: 24rpx;
|
|
|
+ padding: 8rpx 20rpx;
|
|
|
+ border-radius: 30rpx;
|
|
|
}
|
|
|
|
|
|
-.card-bg {
|
|
|
+.amount-section {
|
|
|
+ position: relative;
|
|
|
+ padding: 20rpx 30rpx;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+}
|
|
|
+
|
|
|
+.water-drop {
|
|
|
+ width: 200rpx;
|
|
|
position: absolute;
|
|
|
- width: 105%;
|
|
|
- /* 宽度超出 .welcome-card 的 5%,实现覆盖效果 */
|
|
|
- left: -2.5%;
|
|
|
- /* 向左偏移 2.5%,使背景居中 */
|
|
|
- height: 100%;
|
|
|
- /* 高度与 .welcome-card 一致 */
|
|
|
- opacity: 1;
|
|
|
- background-color: #f0f0f0;
|
|
|
- /* 背景色 */
|
|
|
- border-radius: 8px;
|
|
|
- /* 圆角 */
|
|
|
+ left: -30rpx;
|
|
|
+ bottom: 13rpx;
|
|
|
}
|
|
|
|
|
|
-.card-content {
|
|
|
+.amount-display {
|
|
|
+ flex: 1;
|
|
|
+ text-align: center;
|
|
|
position: relative;
|
|
|
- padding: 40rpx 32rpx;
|
|
|
- z-index: 2;
|
|
|
+ z-index: 1;
|
|
|
}
|
|
|
|
|
|
-.title {
|
|
|
- font-size: 36rpx;
|
|
|
- font-weight: 500;
|
|
|
- margin-bottom: 12rpx;
|
|
|
- letter-spacing: 0px;
|
|
|
- line-height: 24px;
|
|
|
- color: rgba(46, 48, 56, 1);
|
|
|
- text-align: left;
|
|
|
- vertical-align: top;
|
|
|
- font-family: 'PingFang SC', sans-serif;
|
|
|
+.total-amount {
|
|
|
+ font-size: 60rpx;
|
|
|
+ color: #ff3b30;
|
|
|
+ font-weight: bold;
|
|
|
+ margin-bottom: 10rpx;
|
|
|
}
|
|
|
|
|
|
-.subtitle {
|
|
|
- font-size: 26rpx;
|
|
|
- color: #999;
|
|
|
- margin-bottom: 32rpx;
|
|
|
- letter-spacing: 4rpx;
|
|
|
-}
|
|
|
-
|
|
|
-.bind-button {
|
|
|
- width: 200rpx !important;
|
|
|
- height: 70rpx;
|
|
|
- line-height: 70rpx;
|
|
|
- background: #4080FF;
|
|
|
- color: #fff;
|
|
|
- font-family: 'PingFang SC', sans-serif;
|
|
|
- font-size: 30rpx;
|
|
|
- border-radius: 40rpx;
|
|
|
- margin-left: 0rpx;
|
|
|
- /* 向左50rpx */
|
|
|
- top: 40rpx;
|
|
|
- /* 向下50rpx */
|
|
|
+.amount-label {
|
|
|
+ font-size: 24rpx;
|
|
|
+ color: #666;
|
|
|
+ margin-bottom: 30rpx;
|
|
|
+}
|
|
|
+
|
|
|
+.amount-details {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-around;
|
|
|
+ align-items: center;
|
|
|
+ margin-top: 20rpx;
|
|
|
+}
|
|
|
+
|
|
|
+.detail-item {
|
|
|
+ text-align: center;
|
|
|
}
|
|
|
|
|
|
-.bind-button::after {
|
|
|
- border: none;
|
|
|
+.detail-item .number {
|
|
|
+ display: block;
|
|
|
+ font-size: 32rpx;
|
|
|
+ color: #333;
|
|
|
+ margin-bottom: 10rpx;
|
|
|
}
|
|
|
|
|
|
-.notice-list {
|
|
|
- margin: 32rpx;
|
|
|
+.detail-item .number.blue {
|
|
|
+ color: #0080ff;
|
|
|
+}
|
|
|
+
|
|
|
+.detail-item .label {
|
|
|
+ font-size: 24rpx;
|
|
|
color: #666;
|
|
|
-
|
|
|
}
|
|
|
|
|
|
-.notice-item {
|
|
|
- font-size: 26rpx;
|
|
|
- line-height: 1.8;
|
|
|
- margin-bottom: 16rpx;
|
|
|
- color: #999;
|
|
|
- position: relative;
|
|
|
- top: 100rpx;
|
|
|
- /* 向下移动 10rpx */
|
|
|
+.detail-divider {
|
|
|
+ width: 2rpx;
|
|
|
+ height: 60rpx;
|
|
|
+ background-color: #DDDDDD;
|
|
|
+ margin: 0 10rpx;
|
|
|
+ align-self: center;
|
|
|
}
|
|
|
|
|
|
-.tab-bar {
|
|
|
- position: fixed;
|
|
|
- bottom: 0;
|
|
|
- width: 100%;
|
|
|
- height: 100rpx;
|
|
|
- background: #fff;
|
|
|
+.pay-btn {
|
|
|
+ width: 80%;
|
|
|
+ height: 80rpx;
|
|
|
+ line-height: 80rpx;
|
|
|
+ background-color: #0080ff;
|
|
|
+ color: white;
|
|
|
+ font-size: 32rpx;
|
|
|
+ border-radius: 40rpx;
|
|
|
+ margin: 30rpx auto 0;
|
|
|
+}
|
|
|
+
|
|
|
+.function-area {
|
|
|
+ margin: 15rpx 30rpx 15rpx;
|
|
|
+ background-color: #ffffff;
|
|
|
+ border-radius: 20rpx;
|
|
|
+ padding: 30rpx;
|
|
|
+ box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.05);
|
|
|
+}
|
|
|
+
|
|
|
+.function-grid {
|
|
|
display: flex;
|
|
|
- padding-bottom: env(safe-area-inset-bottom);
|
|
|
- border-top: 1rpx solid #eee;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ justify-content: space-between;
|
|
|
}
|
|
|
|
|
|
-.tab-item {
|
|
|
- flex: 1;
|
|
|
+.function-item {
|
|
|
+ width: 20%;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
align-items: center;
|
|
|
- justify-content: center;
|
|
|
+ margin-bottom: 20rpx;
|
|
|
+}
|
|
|
+
|
|
|
+.function-item image {
|
|
|
+ width: 80rpx;
|
|
|
+ height: 80rpx;
|
|
|
+ margin-bottom: 10rpx;
|
|
|
+}
|
|
|
+
|
|
|
+.function-item text {
|
|
|
+ font-size: 24rpx;
|
|
|
+ color: #333;
|
|
|
+}
|
|
|
+
|
|
|
+.activity-area {
|
|
|
+ margin: 0rpx 30rpx 0rpx;
|
|
|
+ background-color: #ffffff;
|
|
|
+ border-radius: 20rpx;
|
|
|
+ padding: 30rpx;
|
|
|
+ box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.05);
|
|
|
+}
|
|
|
+
|
|
|
+.area-header {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ margin-bottom: 20rpx;
|
|
|
+}
|
|
|
+
|
|
|
+.area-header .title {
|
|
|
+ font-size: 32rpx;
|
|
|
+ color: #333;
|
|
|
+ font-weight: bold;
|
|
|
+}
|
|
|
+
|
|
|
+.area-header .more {
|
|
|
font-size: 24rpx;
|
|
|
color: #999;
|
|
|
}
|
|
|
|
|
|
-.tab-item.active {
|
|
|
- color: #4080FF;
|
|
|
+.activity-item {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ align-items: center;
|
|
|
+}
|
|
|
+
|
|
|
+.activity-image {
|
|
|
+ width: 100%;
|
|
|
+ height: 200rpx;
|
|
|
+ border-radius: 10rpx;
|
|
|
+ margin-bottom: 20rpx;
|
|
|
+}
|
|
|
+
|
|
|
+/* 卡片容器样式 */
|
|
|
+.cards-container {
|
|
|
+ width: 90%;
|
|
|
+ margin: 0 auto;
|
|
|
+ position: relative;
|
|
|
+ z-index: 10;
|
|
|
+ margin-top: 40rpx;
|
|
|
+ background-color: transparent;
|
|
|
+ border-radius: 20rpx;
|
|
|
+ overflow: visible;
|
|
|
}
|
|
|
|
|
|
-.divider {
|
|
|
- left: 36px;
|
|
|
- top: 201px;
|
|
|
- width: 15px;
|
|
|
- height: 0px;
|
|
|
- opacity: 1;
|
|
|
- border: 1px solid rgba(232, 232, 232, 1);
|
|
|
+/* 用户信息卡片样式 */
|
|
|
+.user-card {
|
|
|
+ background-color: #FAFCFF;
|
|
|
+ border-radius: 20rpx 20rpx 0 0;
|
|
|
+ padding: 30rpx;
|
|
|
+ position: relative;
|
|
|
+ width: 100%;
|
|
|
+ height: 220rpx;
|
|
|
+ box-sizing: border-box;
|
|
|
+ overflow: hidden;
|
|
|
+ margin: 0;
|
|
|
+ top: 0;
|
|
|
+ border-bottom: none;
|
|
|
+}
|
|
|
+
|
|
|
+/* 票据式分割线 */
|
|
|
+.card-divider {
|
|
|
+ position: relative;
|
|
|
+ border-top: 0rpx dashed #CCCCCC;
|
|
|
+ margin: 0 15rpx;
|
|
|
+ background-color: transparent;
|
|
|
+}
|
|
|
+
|
|
|
+/* 左侧半圆挖孔 */
|
|
|
+.card-divider::before {
|
|
|
+ content: "";
|
|
|
+ position: absolute;
|
|
|
+ left: -30rpx;
|
|
|
+ top: -15rpx;
|
|
|
+ width: 30rpx;
|
|
|
+ height: 30rpx;
|
|
|
+ background-color: #0080ff;
|
|
|
+ border-radius: 50%;
|
|
|
+ z-index: 1;
|
|
|
+}
|
|
|
+
|
|
|
+/* 右侧半圆挖孔 */
|
|
|
+.card-divider::after {
|
|
|
+ content: "";
|
|
|
+ position: absolute;
|
|
|
+ right: -30rpx;
|
|
|
+ top: -15rpx;
|
|
|
+ width: 30rpx;
|
|
|
+ height: 30rpx;
|
|
|
+ background-color: #0080ff;
|
|
|
+ border-radius: 50%;
|
|
|
+ z-index: 1;
|
|
|
+}
|
|
|
+
|
|
|
+/* 水费金额卡片样式 */
|
|
|
+.amount-card {
|
|
|
+ background-color: #FAFCFF;
|
|
|
+ border-radius: 0 0 20rpx 20rpx;
|
|
|
+ padding: 30rpx;
|
|
|
+ position: relative;
|
|
|
+ width: 100%;
|
|
|
+ box-sizing: border-box;
|
|
|
+ border-top: none;
|
|
|
}
|