fix: 功能优化,统计页面金额字体样式修改。

This commit is contained in:
tianyongbao
2026-02-12 21:32:27 +08:00
parent 7420f1e845
commit 8f1c61926f
20 changed files with 96 additions and 63 deletions

View File

@@ -253,7 +253,7 @@
</view> </view>
<view class="header-right"> <view class="header-right">
<text class="amount-label">收支金额</text> <text class="amount-label">收支金额</text>
<text class="amount-value">{{ item.value }}</text> <text class="amount-value" :style="{ color: parseFloat(item.value) >= 0 ? '#10b981' : '#ef4444' }">{{ item.value }}</text>
</view> </view>
</view> </view>
<view class="item-body"> <view class="item-body">
@@ -1057,7 +1057,6 @@ page {
.amount-value { .amount-value {
font-size: 28rpx; font-size: 28rpx;
font-weight: 700; font-weight: 700;
color: #ffffff;
line-height: 1; line-height: 1;
} }
} }

View File

@@ -809,7 +809,7 @@ page {
.amount-value { .amount-value {
font-size: 30rpx; font-size: 30rpx;
font-weight: 700; font-weight: 700;
color: #ffffff; color: #fa8c16;
line-height: 1; line-height: 1;
} }
} }

View File

@@ -375,7 +375,7 @@ page {
.total-value { .total-value {
font-size: 28rpx; font-size: 28rpx;
font-weight: 700; font-weight: 700;
color: #ffffff; color: #fa8c16;
line-height: 1; line-height: 1;
} }
} }

View File

@@ -1106,7 +1106,7 @@ page {
.amount-value { .amount-value {
font-size: 28rpx; font-size: 28rpx;
font-weight: 700; font-weight: 700;
color: #ffffff; color: #fa8c16;
line-height: 1; line-height: 1;
} }
} }

View File

@@ -1145,7 +1145,7 @@ page {
.amount-value { .amount-value {
font-size: 28rpx; font-size: 28rpx;
font-weight: 700; font-weight: 700;
color: #ffffff; color: #fa8c16;
line-height: 1; line-height: 1;
} }
} }

View File

@@ -952,7 +952,7 @@ page {
.amount-value { .amount-value {
font-size: 28rpx; font-size: 28rpx;
font-weight: 700; font-weight: 700;
color: #ffffff; color: #fa8c16;
line-height: 1; line-height: 1;
} }
} }
@@ -979,7 +979,7 @@ page {
} }
.row-value { .row-value {
color: #2c3e50; color: #fa8c16;
font-size: 26rpx; font-size: 26rpx;
font-weight: 600; font-weight: 600;
} }

View File

@@ -1050,7 +1050,7 @@ page {
.amount-value { .amount-value {
font-size: 28rpx; font-size: 28rpx;
font-weight: 700; font-weight: 700;
color: #ffffff; color: #fa8c16;
line-height: 1; line-height: 1;
} }
} }

View File

@@ -249,7 +249,7 @@
</view> </view>
<view class="header-right"> <view class="header-right">
<text class="amount-label">收益金额</text> <text class="amount-label">收益金额</text>
<text class="amount-value">{{ item.value }}</text> <text class="amount-value" :style="{ color: parseFloat(item.value) >= 0 ? '#10b981' : '#ef4444' }">{{ item.value }}</text>
</view> </view>
</view> </view>
<view class="item-body"> <view class="item-body">
@@ -1081,7 +1081,6 @@ page {
.amount-value { .amount-value {
font-size: 28rpx; font-size: 28rpx;
font-weight: 700; font-weight: 700;
color: #ffffff;
line-height: 1; line-height: 1;
} }
} }

View File

@@ -913,7 +913,7 @@ page {
.amount-value { .amount-value {
font-size: 30rpx; font-size: 30rpx;
font-weight: 700; font-weight: 700;
color: #ffffff; color: #fa8c16;
line-height: 1; line-height: 1;
} }
} }

View File

@@ -1020,7 +1020,7 @@ page {
.amount-value { .amount-value {
font-size: 28rpx; font-size: 28rpx;
font-weight: 700; font-weight: 700;
color: #ffffff; color: #fa8c16;
line-height: 1; line-height: 1;
} }
} }

View File

