|
|
@@ -656,7 +656,14 @@ export default {
|
|
|
const rowGap = 36
|
|
|
|
|
|
ctx.setTextAlign('left')
|
|
|
- that.drawInfoRow(ctx, '最新余额', '¥' + that.formatMoney(that.customBalance), labelX, valueX, rowY, false, '#3385ff')
|
|
|
+ // 负余额表示尚有待结:文案改「最新待结」,金额用绝对值并标红,便于客户理解
|
|
|
+ const bal = Number(that.customBalance)
|
|
|
+ const balLabel = bal < 0 ? '最新待结' : '最新余额'
|
|
|
+ const balValue = bal < 0
|
|
|
+ ? ('¥' + that.formatMoney(Math.abs(bal)))
|
|
|
+ : ('¥' + that.formatMoney(bal))
|
|
|
+ const balColor = bal < 0 ? '#e02020' : '#3385ff'
|
|
|
+ that.drawInfoRow(ctx, balLabel, balValue, labelX, valueX, rowY, false, balColor)
|
|
|
rowY += rowGap
|
|
|
|
|
|
ctx.setFillStyle('#666666')
|