fix: pos刷卡推荐,样式修改。

This commit is contained in:
tianyongbao
2026-02-15 17:16:20 +08:00
parent fb9781ff52
commit 9b072ac892

View File

@@ -16,26 +16,19 @@
<u-list-item v-for="(item, index) in listData" :key="index"> <u-list-item v-for="(item, index) in listData" :key="index">
<view class="list-item"> <view class="list-item">
<view class="item-header"> <view class="item-header">
<view class="left-section"> <view class="header-row">
<view class="card-icon"> <view class="card-icon">
<uni-icons type="star-filled" size="20" color="#ffffff"></uni-icons> <uni-icons type="star-filled" size="20" color="#ffffff"></uni-icons>
</view> </view>
<view class="header-info"> <text class="card-name">{{ item.name }}</text>
<view class="card-name-row"> <text class="bill-date-text">账单日 {{ item.billDateName }}</text>
<text class="card-name">{{ item.name }}</text> <view class="available-amount">
<view class="bill-info"> <text class="amount-label">可用</text>
<text class="limit-label">账单日</text> <text class="amount-value">{{ item.availableLimit }}</text>
<text class="bill-date">{{ item.billDateName }}</text>
</view>
</view>
<view class="card-detail-row">
<text class="card-code">{{ item.code }}</text>
</view>
</view> </view>
</view> </view>
<view class="right-section"> <view class="info-row">
<text class="limit-label-right">可用额度</text> <text class="card-code">{{ item.code }}</text>
<text class="limit-value">{{ item.availableLimit }}</text>
</view> </view>
</view> </view>
@@ -380,18 +373,15 @@ page {
.item-header { .item-header {
display: flex; display: flex;
align-items: center; flex-direction: column;
justify-content: space-between;
gap: 12rpx; gap: 12rpx;
padding: 16rpx 24rpx; padding: 16rpx 24rpx;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
.left-section { .header-row {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 12rpx; gap: 10rpx;
flex: 1;
min-width: 0;
} }
.card-icon { .card-icon {
@@ -404,88 +394,64 @@ page {
justify-content: center; justify-content: center;
flex-shrink: 0; flex-shrink: 0;
} }
.header-info {
flex: 1;
display: flex;
flex-direction: column;
gap: 6rpx;
min-width: 0;
}
.card-name-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12rpx;
}
.card-name { .card-name {
font-size: 30rpx; font-size: 28rpx;
font-weight: 700; font-weight: 600;
color: #ffffff; color: #ffffff;
line-height: 1.3; line-height: 1.3;
flex: 1; flex: 1;
white-space: nowrap; min-width: 0;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap;
} }
.card-detail-row { .bill-date-text {
display: flex;
align-items: center;
}
.card-code {
font-size: 21rpx;
color: rgba(255, 255, 255, 0.85);
font-weight: 400;
line-height: 1.2;
letter-spacing: 0.5rpx;
font-family: 'Courier New', monospace;
}
.bill-info {
display: flex;
align-items: center;
gap: 6rpx;
flex-shrink: 0;
}
.limit-label {
font-size: 20rpx;
color: rgba(255, 255, 255, 0.7);
font-weight: 400;
line-height: 1;
}
.bill-date {
font-size: 24rpx; font-size: 24rpx;
font-weight: 600; color: rgba(255, 255, 255, 0.85);
color: #ffffff; font-weight: 500;
line-height: 1; line-height: 1.3;
flex-shrink: 0;
margin-right: 12rpx;
} }
.right-section { .available-amount {
display: flex; display: flex;
flex-direction: column; align-items: baseline;
align-items: flex-end;
gap: 6rpx; gap: 6rpx;
flex-shrink: 0; flex-shrink: 0;
} }
.limit-label-right { .amount-label {
font-size: 22rpx; font-size: 22rpx;
color: rgba(255, 255, 255, 0.7); color: rgba(255, 255, 255, 0.75);
font-weight: 400; font-weight: 400;
line-height: 1;
} }
.limit-value { .amount-value {
font-size: 32rpx; font-size: 32rpx;
font-weight: 700; font-weight: 700;
color: #52c41a; color: #52c41a;
line-height: 1; line-height: 1.2;
}
.info-row {
display: flex;
align-items: center;
gap: 12rpx;
padding-top: 12rpx;
border-top: 1rpx solid rgba(255, 255, 255, 0.2);
}
.card-code {
font-size: 24rpx;
color: rgba(255, 255, 255, 0.75);
font-weight: 400;
line-height: 1.3;
letter-spacing: 0.5rpx;
font-family: 'Courier New', monospace;
flex: 1;
} }
} }