Commit f62c4046 authored by 高铭波's avatar 高铭波

修改流水金额显示问题

parent 35782818
......@@ -14,7 +14,7 @@
</view>
<view class="right-view">
<view :class="['statement-status-view', statementTypeClass]">{{data.status}}</view>
<view class="statement-amount-view">+{{data.amount}}</view>
<view class="statement-amount-view">{{ fmtAmount }}</view>
</view>
</view>
<view class="line-view"></view>
......@@ -52,6 +52,13 @@
return 'statement-type-h'
}
},
fmtAmount() {
if(this.data.amount > 0) {
return (`+${this.data.amount}`)
} else {
return this.data.amount
}
},
isWarranty() {
return this.data.inGuaranteePeriod ? '保内' : '保外'
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment