|
@@ -34,6 +34,22 @@ Page({
|
|
|
halfbody_img: res.data.data.halfbody_img, //半身照
|
|
|
education_img: res.data.data.education_img, //学历照
|
|
|
})
|
|
|
+ if (!res.data.data.idnoimg_face){
|
|
|
+ wx.request({
|
|
|
+ url: host + '/api/wx/authinfo',
|
|
|
+ header: {
|
|
|
+ openid: app.globalData.openid
|
|
|
+ },
|
|
|
+ success: res => {
|
|
|
+ this.setData({
|
|
|
+ idnoimg_face: res.data.data.idnoimg_face, //正面照
|
|
|
+ idnoimg_back: res.data.data.idnoimg_back, //反面照
|
|
|
+ halfbody_img: res.data.data.halfbody_img, //半身照
|
|
|
+ education_img: res.data.data.education_img, //学历照
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
|