|
@@ -102,7 +102,10 @@ Page({
|
|
|
_this.backToSpecifiedPage('/pages/resultPage/index?result=1:1比对&type=身份证1:1')
|
|
|
} else {
|
|
|
_this.getUserInfo({
|
|
|
- brushingCardUserIInfo: app.data.brushingCardUserIInfo,
|
|
|
+ brushingCardUserIInfo: {
|
|
|
+ ...app.data.brushingCardUserIInfo,
|
|
|
+ certPhotoBase64Str: app.data.brushingCardUserIInfo.photoBase64
|
|
|
+ },
|
|
|
verifyType: 4 // 身份证
|
|
|
})
|
|
|
}
|
|
@@ -296,6 +299,7 @@ Page({
|
|
|
let decrypted = JSON.parse(decryptedData.decrypted)
|
|
|
app.data.userInfo = decrypted
|
|
|
app.data.userInfo.avatar = decrypted.xp
|
|
|
+ app.data.userInfo.idCardPhoto = decrypted.xp
|
|
|
} catch (error) {
|
|
|
app.data.isNetworkQueryError = false
|
|
|
}
|
|
@@ -339,7 +343,10 @@ Page({
|
|
|
})
|
|
|
if (res.success) {
|
|
|
that.getUserInfo({
|
|
|
- brushingCardUserIInfo: res.data,
|
|
|
+ brushingCardUserIInfo: {
|
|
|
+ ...res.data,
|
|
|
+ certPhotoBase64Str: brushingCardUserIInfo.photoBase64
|
|
|
+ },
|
|
|
verifyType
|
|
|
})
|
|
|
} else {
|
|
@@ -371,6 +378,7 @@ Page({
|
|
|
getUserInfo({brushingCardUserIInfo, verifyType}) {
|
|
|
console.log('用户信息赋值', brushingCardUserIInfo, verifyType)
|
|
|
app.data.userInfo.avatar = brushingCardUserIInfo.photoBase64 || '';
|
|
|
+ app.data.userInfo.idCardPhoto = brushingCardUserIInfo.certPhotoBase64Str || '';
|
|
|
app.data.userInfo.xm = brushingCardUserIInfo.name;
|
|
|
app.data.userInfo.sfzh = brushingCardUserIInfo.idNum;
|
|
|
app.data.userInfo.verifyType = verifyType;
|