充值方式字段描述

master
Chopper 2021-06-28 10:07:46 +08:00
parent cfe9b07fe8
commit 081d251594
3 changed files with 27 additions and 5 deletions

View File

@ -258,13 +258,13 @@ export default {
key: 'rechargeMoney', key: 'rechargeMoney',
render: (h, params) => { render: (h, params) => {
if (params.row.payStatus === 'PAID') { if (params.row.payStatus === 'PAID') {
return h('div', [h('span',{ return h('div', [h('span', {
style: { style: {
color: 'green' color: 'green'
} }
}, this.$options.filters.unitPrice(params.row.rechargeMoney, '+ ¥'))]); }, this.$options.filters.unitPrice(params.row.rechargeMoney, '+ ¥'))]);
} else { } else {
return h('div', [h('span',this.$options.filters.unitPrice(params.row.rechargeMoney, '¥'))]); return h('div', [h('span', this.$options.filters.unitPrice(params.row.rechargeMoney, '¥'))]);
} }
} }
}, },
@ -281,7 +281,18 @@ export default {
}, },
{ {
title: '支付方式', title: '支付方式',
key: 'rechargeWay' key: 'rechargeWay',
render: (h, params) => {
if (params.row.rechargeWay === 'ALIPAY') {
return h('div', [h('span', {}, '支付宝')]);
} else if (params.row.rechargeWay === 'WECHAT') {
return h('div', [h('span', {}, '微信')]);
} else if (params.row.rechargeWay === 'BANK_TRANSFER') {
return h('div', [h('span', {}, '线下转账')]);
} else {
return h('div', [h('span', {}, '未知方式')]);
}
}
}, },
{ {
title: '支付时间', title: '支付时间',
@ -308,7 +319,7 @@ export default {
width: 110, width: 110,
render: (h, params) => { render: (h, params) => {
if (params.row.applyStatus === 'VIA_AUDITING') { if (params.row.applyStatus === 'VIA_AUDITING') {
return h('div', [h('span',{ return h('div', [h('span', {
style: { style: {
color: 'green' color: 'green'
} }

View File

@ -122,6 +122,17 @@
title: "充值方式", title: "充值方式",
key: "rechargeWay", key: "rechargeWay",
width: 120, width: 120,
render: (h, params) => {
if (params.row.rechargeWay === 'ALIPAY') {
return h('div', [h('span', {}, '支付宝')]);
} else if (params.row.rechargeWay === 'WECHAT') {
return h('div', [h('span', {}, '微信')]);
} else if (params.row.rechargeWay === 'BANK_TRANSFER') {
return h('div', [h('span', {}, '线下转账')]);
} else {
return h('div', [h('span', {}, '未知方式')]);
}
}
}, },
{ {
title: "支付状态", title: "支付状态",

View File

@ -78,7 +78,7 @@ export default {
color: "red", color: "red",
}, },
}, },
this.$options.filters.unitPrice(params.row.money, "¥") this.$options.filters.unitPrice(-params.row.money, "- ¥")
), ),
]); ]);
} }