手机号及身份证号的脱敏处理

LinMeng 等级 190 0 0

详情见下

      // 法人证件号码
      let str = this.pageData.customerInfo.delegateCerti
      this.pageData.customerInfo.delegateCerti = str.replace(/(w{2})w*(w{4})/, '$1******$2');
      // 开户行账号
      let str1 = this.pageData.customerInfo.accCode
      this.pageData.customerInfo.accCode = str1.replace(/(w{4})w*(w{4})/, '$1******$2');
      console.log("脱敏处理后的法人信息及号码",this.pageData.customerInfo.delegateCerti,this.pageData.customerInfo.accCode);
    },
预览图
收藏
评论区