| | |
| | | formatter: function (value, row) { |
| | | var btn = ""; |
| | | if(row.phone != '' && row.phone != null) { |
| | | btn = ['<p class="toolTip" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="' + row.phone + '" onfocus="TUser.tooltip()">' + row.phone + '</p>'] |
| | | btn = ['<p class="toolTip" style="overflow:hidden;white-space:nowrap;text-overflow:ellipsis;" title="' + decryptAES(row.phone) + '" onfocus="TUser.tooltip()">' + decryptAES(row.phone) + '</p>'] |
| | | } |
| | | return btn; |
| | | } |
| | |
| | | } |
| | | |
| | | |
| | | YesDriver.deductmoney = function(){ |
| | | if (this.check()) { |
| | | var index = layer.open({ |
| | | type: 2, |
| | | title: '添加扣款', |
| | | area: ['100%', '100%'], //宽高 |
| | | fix: false, //不固定 |
| | | maxmin: true, |
| | | content: Feng.ctxPath + '/tDriver/deductmoney?driverId=' + YesDriver.seItem.id |
| | | |
| | | |
| | | 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; |
| | | } |
| | | try { |
| | | var decrypt = CryptoJS.AES.decrypt(context, key, { |
| | | iv: iv, |
| | | mode: CryptoJS.mode.CBC, |
| | | padding: CryptoJS.pad.Pkcs7 |
| | | }); |
| | | this.layerIndex = index; |
| | | var decryptedStr = decrypt.toString(CryptoJS.enc.Utf8); |
| | | return decryptedStr.toString(); |
| | | }catch (e) { |
| | | e.toString() |
| | | return context; |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 查询司机审核列表列表 |
| | | */ |
| | |
| | | var queryData = {}; |
| | | queryData['insertTime'] = $("#insertTime").val(); |
| | | queryData['companyName'] = $("#companyName").val(); |
| | | queryData['phone'] = $("#phone").val(); |
| | | queryData['phone'] = encryptAES($("#phone").val()); |
| | | queryData['name'] = $("#name").val(); |
| | | queryData['addType'] = $("#addType").val(); |
| | | queryData['authState'] = $("#authState").val(); |