From 0481353111afb43a2322e18530dde26f1d841ead Mon Sep 17 00:00:00 2001 From: yanghb <yanghb> Date: 星期五, 21 四月 2023 11:15:34 +0800 Subject: [PATCH] 代码调整 --- ManagementTravel/guns-admin/src/main/webapp/static/modular/system/tPubWithdrawal/tPubWithdrawal.js | 67 ++++++++++++++++++++------------- 1 files changed, 41 insertions(+), 26 deletions(-) diff --git a/ManagementTravel/guns-admin/src/main/webapp/static/modular/system/tPubWithdrawal/tPubWithdrawal.js b/ManagementTravel/guns-admin/src/main/webapp/static/modular/system/tPubWithdrawal/tPubWithdrawal.js index 6273663..48b2568 100644 --- a/ManagementTravel/guns-admin/src/main/webapp/static/modular/system/tPubWithdrawal/tPubWithdrawal.js +++ b/ManagementTravel/guns-admin/src/main/webapp/static/modular/system/tPubWithdrawal/tPubWithdrawal.js @@ -47,24 +47,6 @@ return btn; } }, - {title: '银行', field: 'bankName', visible: true, align: 'center', valign: 'middle', - formatter: function (value, row) { - var btn = ""; - if(row.bankName != '' && row.bankName != null) { - btn = ['<p class="toolTip" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="' + row.bankName + '" onfocus="TUser.tooltip()">' + row.bankName + '</p>'] - } - return btn; - } - }, - {title: '卡号', field: 'code', visible: true, align: 'center', valign: 'middle', - formatter: function (value, row) { - var btn = ""; - if(row.code != '' && row.code != null) { - btn = ['<p class="toolTip" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="' + row.code + '" onfocus="TUser.tooltip()">' + row.code + '</p>'] - } - return btn; - } - }, {title: '账户余额', field: 'balance', visible: true, align: 'center', valign: 'middle', formatter: function (value, row) { var btn = ""; @@ -87,12 +69,6 @@ return btn; } }, - {title: '手续费', field: '', visible: true, align: 'center', valign: 'middle', - formatter: function (value,row) { - return row.money - row.realGetMoney - } - }, - {title: '实际到账金额', field: 'realGetMoney', visible: true, align: 'center', valign: 'middle'}, {title: '联系人', field: 'userName', visible: true, align: 'center', valign: 'middle', formatter: function (value, row) { var btn = ""; @@ -106,7 +82,7 @@ formatter: function (value, row) { var btn = ""; if(row.userPhone != '' && row.userPhone != null) { - btn = ['<p class="toolTip" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="' + row.userPhone + '" onfocus="TUser.tooltip()">' + row.userPhone + '</p>'] + btn = ['<p class="toolTip" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="' + decryptAES(row.userPhone) + '" onfocus="TUser.tooltip()">' + decryptAES(row.userPhone) + '</p>'] } return btn; } @@ -156,7 +132,7 @@ content: Feng.ctxPath + '/tPubWithdrawal/lookDetail/'+id+"/"+type }); this.layerIndex = index; -}; +} /** @@ -195,6 +171,45 @@ } }; + + +var key = CryptoJS.enc.Utf8.parse("xqT86jictTPpHMem"); +var iv = CryptoJS.enc.Utf8.parse("xqT86jicxqT86jic"); + +//aes加密 +function encryptAES(context) { + if(null == context || '' == context){ + return context; + } + var encrypted = ''; + if (typeof(context) == 'string') { + + }else if(typeof(context) == 'object'){ + context = JSON.stringify(context); + } + var srcs = CryptoJS.enc.Utf8.parse(context); + encrypted = CryptoJS.AES.encrypt(srcs, key, { + iv: iv, + mode: CryptoJS.mode.CBC, + padding: CryptoJS.pad.Pkcs7 + }); + return encrypted.toString(); +} +// aes解密 +function decryptAES(context) { + if(null == context || '' == context){ + return context; + } + var decrypt = CryptoJS.AES.decrypt(context, key, { + iv: iv, + mode: CryptoJS.mode.CBC, + padding: CryptoJS.pad.Pkcs7 + }); + var decryptedStr = decrypt.toString(CryptoJS.enc.Utf8); + return decryptedStr.toString(); +} + + /** * 查询提现列表列表 */ -- Gitblit v1.7.1