fix: 功能优化与完善。
This commit is contained in:
@@ -86,9 +86,14 @@
|
||||
</view>
|
||||
|
||||
<view class="operate" @click.stop>
|
||||
|
||||
<view class="btn-detail" @click="enterDetails(item)">
|
||||
<uni-icons type="list" 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>
|
||||
@@ -290,6 +295,14 @@ function selectStatus(value) {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function handleAddDeal(item) {
|
||||
// 构建URL参数:账户ID(信用卡ID)、账户类型(信用卡type=2)
|
||||
let url = `/pages/work/accounts/accountDealRecord/addEdit?accountId=${item.creditCardId}&accountType=2`
|
||||
|
||||
uni.navigateTo({ url })
|
||||
isShow.value = true
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
@@ -656,8 +669,10 @@ page {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
padding: 16rpx 24rpx 24rpx;
|
||||
gap: 16rpx;
|
||||
gap: 12rpx;
|
||||
flex-wrap: wrap;
|
||||
|
||||
.btn-deal,
|
||||
.btn-detail,
|
||||
.btn-edit,
|
||||
.btn-delete {
|
||||
@@ -665,7 +680,7 @@ page {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 6rpx;
|
||||
padding: 0 24rpx;
|
||||
padding: 0 20rpx;
|
||||
height: 64rpx;
|
||||
border-radius: 12rpx;
|
||||
font-size: 26rpx;
|
||||
@@ -677,6 +692,13 @@ page {
|
||||
}
|
||||
}
|
||||
|
||||
.btn-deal {
|
||||
background: rgba(24, 144, 255, 0.1);
|
||||
color: #1890ff;
|
||||
border: 2rpx solid #1890ff;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.btn-detail {
|
||||
background: rgba(82, 196, 26, 0.1);
|
||||
color: #52c41a;
|
||||
|
||||
Reference in New Issue
Block a user