fix: 功能优化与完善。

This commit is contained in:
tianyongbao
2025-12-19 10:13:51 +08:00
parent c584880be8
commit 106f1cf117
16 changed files with 504 additions and 79 deletions

View File

@@ -103,13 +103,10 @@
<text class="info-label">余额</text>
<text class="info-value balance">{{ item.currentBalance || 0 }}</text>
</view>
</view>
</view>
<view class="operate" @click.stop>
<view class="btn-delete" @click="handleDelete(item)">
<uni-icons type="trash" size="16" color="#f5576c"></uni-icons>
<text>删除</text>
<view class="btn-delete" @click.stop="handleDelete(item)">
<uni-icons type="trash" size="16" color="#f5576c"></uni-icons>
<text>删除</text>
</view>
</view>
</view>
</view>
@@ -680,19 +677,19 @@ page {
.info-row {
display: flex;
flex-wrap: wrap;
gap: 24rpx;
justify-content: space-between;
align-items: center;
gap: 12rpx;
margin-bottom: 0;
.info-item {
flex: 0 0 calc(50% - 12rpx);
display: flex;
flex-direction: column;
gap: 4rpx;
min-width: 0;
margin-bottom: -5rpx;
&.info-item-balance {
flex: 0 0 auto;
flex: 1;
}
.info-label {
@@ -711,26 +708,15 @@ page {
font-weight: 700;
flex: 1;
line-height: 1.5;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
}
.operate {
display: flex;
gap: 16rpx;
padding: 16rpx 24rpx 24rpx;
background: #fff;
justify-content: flex-end;
.btn-delete {
display: flex;
align-items: center;
justify-content: center;
gap: 6rpx;
padding: 0 24rpx;
padding: 0 20rpx;
height: 64rpx;
border-radius: 12rpx;
font-size: 26rpx;
@@ -739,6 +725,7 @@ page {
background: rgba(245, 87, 108, 0.1);
color: #f5576c;
border: 1rpx solid rgba(245, 87, 108, 0.3);
flex-shrink: 0;
&:active {
transform: scale(0.95);