From c517c7fee480f8efec57c542439d802e76d28d7c Mon Sep 17 00:00:00 2001 From: zzyuan <781948537@qq.com> Date: Tue, 24 Jun 2025 13:29:06 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E8=AF=B7=E6=B1=82=E5=8A=A0?= =?UTF-8?q?=E5=AF=86=E4=BF=AE=E6=94=B92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index.vue | 3 +++ pages/mine/me/basicInfo.vue | 3 +++ pages/system.vue | 3 +++ 3 files changed, 9 insertions(+) diff --git a/pages/index.vue b/pages/index.vue index 1b73f1b..0d2c7ad 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -262,6 +262,9 @@ export default { getUserInfo(){ getInfoNewAPI({'custId':uni.getStorageSync('custId'),"sourceType":7}).then(result => { this.userInfo = result.data; + this.$set(this.userInfo,'mobile',decryptWithSM4(this.userInfo.mobile)) + this.$set(this.userInfo,'idCard',decryptWithSM4(this.userInfo.idCard)) + this.$set(this.userInfo,'email',decryptWithSM4(this.userInfo.email)) //sm4加密 // let jsonStr = decryptWithSM4(result.data.data) // this.userInfo = JSON.parse(jsonStr) diff --git a/pages/mine/me/basicInfo.vue b/pages/mine/me/basicInfo.vue index eed6054..4c06806 100644 --- a/pages/mine/me/basicInfo.vue +++ b/pages/mine/me/basicInfo.vue @@ -158,6 +158,9 @@ getUserInfo() { getInfoNewAPI({'custId':uni.getStorageSync('custId'),"sourceType":7}).then(res => { this.userInfo = res.data; + this.$set(this.userInfo,'mobile',decryptWithSM4(this.userInfo.mobile)) + this.$set(this.userInfo,'idCard',decryptWithSM4(this.userInfo.idCard)) + this.$set(this.userInfo,'email',decryptWithSM4(this.userInfo.email)) //sm4加密 // let jsonStr = decryptWithSM4(res.data.data) // this.userInfo = JSON.parse(jsonStr) diff --git a/pages/system.vue b/pages/system.vue index 03f0325..cbd5bbe 100644 --- a/pages/system.vue +++ b/pages/system.vue @@ -70,6 +70,9 @@ export default { getUserInfo(){ getInfoNewAPI({'custId':uni.getStorageSync('custId'),"sourceType":7}).then(result => { this.userInfo = result.data; + this.$set(this.userInfo,'mobile',decryptWithSM4(this.userInfo.mobile)) + this.$set(this.userInfo,'idCard',decryptWithSM4(this.userInfo.idCard)) + this.$set(this.userInfo,'email',decryptWithSM4(this.userInfo.email)) //sm4加密 // let jsonStr = decryptWithSM4(result.data.data) // this.userInfo = JSON.parse(jsonStr)