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

@@ -56,6 +56,14 @@
</view>
<view class="operate" @click.stop>
<view class="btn-record" v-if="item.status === '1'" @click="handleRecord(item)">
<uni-icons type="compose" size="16" color="#52c41a"></uni-icons>
<text>账户记账</text>
</view>
<view class="btn-deal" v-if="item.status === '1'" @click="handleAddDeal(item)">
<uni-icons type="bars" 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>
@@ -220,6 +228,22 @@ function dictStr(val, arr) {
}
});
}
function handleAddDeal(item) {
// 跳转到投资交易记录页面传递账户ID
uni.navigateTo({
url: `/pages/work/accounts/investAccountDeal/addEdit?accountId=${item.id}`
})
isShow.value = true
}
function handleRecord(item) {
// 跳转到投资账户记账页面传递账户ID
uni.navigateTo({
url: `/pages/work/accounts/investTransferRecord/addEdit?investAccountId=${item.id}`
})
isShow.value = true
}
</script>
@@ -415,26 +439,45 @@ page {
.operate {
display: flex;
justify-content: flex-end;
gap: 16rpx;
gap: 8rpx;
padding: 16rpx 24rpx 24rpx;
flex-wrap: nowrap;
.btn-deal,
.btn-record,
.btn-edit,
.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-record {
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);