@@ -942,7 +942,7 @@ page {
.amount-value { .amount-value {
font-size: 28rpx; font-size: 28rpx;
font-weight: 700; font-weight: 700;
color: #ffffff; color:#fa8c16;
line-height: 1; line-height: 1;
} }
} }
@@ -970,7 +970,7 @@ page {
} }
.row-value { .row-value {
color: #2c3e50; color: #fa8c16;
font-size: 28rpx; font-size: 28rpx;
font-weight: 600; font-weight: 600;
flex: 1; flex: 1;

View File

@@ -938,7 +938,7 @@ page {
.amount-value { .amount-value {
font-size: 30rpx; font-size: 30rpx;
font-weight: 700; font-weight: 700;
color: #ffffff; color:#fa8c16;
line-height: 1; line-height: 1;
} }
} }

View File

@@ -265,14 +265,13 @@
<uni-icons type="wallet-filled" size="14" color="#667eea"></uni-icons> <uni-icons type="wallet-filled" size="14" color="#667eea"></uni-icons>
<text>{{ detail.bankCardLendName }}</text> <text>{{ detail.bankCardLendName }}</text>
</view> </view>
<view class="header-right-section">
<text class="current-amount">{{ detail.currentAmount }}</text>
</view>
</view> </view>
<view class="detail-info"> <view class="detail-info">
<view class="info-row"> <view class="info-row">
<view class="info-item">
<text class="info-label">待还金额</text>
<text class="info-value">{{ detail.currentAmount }}</text>
</view>
<view class="info-item"> <view class="info-item">
<text class="info-label">本金</text> <text class="info-label">本金</text>
<text class="info-value">{{ detail.principal }}</text> <text class="info-value">{{ detail.principal }}</text>
@@ -1160,7 +1159,7 @@ page {
.amount-value { .amount-value {
font-size: 30rpx; font-size: 30rpx;
font-weight: 700; font-weight: 700;
color: #ffffff; color: #fa8c16;
line-height: 1; line-height: 1;
} }
} }
@@ -1201,6 +1200,19 @@ page {
} }
} }
.header-right-section {
display: flex;
align-items: center;
gap: 12rpx;
.current-amount {
font-size: 32rpx;
font-weight: 700;
color: #fa8c16;
line-height: 1;
}
}
.detail-amount { .detail-amount {
font-size: 32rpx; font-size: 32rpx;
font-weight: 700; font-weight: 700;
@@ -1212,28 +1224,35 @@ page {
.info-row { .info-row {
display: flex; display: flex;
justify-content: space-between; flex-wrap: wrap;
gap: 8rpx; gap: 24rpx;
margin-bottom: 0;
.info-item { .info-item {
flex: 1; flex: 0 0 calc(50% - 12rpx);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; gap: 4rpx;
padding: 12rpx 8rpx; min-width: 0;
background: #ffffff; margin-bottom: -5rpx;
border-radius: 8rpx;
.info-label { .info-label {
font-size: 22rpx; font-size: 24rpx;
color: #909399; color: #667eea;
margin-bottom: 4rpx; font-weight: 500;
background: rgba(102, 126, 234, 0.08);
padding: 6rpx 12rpx;
border-radius: 8rpx;
align-self: flex-start;
} }
.info-value { .info-value {
font-size: 26rpx; font-size: 26rpx;
color: #303133; color: #fa8c16;
font-weight: 600; font-weight: 500;
flex: 1;
line-height: 1.5;
word-break: break-all;
} }
} }
} }

View File

@@ -906,7 +906,7 @@ page {
.amount-value { .amount-value {
font-size: 30rpx; font-size: 30rpx;
font-weight: 700; font-weight: 700;
color: #ffffff; color: #fa8c16;
line-height: 1; line-height: 1;
} }
} }

View File

@@ -893,7 +893,7 @@ page {
.amount-value { .amount-value {
font-size: 30rpx; font-size: 30rpx;
color: #ffffff; color: #fa8c16;
font-weight: 700; font-weight: 700;
line-height: 1; line-height: 1;
} }

View File

@@ -214,7 +214,7 @@
</view> </view>
<view class="header-right"> <view class="header-right">
<text class="amount-label">收益</text> <text class="amount-label">收益</text>
<text class="amount-value">{{ item.value }}</text> <text class="amount-value" :style="{ color: parseFloat(item.value) >= 0 ? '#10b981' : '#ef4444' }">{{ item.value }}</text>
</view> </view>
</view> </view>
<view class="item-body"> <view class="item-body">
@@ -1069,7 +1069,6 @@ page {
.amount-value { .amount-value {
font-size: 28rpx; font-size: 28rpx;
font-weight: 700; font-weight: 700;
color: #ffffff;
line-height: 1; line-height: 1;
} }
} }

View File

@@ -219,7 +219,7 @@
</view> </view>
<view class="header-right"> <view class="header-right">
<text class="amount-label">收益</text> <text class="amount-label">收益</text>
<text class="amount-value">{{ item.value }}</text> <text class="amount-value" :style="{ color: parseFloat(item.value) >= 0 ? '#10b981' : '#ef4444' }">{{ item.value }}</text>
</view> </view>
</view> </view>
<view class="item-body"> <view class="item-body">
@@ -1060,7 +1060,6 @@ page {
.amount-value { .amount-value {
font-size: 28rpx; font-size: 28rpx;
font-weight: 700; font-weight: 700;
color: #ffffff;
line-height: 1; line-height: 1;
} }
} }

View File

@@ -267,18 +267,17 @@
<uni-icons type="wallet-filled" size="14" color="#667eea"></uni-icons> <uni-icons type="wallet-filled" size="14" color="#667eea"></uni-icons>
<text>{{ detail.bankCardLendName }}</text> <text>{{ detail.bankCardLendName }}</text>
</view> </view>
<button class="repay-btn-small" @click="handleRepayment(detail)"> <view class="header-right-section">
<uni-icons type="checkmarkempty" size="14" color="#ffffff"></uni-icons> <text class="current-amount">{{ detail.currentAmount }}</text>
<text>还款</text> <button class="repay-btn-small" @click="handleRepayment(detail)">
</button> <uni-icons type="checkmarkempty" size="14" color="#ffffff"></uni-icons>
<text>还款</text>
</button>
</view>
</view> </view>
<view class="detail-info"> <view class="detail-info">
<view class="info-row"> <view class="info-row">
<view class="info-item">
<text class="info-label">待还金额</text>
<text class="info-value">{{ detail.currentAmount }}</text>
</view>
<view class="info-item"> <view class="info-item">
<text class="info-label">本金</text> <text class="info-label">本金</text>
<text class="info-value">{{ detail.principal }}</text> <text class="info-value">{{ detail.principal }}</text>
@@ -1152,7 +1151,7 @@ page {
.amount-value { .amount-value {
font-size: 30rpx; font-size: 30rpx;
font-weight: 700; font-weight: 700;
color: #ffffff; color: #fa8c16;
line-height: 1; line-height: 1;
} }
} }
@@ -1194,6 +1193,19 @@ page {
} }
} }
.header-right-section {
display: flex;
align-items: center;
gap: 12rpx;
.current-amount {
font-size: 32rpx;
font-weight: 700;
color: #fa8c16;
line-height: 1;
}
}
.repay-btn-small { .repay-btn-small {
display: flex; display: flex;
align-items: center; align-items: center;
@@ -1234,28 +1246,35 @@ page {
.info-row { .info-row {
display: flex; display: flex;
justify-content: space-between; flex-wrap: wrap;
gap: 8rpx; gap: 24rpx;
margin-bottom: 0;
.info-item { .info-item {
flex: 1; flex: 0 0 calc(50% - 12rpx);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; gap: 4rpx;
padding: 12rpx 8rpx; min-width: 0;
background: #ffffff; margin-bottom: -5rpx;
border-radius: 8rpx;
.info-label { .info-label {
font-size: 22rpx; font-size: 24rpx;
color: #909399; color: #667eea;
margin-bottom: 4rpx; font-weight: 500;
background: rgba(102, 126, 234, 0.08);
padding: 6rpx 12rpx;
border-radius: 8rpx;
align-self: flex-start;
} }
.info-value { .info-value {
font-size: 26rpx; font-size: 26rpx;
color: #303133; color: #fa8c16;
font-weight: 600; font-weight: 500;
flex: 1;
line-height: 1.5;
word-break: break-all;
} }
} }
} }

View File

@@ -892,7 +892,7 @@ page {
.amount-value { .amount-value {
font-size: 30rpx; font-size: 30rpx;
color: #ffffff; color: #fa8c16;
font-weight: 700; font-weight: 700;
line-height: 1; line-height: 1;
} }

View File

@@ -214,7 +214,7 @@
</view> </view>
<view class="header-right"> <view class="header-right">
<text class="amount-label">收益</text> <text class="amount-label">收益</text>
<text class="amount-value">{{ item.value }}</text> <text class="amount-value" :style="{ color: parseFloat(item.value) >= 0 ? '#10b981' : '#ef4444' }">{{ item.value }}</text>
</view> </view>
</view> </view>
<view class="item-body"> <view class="item-body">
@@ -1057,7 +1057,6 @@ page {
.amount-value { .amount-value {
font-size: 28rpx; font-size: 28rpx;
font-weight: 700; font-weight: 700;
color: #ffffff;
line-height: 1; line-height: 1;
} }
} }