加密身份证号
export const filterIdNo = (input) => {
if(input !== undefined) {
input = input.substring(0, 3) + ' **** ' + ' **** ' + input.substring(input.length - 4)
}
return input ;
};
加密银行卡号
export const filterAccount = (input) => {
if(input !== undefined) {
input = input.substring(0,4) + ' ****' +' **** ' + input.substring(input.length - 4)
}
return input ;
};
使用:
eg:
{{cardNo|filterAccount }}