收支明细界面,card的组件抽离1.0

This commit is contained in:
WindowBird 2025-08-18 14:47:41 +08:00
parent 8ea7ad979f
commit 9ff0952f81

View File

@ -25,7 +25,7 @@
</view>
</view>
<view :class="item.amount >= 0 ? 'positive' : 'negative'" class="number">
{{ item.amount >= 0 ? '+' : '' }}¥{{ Math.abs(item.amount).toFixed(2) }}
{{ item.amount >= 0 ? '+' : '-' }}¥{{ Math.abs(item.amount).toFixed(2) }}
</view>
</view>
</view>
@ -198,6 +198,7 @@ export default {
color: #333;
text-align: right;
padding-right: 20rpx;
white-space: nowrap;
&.positive {
color: #ff803a;