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,11 +2,8 @@
<view class="container" style="paddingBottom:1rpx;">
<u-navbar
leftIconSize="40rpx"
leftIconColor="#ffffff"
leftIconColor="#333333"
title="信用卡分期账单"
:titleStyle="{color: '#ffffff', fontSize: '36rpx', fontWeight: '600'}"
:bgColor="'transparent'"
:customStyle="{background: 'linear-gradient(135deg, #667eea 0%, #764ba2 100%)', boxShadow: '0 4rpx 12rpx rgba(102, 126, 234, 0.3)'}"
>
</u-navbar>
<view class="section">
@@ -62,17 +59,13 @@
</u-form-item>
</u--form>
<view class="form-btn">
<u-button type="primary" text="提交" @click="submit"
customStyle="background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border: none; border-radius: 16rpx; font-size: 32rpx; font-weight: 600; height: 96rpx; box-shadow: 0 4rpx 12rpx rgba(102, 126, 234, 0.3);"></u-button>
<u-button type="primary" text="提交" @click="submit"></u-button>
</view>
</view>
</view>
<u-toast ref="uToast"></u-toast>
<u-picker itemHeight="88" :show="showTeam" :columns="settleStateList" keyName="dictLabel" @cancel="handleCancel"
@confirm="handleConfirm"
title="选择结清状态"
:confirmColor="'#667eea'"
:cancelColor="'#666666'"></u-picker>
@confirm="handleConfirm"></u-picker>
<u-datetime-picker
:show="datePickShow"
mode="date"
@@ -81,9 +74,6 @@
@cancel="datePickShow=false"
@confirm="datePickConfirm"
itemHeight="88"
title="选择分期日期"
:confirmColor="'#667eea'"
:cancelColor="'#666666'"
></u-datetime-picker>
<u-datetime-picker
:show="closeDatePickShow"
@@ -93,15 +83,9 @@
@cancel="closeDatePickShow=false"
@confirm="closeDatePickConfirm"
itemHeight="88"
title="选择关闭日期"
:confirmColor="'#667eea'"
:cancelColor="'#666666'"
></u-datetime-picker>
<u-picker itemHeight="88" :show="showOnlineLend" :columns="bankCardLendList" keyName="nameCode" @cancel="handleOnlineLendCancel"
@confirm="handleOnlineLendConfirm"
title="选择信用卡"
:confirmColor="'#667eea'"
:cancelColor="'#666666'"></u-picker>
@confirm="handleOnlineLendConfirm"></u-picker>
</view>
</template>
@@ -288,25 +272,54 @@ onLoad((option) => {
<style lang="scss" scoped>
.section {
margin: 24rpx;
padding: 16rpx 24rpx;
padding: 0;
background-color: #fff;
border-radius: 8rpx;
border-radius: 16rpx;
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.08);
overflow: hidden;
.section-title {
width: 360rpx;
color: #333333;
line-height: 44rpx;
font-size: 30rpx;
border-left: 6rpx solid #2681FF;
padding-left: 26rpx;
padding: 16rpx 24rpx;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: #ffffff;
line-height: 1.2;
font-size: 28rpx;
font-weight: 600;
display: flex;
align-items: center;
&::before {
content: '';
width: 6rpx;
height: 28rpx;
background: #ffffff;
border-radius: 3rpx;
margin-right: 12rpx;
}
}
.form-view {
padding: 20rpx 0rpx 0 10rpx;
padding: 24rpx;
.form-btn {
padding-top: 20rpx;
padding-top: 16rpx;
}
}
}
</style>
<style lang="scss">
.form-btn .u-button {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
border: none !important;
border-radius: 24rpx !important;
height: 80rpx !important;
box-shadow: 0 4rpx 16rpx rgba(102, 126, 234, 0.4) !important;
}
.form-btn .u-button__text {
font-size: 30rpx !important;
font-weight: 500 !important;
letter-spacing: 2rpx !important;
}
</style>

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;

View File

@@ -2,11 +2,8 @@
<view class="container" style="paddingBottom:1rpx;">
<u-navbar
leftIconSize="40rpx"
leftIconColor="#ffffff"
leftIconColor="#333333"
title="信用卡分期还款明细"
:titleStyle="{color: '#ffffff', fontSize: '36rpx', fontWeight: '600'}"
:bgColor="'transparent'"
:customStyle="{background: 'linear-gradient(135deg, #667eea 0%, #764ba2 100%)', boxShadow: '0 4rpx 12rpx rgba(102, 126, 234, 0.3)'}"
>
</u-navbar>
<view class="section">
@@ -46,17 +43,13 @@
</u-form-item>
</u--form>
<view class="form-btn">
<u-button type="primary" text="提交" @click="submit"
customStyle="background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border: none; border-radius: 16rpx; font-size: 32rpx; font-weight: 600; height: 96rpx; box-shadow: 0 4rpx 12rpx rgba(102, 126, 234, 0.3);"></u-button>
<u-button type="primary" text="提交" @click="submit"></u-button>
</view>
</view>
</view>
<u-toast ref="uToast"></u-toast>
<u-picker itemHeight="88" :show="showTeam" :columns="postingStateList" keyName="dictLabel" @cancel="handleCancel"
@confirm="handleConfirm"
title="选择入账状态"
:confirmColor="'#667eea'"
:cancelColor="'#666666'"></u-picker>
@confirm="handleConfirm"></u-picker>
<u-datetime-picker
:show="datePickShow"
mode="date"
@@ -65,9 +58,6 @@
@cancel="datePickShow=false"
@confirm="datePickConfirm"
itemHeight="88"
title="选择还款日期"
:confirmColor="'#667eea'"
:cancelColor="'#666666'"
></u-datetime-picker>
</view>
</template>
@@ -184,25 +174,54 @@ onLoad((option) => {
<style lang="scss" scoped>
.section {
margin: 24rpx;
padding: 16rpx 24rpx;
padding: 0;
background-color: #fff;
border-radius: 8rpx;
border-radius: 16rpx;
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.08);
overflow: hidden;
.section-title {
width: 360rpx;
color: #333333;
line-height: 44rpx;
font-size: 30rpx;
border-left: 6rpx solid #2681FF;
padding-left: 26rpx;
padding: 16rpx 24rpx;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: #ffffff;
line-height: 1.2;
font-size: 28rpx;
font-weight: 600;
display: flex;
align-items: center;
&::before {
content: '';
width: 6rpx;
height: 28rpx;
background: #ffffff;
border-radius: 3rpx;
margin-right: 12rpx;
}
}
.form-view {
padding: 20rpx 0rpx 0 10rpx;
padding: 24rpx;
.form-btn {
padding-top: 20rpx;
padding-top: 16rpx;
}
}
}
</style>
<style lang="scss">
.form-btn .u-button {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
border: none !important;
border-radius: 24rpx !important;
height: 80rpx !important;
box-shadow: 0 4rpx 16rpx rgba(102, 126, 234, 0.4) !important;
}
.form-btn .u-button__text {
font-size: 30rpx !important;
font-weight: 500 !important;
letter-spacing: 2rpx !important;
}
</style>

View File

@@ -1,54 +1,47 @@
<template>
<view class="container">
<u-sticky offsetTop="8rpx" customNavHeight="8rpx">
<view class="search-view">
<u-input v-model="queryParams.onlineLendName" border="false" type="select" @click="handleOnlineLend" placeholder="请选择信用卡" suffixIcon="search"
suffixIconStyle="color: #909399" class="search-input">
</u-input>
<view class="add-btn" @click="handleAdd()">
<uni-icons type="plus-filled" size="18" color="#ffffff"></uni-icons>
<text>新增</text>
<u-sticky offsetTop="-10rpx" customNavHeight="0rpx">
<view class="sticky-container">
<view class="search-view">
<u-input v-model="queryParams.onlineLendName" border="false" type="select" @click="handleOnlineLend" placeholder="请选择信用卡" suffixIcon="search"
suffixIconStyle="color: #909399" class="search-input">
</u-input>
<view class="add-btn" @click="handleAdd()">
<uni-icons type="plusempty" size="18" color="#667eea"></uni-icons>
<text>新增</text>
</view>
</view>
<u-icon :name="filterPanel ? 'arrow-up-fill' : 'arrow-down-fill'" color="#667eea" size="28" label="筛选"
labelPos="left" labelSize="28rpx" labelColor="#667eea" @click="filterPanel = !filterPanel"
style="display: flex; align-items: center; gap: 6rpx; padding: 8rpx 16rpx; background: rgba(102, 126, 234, 0.1); border-radius: 20rpx; border: 1rpx solid rgba(102, 126, 234, 0.3); margin-left: 12rpx;"></u-icon>
<u-transition :show="filterPanel" mode="fade">
<view class="filter-panel" :style="{ height: `${windowHeight - 42}px` }">
<view class="filter-panel-content">
<view class="filter-title">结清状态</view>
<view class="state-list">
<view v-for="item in settleStateList" :key="item.id" class="state-item"
:class="item.selected ? 'active' : ''" @click="selectStatus(item)">{{ item.dictLabel }}</view>
</view>
<view class="filter-view">
<view class="filter-title">结清状态</view>
<view class="type-list">
<view class="type-item" :class="!queryParams.state ? 'active' : ''" @click="selectStatus('')">
<text>全部</text>
</view>
<view class="btn-box">
<view class="btn-reset" @click="resetQuery()">
<uni-icons type="reload" size="16" color="#909399"></uni-icons>
<text>重置</text>
</view>
<view class="btn-confirm" @click="searchSubmit()">
<uni-icons type="checkmarkempty" size="16" color="#ffffff"></uni-icons>
<text>确定</text>
</view>
<view v-for="item in settleStateList" :key="item.dictValue" class="type-item"
:class="queryParams.state === item.dictValue ? 'active' : ''" @click="selectStatus(item.dictValue)">
<text>{{ item.dictLabel }}</text>
</view>
</view>
</u-transition>
</view>
</view>
</u-sticky>
<u-list @scrolltolower="loadmore" :spaceHeight="116" lowerThreshold="100">
<u-list-item v-for="(item, index) in listData" :key="index">
<view class="list-item" @click="enterDetails(item)">
<view class="item-header">
<view class="header-row">
<view class="first-row">
<view class="card-icon">
<uni-icons type="wallet-filled" size="20" color="#ffffff"></uni-icons>
</view>
<text class="card-name">{{ item.bankNameCode }}</text>
<text class="card-date">{{ item.installmentDate }}</text>
<text class="card-amount">分期 {{ item.installmentAmount }}</text>
</view>
<view class="info-row">
<text class="time-text">分期{{ item.installmentAmount }}</text>
<text class="type-text">{{ item.period }}</text>
<text class="amount-value">{{ dictStr(item.state, settleStateList) }}</text>
<view class="second-row">
<text class="state-text">{{ dictStr(item.state, settleStateList) }}</text>
<text class="repayment-date">最近还款日 {{ parseTime(item.repaymentDate, '{y}-{m}-{d}') || '-' }}</text>
<text class="balance-value">余额 {{ item.balance }}</text>
</view>
</view>
@@ -62,47 +55,28 @@
<text class="info-value">{{ item.repaidPeriod }}</text>
</view>
<view class="info-item">
<text class="info-label">余额</text>
<text class="info-value highlight">{{ item.balance }}</text>
<text class="info-label">年化利率</text>
<text class="info-value">{{ item.interestRate || '-' }}</text>
</view>
</view>
<view class="detail-body">
<view class="detail-row">
<view class="detail-item">
<text class="detail-label">年化利率</text>
<text class="detail-value">{{ item.interestRate || '-' }}</text>
</view>
<view class="detail-item">
<text class="detail-label">计算利率</text>
<text class="detail-value">{{ item.calculateInterestRate || '-' }}</text>
</view>
<view class="info-item">
<text class="info-label">计算利率</text>
<text class="info-value">{{ item.calculateInterestRate || '-' }}</text>
</view>
<view class="detail-row">
<view class="detail-item">
<text class="detail-label">剩余本金</text>
<text class="detail-value">{{ item.outstandingPrincipal || '0' }}</text>
</view>
<view class="detail-item">
<text class="detail-label">剩余利息</text>
<text class="detail-value">{{ item.outstandingInterest || '0' }}</text>
</view>
<view class="info-item">
<text class="info-label">剩余本金</text>
<text class="info-value orange">{{ item.outstandingPrincipal || '0' }}</text>
</view>
<view class="detail-row">
<view class="detail-item">
<text class="detail-label">总利息</text>
<text class="detail-value">{{ item.totalInterest || '0' }}</text>
</view>
<view class="detail-item">
<text class="detail-label">到期日期</text>
<text class="detail-value">{{ item.dueDate || '-' }}</text>
</view>
<view class="info-item">
<text class="info-label">剩余利息</text>
<text class="info-value orange">{{ item.outstandingInterest || '0' }}</text>
</view>
<view class="detail-row">
<view class="detail-item">
<text class="detail-label">最近还款日</text>
<text class="detail-value">{{ parseTime(item.repaymentDate, '{y}-{m}-{d}') }}</text>
</view>
<view class="info-item">
<text class="info-label">总利息</text>
<text class="info-value orange">{{ item.totalInterest || '0' }}</text>
</view>
<view class="info-item">
<text class="info-label">到期日期</text>
<text class="info-value">{{ item.dueDate || '-' }}</text>
</view>
</view>
@@ -156,7 +130,6 @@ const settingColumns = ref([])
const showOnlineLend = ref(false)
const bankCardLendList = ref([])
const data = reactive({
filterPanel: false,
queryBankCardLendParams: {
pageNum: 1,
type: '2',
@@ -167,13 +140,10 @@ const data = reactive({
name: null,
type: '2',
bankCardLendId: null,
state: '0'
state: ''
}
})
const { filterPanel, queryBankCardLendParams, queryParams} = toRefs(data)
const windowHeight = computed(() => {
uni.getSystemInfoSync().windowHeight - 50
})
const { queryBankCardLendParams, queryParams} = toRefs(data)
onLoad(() => {
getDict()
getList()
@@ -233,16 +203,11 @@ function dictStr(val, arr) {
})
return str
}
function selectStatus(item) {
queryParams.value.state = item.dictValue
settleStateList.value.map(ele => {
if (ele.dictValue == item.dictValue) {
ele.selected = true
Reflect.set(ele, 'selected', true)
} else {
Reflect.set(ele, 'selected', false)
}
})
function selectStatus(value) {
queryParams.value.state = value
pageNum.value = 1
listData.value = []
getList()
}
function handleOnlineLend() {
if (bankCardLendList.value[0].length === 0) {
@@ -264,24 +229,14 @@ function selectStatus(item) {
function handleOnlineLendCancel() {
showOnlineLend.value = false
}
function searchSubmit() {
pageNum.value = 1
listData.value = []
getList()
filterPanel.value = false
}
function searchBlur() {
pageNum.value = 1
listData.value = []
getList()
}
function resetQuery() {
queryParams.value.bankCardLendId = '',
queryParams.value.state= '0',
queryParams.value.type = '3'
settleStateList.value.map(ele => {
Reflect.set(ele, 'selected', false)
})
queryParams.value.bankCardLendId = ''
queryParams.value.onlineLendName = ''
queryParams.value.state = ''
queryParams.value.type = '2'
pageNum.value = 1
listData.value = []
getList()
}
function enterDetails(item) {
uni.navigateTo({ url: `/pages/work/bill/creditInstallmentHistory/details?id=${item.id}&name=${item.bankNameCode}` })
@@ -330,6 +285,11 @@ function selectStatus(item) {
text-align: center;
}
.sticky-container {
background-color: #f5f7fa;
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);
}
.search-view {
padding: 12rpx 32rpx;
background-color: #ffffff;
@@ -353,118 +313,66 @@ function selectStatus(item) {
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;
}
}
}
.filter-panel {
width: 100%;
position: absolute;
left: 0;
top: 96rpx;
background-color: rgba(0, 0, 0, 0.5);
.filter-panel-content {
background-color: #ffffff;
padding: 0 30rpx 30rpx;
border-radius: 16rpx 16rpx 0 0;
.filter-title {
color: #2c3e50;
font-size: 32rpx;
.filter-view {
padding: 16rpx 32rpx 20rpx;
background-color: #ffffff;
border-bottom: 1rpx solid #f0f0f0;
display: flex;
align-items: center;
gap: 16rpx;
.filter-title {
color: #333333;
font-size: 28rpx;
font-weight: 600;
flex-shrink: 0;
}
.type-list {
display: flex;
flex-wrap: wrap;
gap: 12rpx;
flex: 1;
.type-item {
padding: 0 24rpx;
height: 60rpx;
line-height: 60rpx;
border-radius: 30rpx;
font-size: 26rpx;
color: #666666;
background: #f5f7fa;
border: 2rpx solid transparent;
transition: all 0.3s ease;
&:active {
transform: scale(0.95);
}
&.active {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: #ffffff;
font-weight: 600;
padding: 32rpx 0 24rpx;
}
.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: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border: 2rpx solid transparent;
color: #ffffff;
box-shadow: 0 4rpx 12rpx rgba(102, 126, 234, 0.3);
font-weight: 600;
}
}
}
.btn-box {
display: flex;
gap: 20rpx;
padding: 24rpx 30rpx;
background-color: #fff;
box-shadow: 0rpx -10rpx 20rpx #EEEEEE;
.btn-reset,
.btn-confirm {
display: flex;
align-items: center;
justify-content: center;
gap: 8rpx;
height: 88rpx;
border-radius: 12rpx;
font-size: 30rpx;
font-weight: 600;
transition: all 0.3s ease;
&:active {
transform: scale(0.98);
opacity: 0.9;
}
text {
line-height: 1;
}
}
.btn-reset {
flex: 1;
background: #f5f7fa;
border: 2rpx solid #dcdfe6;
text {
color: #606266;
}
}
.btn-confirm {
flex: 1;
background: #667eea;
box-shadow: 0 2rpx 8rpx rgba(102, 126, 234, 0.2);
border: none;
text {
color: #ffffff;
}
box-shadow: 0 2rpx 8rpx rgba(102, 126, 234, 0.3);
}
}
}
@@ -484,7 +392,7 @@ function selectStatus(item) {
padding: 16rpx 24rpx;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
.header-row {
.first-row {
display: flex;
align-items: center;
gap: 10rpx;
@@ -502,8 +410,8 @@ function selectStatus(item) {
}
.card-name {
font-size: 24rpx;
font-weight: 500;
font-size: 28rpx;
font-weight: 600;
color: #ffffff;
line-height: 1.3;
flex: 1;
@@ -513,16 +421,7 @@ function selectStatus(item) {
white-space: nowrap;
}
.info-row {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12rpx;
padding-top: 12rpx;
border-top: 1rpx solid rgba(255, 255, 255, 0.2);
}
.time-text {
.card-date {
font-size: 24rpx;
color: rgba(255, 255, 255, 0.9);
font-weight: 500;
@@ -530,20 +429,47 @@ function selectStatus(item) {
flex-shrink: 0;
}
.type-text {
.card-amount {
font-size: 28rpx;
font-weight: 700;
color: #52c41a;
line-height: 1.2;
flex-shrink: 0;
}
.second-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);
}
.state-text {
font-size: 24rpx;
font-weight: 600;
color: #ffffff;
line-height: 1.3;
flex-shrink: 0;
padding: 4rpx 16rpx;
background: rgba(255, 255, 255, 0.2);
border-radius: 12rpx;
}
.repayment-date {
font-size: 24rpx;
color: rgba(255, 255, 255, 0.9);
font-weight: 500;
color: rgba(255, 255, 255, 0.85);
line-height: 1.3;
flex: 1;
min-width: 0;
text-align: center;
}
.amount-value {
.balance-value {
font-size: 26rpx;
font-weight: 600;
color: #ffffff;
font-weight: 700;
color: #fa8c16;
line-height: 1.2;
flex-shrink: 0;
}
@@ -552,21 +478,25 @@ function selectStatus(item) {
.card-body {
padding: 24rpx;
background: #fff;
display: flex;
gap: 16rpx;
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 16rpx 24rpx;
}
.info-item {
flex: 1;
display: flex;
flex-direction: column;
gap: 6rpx;
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 {
@@ -577,64 +507,27 @@ function selectStatus(item) {
text-overflow: ellipsis;
white-space: nowrap;
&.highlight {
color: #52c41a;
&.orange {
color: #fa8c16;
font-weight: 600;
}
}
}
.detail-body {
padding: 20rpx 24rpx;
background: #f5f7fa;
display: flex;
flex-direction: column;
gap: 16rpx;
border-top: 1rpx solid #e8edf3;
}
.detail-row {
display: flex;
gap: 24rpx;
}
.detail-item {
flex: 1;
display: flex;
flex-direction: column;
gap: 6rpx;
min-width: 0;
.detail-label {
font-size: 22rpx;
color: #999;
font-weight: 400;
}
.detail-value {
font-size: 24rpx;
color: #333;
font-weight: 500;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
.operate {
display: flex;
gap: 12rpx;
padding: 24rpx;
background: #fff;
justify-content: flex-end;
padding: 16rpx 24rpx 24rpx;
gap: 16rpx;
.btn-detail,
.btn-edit,
.btn-delete {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
gap: 6rpx;
padding: 0 24rpx;
height: 64rpx;
border-radius: 12rpx;
font-size: 26rpx;
@@ -647,9 +540,9 @@ function selectStatus(item) {
}
.btn-detail {
background: rgba(102, 126, 234, 0.1);
color: #667eea;
border: 1rpx solid rgba(102, 126, 234, 0.3);
background: rgba(82, 196, 26, 0.1);
color: #52c41a;
border: 1rpx solid rgba(82, 196, 26, 0.3);
}
.btn-edit {