|
@@ -12,7 +12,9 @@ Page({
|
|
|
idnoimg_back: "", //反面照
|
|
idnoimg_back: "", //反面照
|
|
|
halfbody_img: "", //半身照
|
|
halfbody_img: "", //半身照
|
|
|
education_img: "", //学历照
|
|
education_img: "", //学历照
|
|
|
- id:''
|
|
|
|
|
|
|
+ oldcard_img:'',
|
|
|
|
|
+ id:'',
|
|
|
|
|
+ train_type:''
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -33,6 +35,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,
|
|
|
|
|
+ train_type: res.data.data.train_type
|
|
|
})
|
|
})
|
|
|
if (!res.data.data.idnoimg_face){
|
|
if (!res.data.data.idnoimg_face){
|
|
|
wx.request({
|
|
wx.request({
|
|
@@ -46,6 +50,7 @@ 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
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
@@ -94,6 +99,9 @@ Page({
|
|
|
})
|
|
})
|
|
|
return false
|
|
return false
|
|
|
}
|
|
}
|
|
|
|
|
+ wx.showLoading({
|
|
|
|
|
+ title: '',
|
|
|
|
|
+ })
|
|
|
wx.request({
|
|
wx.request({
|
|
|
url: host+'/api/wx/signup',
|
|
url: host+'/api/wx/signup',
|
|
|
method:'PUT',
|
|
method:'PUT',
|
|
@@ -103,6 +111,7 @@ Page({
|
|
|
data: formData,
|
|
data: formData,
|
|
|
success:res=>{
|
|
success:res=>{
|
|
|
if(res.data.status == 'suc'){
|
|
if(res.data.status == 'suc'){
|
|
|
|
|
+ wx.hideLoading()
|
|
|
wx.showToast({
|
|
wx.showToast({
|
|
|
title: '提交成功',
|
|
title: '提交成功',
|
|
|
icon: 'success',
|
|
icon: 'success',
|
|
@@ -119,11 +128,9 @@ Page({
|
|
|
},
|
|
},
|
|
|
showImg:function(e){
|
|
showImg:function(e){
|
|
|
this.setData({
|
|
this.setData({
|
|
|
- show:true
|
|
|
|
|
|
|
+ show: true,
|
|
|
|
|
+ img: '../../images/zj' + e.target.dataset.id + '.jpg'
|
|
|
})
|
|
})
|
|
|
- if (e.target.dataset.name == 0){
|
|
|
|
|
-
|
|
|
|
|
- }
|
|
|
|
|
},
|
|
},
|
|
|
hideImg: function (e) {
|
|
hideImg: function (e) {
|
|
|
this.setData({
|
|
this.setData({
|
|
@@ -137,6 +144,9 @@ Page({
|
|
|
count:1,
|
|
count:1,
|
|
|
success: function(res) {
|
|
success: function(res) {
|
|
|
console.log(res.tempFilePaths[0])
|
|
console.log(res.tempFilePaths[0])
|
|
|
|
|
+ wx.showLoading({
|
|
|
|
|
+ title: '',
|
|
|
|
|
+ })
|
|
|
wx.uploadFile({
|
|
wx.uploadFile({
|
|
|
url: host+'/api/wx/uploadfile',
|
|
url: host+'/api/wx/uploadfile',
|
|
|
filePath: res.tempFilePaths[0],
|
|
filePath: res.tempFilePaths[0],
|
|
@@ -145,6 +155,7 @@ Page({
|
|
|
'file': res.tempFilePaths[0]
|
|
'file': res.tempFilePaths[0]
|
|
|
},
|
|
},
|
|
|
success:res=>{
|
|
success:res=>{
|
|
|
|
|
+ wx.hideLoading()
|
|
|
var data=JSON.parse(res.data)
|
|
var data=JSON.parse(res.data)
|
|
|
console.log(data)
|
|
console.log(data)
|
|
|
if(id == 1){ //正面
|
|
if(id == 1){ //正面
|
|
@@ -167,6 +178,11 @@ Page({
|
|
|
education_img: data.data.url
|
|
education_img: data.data.url
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
+ if (id == 5) {
|
|
|
|
|
+ _this.setData({
|
|
|
|
|
+ oldcard_img: data.data.url
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|