收支明细界面,card的组件抽离1.0
This commit is contained in:
parent
8ea7ad979f
commit
9ff0952f81
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user