fix: 工作台所有页面,ui功能优化。

This commit is contained in:
tianyongbao
2025-11-18 08:29:50 +08:00
parent ffd41d989a
commit d1fd0a4d1d
59 changed files with 3630 additions and 2647 deletions

View File

@@ -2,19 +2,17 @@
<view class="container">
<u-navbar
leftIconSize="40rpx"
leftIconColor="#ffffff"
leftIconColor="#333333"
title="还款明细"
:bgColor="'linear-gradient(135deg, #667eea 0%, #764ba2 100%)'"
:titleStyle="{ color: '#ffffff', fontSize: '36rpx', fontWeight: '600' }"
>
</u-navbar>
<u-sticky offsetTop="8rpx" customNavHeight="8rpx">
<u-sticky offsetTop="-10rpx" customNavHeight="0rpx">
<view class="search-view">
<u-input v-model="queryParams.name" border="false" disabled ="false" type="select" v-show="true" class="search-input">
</u-input>
<view class="summary-btn" @click="handleUpdateInterest()">
<uni-icons type="checkmark-circle-fill" size="18" color="#ffffff"></uni-icons>
<uni-icons type="checkmarkempty" size="18" color="#667eea"></uni-icons>
<text>总利息汇总</text>
</view>
</view>
@@ -27,27 +25,23 @@
<view class="card-icon">
<uni-icons type="wallet-filled" size="20" color="#ffffff"></uni-icons>
</view>
<text class="account-name">信用卡分期还款</text>
</view>
<view class="info-row">
<text class="time-text">{{ item.repaymentDate }}</text>
<text class="type-text">{{ item.periods }}</text>
<text class="amount-value">{{ item.currentAmount }}</text>
<text class="status-badge" :class="item.postingState === '1' ? 'paid' : 'unpaid'">
{{ dictStr(item.postingState, postingStateList) }}
</text>
<text class="amount-value" :class="item.postingState === '1' ? 'paid' : 'unpaid'">{{ item.currentAmount }}</text>
</view>
</view>
<view class="card-body">
<view class="info-item">
<text class="info-label">应还本金</text>
<text class="info-value">{{ item.principal }}</text>
<text class="info-value orange">{{ item.principal }}</text>
</view>
<view class="info-item">
<text class="info-label">利息</text>
<text class="info-value">{{ item.interest }}</text>
</view>
<view class="info-item">
<text class="info-label">还款状态</text>
<text class="info-value" :class="item.postingState === '1' ? 'paid' : 'unpaid'">{{ dictStr(item.postingState, postingStateList) }}</text>
<text class="info-value orange">{{ item.interest }}</text>
</view>
</view>
@@ -229,14 +223,18 @@ function handleUpdateInterest() {
align-items: center;
position: relative;
z-index: 100;
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);
.search-input {
background: #f5f7fa;
background: rgba(102, 126, 234, 0.08);
color: #333333;
flex: 1;
margin-right: 16rpx;
border-radius: 24rpx;
border: 1rpx solid #e8edf3;
border: 2rpx solid rgba(102, 126, 234, 0.3);
height: 66rpx !important;
display: flex;
align-items: center;
}
.summary-btn {
@@ -244,19 +242,19 @@ function handleUpdateInterest() {
align-items: center;
gap: 6rpx;
padding: 12rpx 24rpx;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
background: rgba(102, 126, 234, 0.08);
border-radius: 24rpx;
box-shadow: 0 4rpx 12rpx rgba(102, 126, 234, 0.3);
border: 2rpx solid rgba(102, 126, 234, 0.3);
transition: all 0.3s ease;
flex-shrink: 0;
&:active {
transform: scale(0.95);
box-shadow: 0 2rpx 8rpx rgba(102, 126, 234, 0.3);
background: rgba(102, 126, 234, 0.12);
}
text {
color: #ffffff;
color: #667eea;
font-size: 28rpx;
font-weight: 600;
}
@@ -294,29 +292,27 @@ function handleUpdateInterest() {
flex-shrink: 0;
}
.account-name {
.status-badge {
font-size: 24rpx;
font-weight: 500;
color: #ffffff;
font-weight: 600;
padding: 4rpx 16rpx;
border-radius: 12rpx;
line-height: 1.3;
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.info-row {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12rpx;
padding-top: 10rpx;
border-top: 1rpx solid rgba(255, 255, 255, 0.2);
flex-shrink: 0;
&.paid {
background: rgba(82, 196, 26, 0.2);
color: #52c41a;
}
&.unpaid {
background: rgba(255, 140, 0, 0.2);
color: #ff8c00;
}
}
.time-text {
font-size: 26rpx;
font-size: 24rpx;
color: rgba(255, 255, 255, 0.9);
font-weight: 500;
line-height: 1.3;
@@ -334,11 +330,18 @@ function handleUpdateInterest() {
}
.amount-value {
font-size: 32rpx;
font-size: 28rpx;
font-weight: 700;
color: #52c41a;
line-height: 1.2;
flex-shrink: 0;
&.paid {
color: #52c41a;
}
&.unpaid {
color: #f5576c;
}
}
}
@@ -357,9 +360,13 @@ function handleUpdateInterest() {
min-width: 0;
.info-label {
font-size: 22rpx;
color: #999;
font-weight: 400;
font-size: 24rpx;
color: #667eea;
font-weight: 500;
background: rgba(102, 126, 234, 0.08);
padding: 6rpx 12rpx;
border-radius: 8rpx;
align-self: flex-start;
}
.info-value {
@@ -370,13 +377,8 @@ function handleUpdateInterest() {
text-overflow: ellipsis;
white-space: nowrap;
&.paid {
color: #52c41a;
font-weight: 600;
}
&.unpaid {
color: #ff8c00;
&.orange {
color: #fa8c16;
font-weight: 600;
}
}
@@ -384,18 +386,18 @@ function handleUpdateInterest() {
.operate {
display: flex;
gap: 12rpx;
padding: 24rpx;
background: #fff;
justify-content: flex-end;
padding: 16rpx 24rpx 24rpx;
gap: 16rpx;
.btn-edit,
.btn-delete,
.btn-view {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
gap: 6rpx;
padding: 0 24rpx;
height: 64rpx;
border-radius: 12rpx;
font-size: 26rpx;