收支明细界面,card的组件抽离1.0
This commit is contained in:
parent
8ea7ad979f
commit
9ff0952f81
|
|
@ -25,7 +25,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view :class="item.amount >= 0 ? 'positive' : 'negative'" class="number">
|
<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>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -198,6 +198,7 @@ export default {
|
||||||
color: #333;
|
color: #333;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
padding-right: 20rpx;
|
padding-right: 20rpx;
|
||||||
|
white-space: nowrap;
|
||||||
|
|
||||||
&.positive {
|
&.positive {
|
||||||
color: #ff803a;
|
color: #ff803a;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user