|
@@ -13,8 +13,11 @@ Page({
|
|
halfbody_img: "", //半身照
|
|
halfbody_img: "", //半身照
|
|
education_img: "", //学历照
|
|
education_img: "", //学历照
|
|
oldcard_img:'',
|
|
oldcard_img:'',
|
|
|
|
+ health_img:"",//体检报告
|
|
id:'',
|
|
id:'',
|
|
train_type:'',
|
|
train_type:'',
|
|
|
|
+ subject_item:"",//报名科目
|
|
|
|
+ has_healthimg:false,
|
|
img:''
|
|
img:''
|
|
},
|
|
},
|
|
|
|
|
|
@@ -37,7 +40,10 @@ Page({
|
|
halfbody_img: res.data.data.halfbody_img, //半身照
|
|
halfbody_img: res.data.data.halfbody_img, //半身照
|
|
education_img: res.data.data.education_img, //学历照
|
|
education_img: res.data.data.education_img, //学历照
|
|
oldcard_img: res.data.data.oldcard_img,
|
|
oldcard_img: res.data.data.oldcard_img,
|
|
- train_type: res.data.data.train_type
|
|
|
|
|
|
+ train_type: res.data.data.train_type,
|
|
|
|
+ health_img: res.data.data.health_img,
|
|
|
|
+ subject_item: res.data.data.subject_item,
|
|
|
|
+ has_healthimg:res.data.data.subject_item.split("|")[0].indexOf("特种设备")!=-1
|
|
})
|
|
})
|
|
if (!res.data.data.idnoimg_face){
|
|
if (!res.data.data.idnoimg_face){
|
|
wx.request({
|
|
wx.request({
|
|
@@ -51,7 +57,8 @@ Page({
|
|
idnoimg_back: res.data.data.idnoimg_back, //反面照
|
|
idnoimg_back: res.data.data.idnoimg_back, //反面照
|
|
halfbody_img: res.data.data.halfbody_img, //半身照
|
|
halfbody_img: res.data.data.halfbody_img, //半身照
|
|
education_img: res.data.data.education_img, //学历照
|
|
education_img: res.data.data.education_img, //学历照
|
|
- oldcard_img: res.data.data.oldcard_img
|
|
|
|
|
|
+ oldcard_img: res.data.data.oldcard_img,
|
|
|
|
+ health_img: res.data.data.health_img,
|
|
})
|
|
})
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -69,6 +76,7 @@ Page({
|
|
formData.halfbody_img = this.data.halfbody_img
|
|
formData.halfbody_img = this.data.halfbody_img
|
|
formData.education_img = this.data.education_img
|
|
formData.education_img = this.data.education_img
|
|
formData.oldcard_img = this.data.oldcard_img
|
|
formData.oldcard_img = this.data.oldcard_img
|
|
|
|
+ formData.health_img = this.data.health_img
|
|
if (!formData.idnoimg_face) {
|
|
if (!formData.idnoimg_face) {
|
|
wx.showToast({
|
|
wx.showToast({
|
|
title: '正面照不存在!',
|
|
title: '正面照不存在!',
|
|
@@ -111,6 +119,16 @@ Page({
|
|
return false
|
|
return false
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ if (this.data.subject_item.split("|")[0].indexOf("特种设备") != -1) {
|
|
|
|
+ if (!formData.health_img) {
|
|
|
|
+ wx.showToast({
|
|
|
|
+ title: '体检证明照片不存在!',
|
|
|
|
+ icon: 'none',
|
|
|
|
+ duration: 2000
|
|
|
|
+ })
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ }
|
|
wx.showLoading({
|
|
wx.showLoading({
|
|
title: '',
|
|
title: '',
|
|
})
|
|
})
|
|
@@ -204,6 +222,11 @@ Page({
|
|
oldcard_img: data.data.url
|
|
oldcard_img: data.data.url
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
+ if (id == 6) {
|
|
|
|
+ _this.setData({
|
|
|
|
+ health_img: data.data.url
|
|
|
|
+ })
|
|
|
|
+ }
|
|
},
|
|
},
|
|
fail: res => {
|
|
fail: res => {
|
|
wx.hideLoading()
|
|
wx.hideLoading()
|