From bf909cfa0f1503b9d78d3cbcf93692f676db88df Mon Sep 17 00:00:00 2001 From: liaozetao <1107136310@qq.com> Date: Wed, 27 Dec 2023 17:40:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=A0=E9=81=93=E5=B1=95=E7=A4=BA=E9=A2=9C?= =?UTF-8?q?=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/charge/ChargeRegionView.vue | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/views/charge/ChargeRegionView.vue b/src/views/charge/ChargeRegionView.vue index da9fe00..035da7b 100644 --- a/src/views/charge/ChargeRegionView.vue +++ b/src/views/charge/ChargeRegionView.vue @@ -308,7 +308,23 @@ export default { $('#channelTable').bootstrapTable({ columns: [ { field: 'payChannel', title: '合作方', align: 'center', width: '5%' }, - { field: 'desc', title: '渠道名称', align: 'center', width: '5%' }, + { + field: 'desc', + title: '渠道名称', + align: 'center', + width: '5%', + formatter: function (val, row, index) { + let color = 'black'; + if (val == 'Mycard點數卡' || val == 'MyCard會員點數' || val == 'MyCard Paypal' || val == 'MyCard信用卡' || val == '悠遊付' || val == 'ezPay 簡單付' || val == '台灣Pay' || val == 'icash Pay' || val == 'Pi 拍錢包' || val == '全支付') { + color = 'green'; + } else if (val == '電子支付' || val == 'Mycard銀行轉賬') { + color = 'blue'; + } else if (val == '電話賬單') { + color = 'orange'; + } + return '' + val + ''; + } + }, { field: 'logo', title: '图标',