用户请求加密修改2
This commit is contained in:
parent
a3aff7f118
commit
c517c7fee4
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue