用户请求加密修改2

This commit is contained in:
zzyuan 2025-06-24 13:29:06 +08:00
parent a3aff7f118
commit c517c7fee4
3 changed files with 9 additions and 0 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)