fix: 功能优化与完善。
This commit is contained in:
@@ -84,10 +84,18 @@
|
||||
</view>
|
||||
|
||||
<view class="operate" @click.stop>
|
||||
<view class="btn-limit" @click="handleLimitHistory(item)">
|
||||
<view class="btn-limit" @click="handleLimitHistory(item)">
|
||||
<uni-icons type="list" size="16" color="#fa8c16"></uni-icons>
|
||||
<text>调额记录</text>
|
||||
</view>
|
||||
<view class="btn-transfer" @click="handleTransfer(item)">
|
||||
<uni-icons type="loop" size="16" color="#52c41a"></uni-icons>
|
||||
<text>转账</text>
|
||||
</view>
|
||||
<view class="btn-deal" @click="handleAddDeal(item)">
|
||||
<uni-icons type="cart" size="16" color="#1890ff"></uni-icons>
|
||||
<text>交易</text>
|
||||
</view>
|
||||
<view class="btn-edit" @click="handleEdit(item)">
|
||||
<uni-icons type="compose" size="16" color="#667eea"></uni-icons>
|
||||
<text>修改</text>
|
||||
@@ -285,6 +293,27 @@ function selectStatus(item) {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function handleAddDeal(item) {
|
||||
// 构建URL参数:账户ID、账户类型(储蓄卡type=1)、储蓄卡类型
|
||||
let url = `/pages/work/accounts/accountDealRecord/addEdit?accountId=${item.id}&accountType=1`
|
||||
|
||||
// 传递储蓄卡类型参数
|
||||
if (item.debitType) {
|
||||
url += `&debitType=${item.debitType}`
|
||||
}
|
||||
|
||||
uni.navigateTo({ url })
|
||||
isShow.value = true
|
||||
}
|
||||
|
||||
function handleTransfer(item) {
|
||||
// 跳转到储蓄账户转账页面,传递储蓄账户ID
|
||||
uni.navigateTo({
|
||||
url: `/pages/work/accounts/debitTransferRecord/addEdit?debitAccountId=${item.id}`
|
||||
})
|
||||
isShow.value = true
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
@@ -645,27 +674,46 @@ page {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
padding: 16rpx 24rpx 24rpx;
|
||||
gap: 16rpx;
|
||||
gap: 8rpx;
|
||||
flex-wrap: nowrap;
|
||||
|
||||
.btn-deal,
|
||||
.btn-transfer,
|
||||
.btn-edit,
|
||||
.btn-limit,
|
||||
.btn-delete {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 6rpx;
|
||||
padding: 0 24rpx;
|
||||
height: 64rpx;
|
||||
border-radius: 12rpx;
|
||||
font-size: 26rpx;
|
||||
gap: 4rpx;
|
||||
padding: 0 14rpx;
|
||||
height: 60rpx;
|
||||
border-radius: 10rpx;
|
||||
font-size: 24rpx;
|
||||
font-weight: 500;
|
||||
transition: all 0.3s ease;
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
|
||||
&:active {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
}
|
||||
|
||||
.btn-deal {
|
||||
background: rgba(24, 144, 255, 0.1);
|
||||
color: #1890ff;
|
||||
border: 2rpx solid #1890ff;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.btn-transfer {
|
||||
background: rgba(82, 196, 26, 0.1);
|
||||
color: #52c41a;
|
||||
border: 2rpx solid #52c41a;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.btn-edit {
|
||||
background: rgba(102, 126, 234, 0.1);
|
||||
color: #667eea;
|
||||
|
||||
Reference in New Issue
Block a user