Browse Source

手机号加密处理

origin/sync_user
zhangyongzhangyong 4 years ago
parent
commit
7f3cffce01
  1. 4
      src/views/modules/epidemic/epidemicreportuserinfo.vue

4
src/views/modules/epidemic/epidemicreportuserinfo.vue

@ -955,6 +955,7 @@ export default {
// //
exportHandle () { exportHandle () {
this.checkMobile = '' this.checkMobile = ''
this.smsCode = ''
this.$http this.$http
.get(`/sys/verificationfreeuser/preCheckLoginUser`) .get(`/sys/verificationfreeuser/preCheckLoginUser`)
.then(({ data: res }) => { .then(({ data: res }) => {
@ -968,7 +969,8 @@ export default {
if (!myreg.test(res.msg)) { if (!myreg.test(res.msg)) {
return this.$message.error(res.msg + '手机号格式错误!') return this.$message.error(res.msg + '手机号格式错误!')
} }
this.checkMobile = res.msg // ****
this.checkMobile = res.msg.replace(res.msg.substring(3,7), '****')
this.dialogVisibleSMS = true this.dialogVisibleSMS = true
} }
if (res.code === 0) { if (res.code === 0) {

Loading…
Cancel
Save