fix: 工作台页面,整体ui功能优化。

This commit is contained in:
tianyongbao
2025-11-14 02:13:02 +08:00
parent f4b0366a39
commit 459ab82cf2
62 changed files with 8331 additions and 3968 deletions

View File

@@ -5,6 +5,10 @@
<u-input v-model="queryParams.creditCardName" border="false" type="select" @click="handleCreditCard" placeholder="请选择信用卡" suffixIcon="search"
suffixIconStyle="color: #909399" class="search-input">
</u-input>
<view class="clear-btn" v-if="queryParams.creditCardName" @click="handleCreditCardCancel()">
<uni-icons type="close-filled" size="16" color="#ffffff"></uni-icons>
<text>清空</text>
</view>
</view>
</u-sticky>
<u-sticky offsetTop="8rpx" customNavHeight="8rpx">
@@ -13,24 +17,43 @@
<u-list-item v-for="(item, index) in listData" :key="index">
<view class="list-item">
<view class="item-header">
<u--text lines="2" iconStyle="font-size: 18px; color: #333333; font-weight:bold"
:text="item.name+'-'+item.code" size="30rpx" color="#333333" :bold="true"></u--text>
<view class="card-icon">
<uni-icons type="creditcard-filled" size="24" color="#ffffff"></uni-icons>
</view>
<view class="header-info">
<view class="card-name-row">
<text class="card-name">{{ item.name }}</text>
<text class="card-code">{{ item.code }}</text>
</view>
<view class="card-limit-row">
<text class="limit-label">账单日</text>
<text class="bill-date">{{ item.billDateName }}</text>
<text class="limit-label">可用额度</text>
<text class="limit-value">{{ item.availableLimit }}</text>
</view>
</view>
</view>
<view class="item-row">
<text class="row-label">可用额度</text>
<text class="row-value">{{ item.availableLimit }}</text>
</view>
<view class="item-row">
<text class="row-label">账单日</text>
<text class="row-value">{{ item.billDateName }}</text>
</view>
<view class="item-row">
<text class="row-label">推荐POS刷卡</text><br>
<text class="row-value">{{ formatMultiLineData(item.advicePosNames) }}</text>
</view>
<view class="item-row">
<text class="row-label">近1月POS刷卡记录</text><br>
<text class="row-value">{{ formatMultiLineData(item.remark) }}</text>
<view class="card-body">
<view class="pos-section" v-if="item.advicePosNames">
<view class="section-header">
<uni-icons type="shop" size="16" color="#667eea"></uni-icons>
<text class="section-title">推荐POS刷卡</text>
</view>
<view class="pos-tags">
<text class="pos-tag" v-for="(pos, idx) in item.advicePosNames.split('、')" :key="idx">{{ pos }}</text>
</view>
</view>
<view class="record-section" v-if="item.remark">
<view class="section-header">
<uni-icons type="list" size="16" color="#faad14"></uni-icons>
<text class="section-title">近1月POS刷卡记录</text>
</view>
<view class="record-list">
<text class="record-text" v-for="(record, idx) in item.remark.split('、')" :key="idx"> {{ record }}</text>
</view>
</view>
</view>
</view>
@@ -43,8 +66,19 @@
@confirm="settingConfirm" @cancel="settingCancel"></u-picker>
<u-picker itemHeight="88" :show="showAccount" :columns="accountList" keyName="nameCode" @cancel="handleAccountCancel"
@confirm="handleAccountConfirm"></u-picker>
<u-picker itemHeight="88" :show="showCreditCard" :columns="bankCardLendList" keyName="nameCode" @cancel="handleCreditCardCancel"
@confirm="handleCreditCardConfirm"></u-picker>
<u-picker
itemHeight="88"
:show="showCreditCard"
:columns="bankCardLendList"
keyName="nameCode"
@cancel="handleCreditCardCancel"
@confirm="handleCreditCardConfirm"
:closeOnClickOverlay="true"
:defaultIndex="[0]"
cancelColor="#666666"
confirmColor="#667eea"
title="选择信用卡"
></u-picker>
</view>
<!-- 悬停按钮返回工作台-->
<suspend></suspend>
@@ -284,158 +318,177 @@ function settingCancel() {
justify-content: space-between;
align-items: center;
position: relative;
z-index: 100;
.search-input {
background: #F5F5F5;
background: #f5f7fa;
color: #333333;
margin-right: 36rpx;
flex: 1;
margin-right: 16rpx;
border-radius: 24rpx;
border: 1rpx solid #e8edf3;
}
.filter-panel {
width: 100%;
position: absolute;
left: 0;
top: 96rpx;
background-color: rgba(0, 0, 0, 0.5);
.filter-panel-content {
background-color: #ffff;
padding: 0 30rpx 30rpx;
.filter-title {
color: #000000;
font-size: 30rpx;
font-weight: 500;
padding: 30rpx 0;
}
.state-list {
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
.state-item {
width: 210rpx;
height: 72rpx;
border: 1rpx solid rgba(0, 0, 0, 0.25);
border-radius: 72rpx;
text-align: center;
line-height: 72rpx;
margin: 0 20rpx 20rpx 0;
font-size: 28rpx;
color: #000000;
}
.active {
background-color: rgba(222, 241, 255, 1);
border: 1rpx solid rgba(22, 119, 255, 1);
}
}
.clear-btn {
display: flex;
align-items: center;
gap: 6rpx;
padding: 12rpx 20rpx;
background: linear-gradient(135deg, #f5576c 0%, #ff8a80 100%);
border-radius: 24rpx;
box-shadow: 0 4rpx 12rpx rgba(245, 87, 108, 0.3);
transition: all 0.3s ease;
flex-shrink: 0;
&:active {
transform: scale(0.95);
box-shadow: 0 2rpx 8rpx rgba(245, 87, 108, 0.3);
}
.btn-box {
display: flex;
padding: 24rpx 30rpx;
background-color: #fff;
box-shadow: 0rpx -10rpx 20rpx #EEEEEE;
text {
color: #ffffff;
font-size: 26rpx;
font-weight: 600;
}
}
}
.list-item {
margin: 0 24rpx 24rpx;
padding: 32rpx;
background-color: #fff;
border-radius: 16rpx;
overflow: hidden;
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.08);
.item-header {
display: flex;
justify-content: space-between;
align-items: center;
padding-bottom: 16rpx;
gap: 16rpx;
padding: 24rpx;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
.status {
.status-item {
width: 120rpx;
height: 44rpx;
text-align: center;
line-height: 44rpx;
border-radius: 4rpx;
font-size: 24rpx;
}
.status1 {
background: #F0F0F0;
color: #8C8C8C;
}
.status2 {
background: rgba(38, 129, 255, 0.2);
color: #2681FF;
}
.status3 {
background: #F7F7F7;
color: #2681FF;
}
.status4 {
background: rgba(255, 85, 51, 0.2);
color: #FF5533;
}
.status5 {
background: #F7F7F7;
color: rgba(0, 0, 0, 0.85);
}
.status7 {
background: rgba(255, 129, 51, 0.2);
color: #FF8133;
}
.status8 {
background: rgba(65, 217, 165, 0.2);
color: #41D9A5;
}
}
}
.item-row {
padding: 16rpx 0;
.row-label {
color: rgba(0, 0, 0, 0.55);
}
.row-value {
color: rgba(0, 0, 0, 0.85)
}
}
.operate {
display: flex;
justify-content: flex-end;
.btn {
width: 146rpx;
.card-icon {
width: 56rpx;
height: 56rpx;
line-height: 56rpx;
border-radius: 8rpx;
margin-left: 5rpx;
text-align: center;
border-radius: 50%;
background: rgba(255, 255, 255, 0.25);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.header-info {
flex: 1;
display: flex;
flex-direction: column;
gap: 12rpx;
min-width: 0;
}
.card-name-row {
display: flex;
align-items: baseline;
gap: 12rpx;
}
.card-name {
font-size: 32rpx;
font-weight: 700;
color: #ffffff;
line-height: 1.2;
}
.card-code {
font-size: 28rpx;
color: rgba(255, 255, 255, 0.75);
font-weight: 400;
line-height: 1.2;
}
.card-limit-row {
display: flex;
align-items: center;
gap: 8rpx;
flex-wrap: wrap;
}
.limit-label {
font-size: 24rpx;
color: rgba(255, 255, 255, 0.7);
font-weight: 400;
}
.bill-date {
font-size: 30rpx;
font-weight: 600;
color: #ffffff;
margin-right: 16rpx;
}
.limit-value {
font-size: 32rpx;
font-weight: 700;
color: #52c41a;
}
}
.circulation {
background: rgba(0, 0, 0, 0.04);
margin-right: 24rpx;
color: rgba(0, 0, 0, 0.85);
}
.card-body {
padding: 24rpx;
background: #fff;
display: flex;
flex-direction: column;
gap: 24rpx;
}
.filling {
background: #2681FF;
border-radius: 8rpx;
color: #FFFFFF;
.pos-section,
.record-section {
display: flex;
flex-direction: column;
gap: 12rpx;
}
.section-header {
display: flex;
align-items: center;
gap: 8rpx;
margin-bottom: 4rpx;
.section-title {
font-size: 26rpx;
color: #333;
font-weight: 600;
}
}
.pos-tags {
display: flex;
flex-wrap: wrap;
gap: 12rpx;
}
.pos-tag {
font-size: 24rpx;
color: #667eea;
font-weight: 500;
padding: 8rpx 16rpx;
background: rgba(102, 126, 234, 0.1);
border: 1rpx solid rgba(102, 126, 234, 0.3);
border-radius: 24rpx;
line-height: 1.3;
}
.record-list {
display: flex;
flex-direction: column;
gap: 8rpx;
}
.record-text {
font-size: 24rpx;
color: #666;
line-height: 1.6;
padding-left: 8rpx;
}
}
</style>