From b556585e95950db169ae51fddb51bf77d5986746 Mon Sep 17 00:00:00 2001 From: liuye Date: Fri, 14 Jan 2022 16:22:44 +0800 Subject: [PATCH] 26640 --- src/apps/AppEpidemicSituation/UserDetail.vue | 1 + src/apps/AppEpidemicSituation/UserInfo.vue | 1 + 2 files changed, 2 insertions(+) diff --git a/src/apps/AppEpidemicSituation/UserDetail.vue b/src/apps/AppEpidemicSituation/UserDetail.vue index a9e6e8ef..5955cd83 100644 --- a/src/apps/AppEpidemicSituation/UserDetail.vue +++ b/src/apps/AppEpidemicSituation/UserDetail.vue @@ -162,6 +162,7 @@ export default { .then((res) => { if (res.code == 0) { this.data = res.data + this.data.idNumber = res.data.idNumber.replace(/(.{6}).*(.{4})/,"$1********$2") this.$hideLoading() } else { this.$hideLoading() diff --git a/src/apps/AppEpidemicSituation/UserInfo.vue b/src/apps/AppEpidemicSituation/UserInfo.vue index 4f1f1144..8d859595 100644 --- a/src/apps/AppEpidemicSituation/UserInfo.vue +++ b/src/apps/AppEpidemicSituation/UserInfo.vue @@ -170,6 +170,7 @@ export default { this.info = res.data this.info.checkPhoto = JSON.parse(this.info.checkPhoto) this.info.health = this.info.health.split(',') + this.info.idNumber = res.data.idNumber.replace(/(.{6}).*(.{4})/,"$1********$2") } }) },