This commit is contained in:
liuye
2022-01-14 16:22:44 +08:00
parent da8d6a8bfa
commit b556585e95
2 changed files with 2 additions and 0 deletions

View File

@@ -162,6 +162,7 @@ export default {
.then((res) => { .then((res) => {
if (res.code == 0) { if (res.code == 0) {
this.data = res.data this.data = res.data
this.data.idNumber = res.data.idNumber.replace(/(.{6}).*(.{4})/,"$1********$2")
this.$hideLoading() this.$hideLoading()
} else { } else {
this.$hideLoading() this.$hideLoading()

View File

@@ -170,6 +170,7 @@ export default {
this.info = res.data this.info = res.data
this.info.checkPhoto = JSON.parse(this.info.checkPhoto) this.info.checkPhoto = JSON.parse(this.info.checkPhoto)
this.info.health = this.info.health.split(',') this.info.health = this.info.health.split(',')
this.info.idNumber = res.data.idNumber.replace(/(.{6}).*(.{4})/,"$1********$2")
} }
}) })
}, },