|
|
@ -38,7 +38,7 @@ |
|
|
|
</view> |
|
|
|
<text class='cuIcon-cameraadd'></text> |
|
|
|
<image class="img-box" :src="idCardBack"></image> |
|
|
|
<icon v-show="idCardBack !== ''" type="icon" class="cuIcon-roundclosefill close-icon" @click="delimg(1)"></icon> |
|
|
|
<icon v-show="idCardBack !== null" type="icon" class="cuIcon-roundclosefill close-icon" @click="delimg(1)"></icon> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -193,17 +193,17 @@ import { group } from 'api/group' |
|
|
|
content: 'insuranceRecord' |
|
|
|
}], |
|
|
|
idCardFront: '', //身份证正面照片 或户口本照片 (文件类型) |
|
|
|
idCardFrontId: '1326409300276547584', //身份证正面照片 或户口本照片 (文件类型) |
|
|
|
idCardBack: '', //身份证反面照片(文件类型) |
|
|
|
idCardBackId: '1326409300276547584', //身份证反面照片(文件类型) |
|
|
|
idCardFrontId: '', //身份证正面照片 或户口本照片 (文件类型) |
|
|
|
idCardBack: null, //身份证反面照片(文件类型) |
|
|
|
idCardBackId: '', //身份证反面照片(文件类型) |
|
|
|
idPhone: '', //一寸证件照(文件类型) |
|
|
|
idPhoneId: '1326409300276547584', //一寸证件照(文件类型) |
|
|
|
idPhoneId: '', //一寸证件照(文件类型) |
|
|
|
studentRecord: '', //学籍证明(文件类型) |
|
|
|
studentRecordId: '1326409300276547584', //学籍证明(文件类型) |
|
|
|
studentRecordId: '', //学籍证明(文件类型) |
|
|
|
healthRecord: '', //体检证明(文件类型) |
|
|
|
healthRecordId: '1326409300276547584', //体检证明(文件类型) |
|
|
|
healthRecordId: '', //体检证明(文件类型) |
|
|
|
insuranceRecord: '', //保险证明(文件类型) |
|
|
|
insuranceRecordId: '1326409300276547584', //保险证明(文件类型) |
|
|
|
insuranceRecordId: '', //保险证明(文件类型) |
|
|
|
che: 0, |
|
|
|
isId: 0, |
|
|
|
playerId: 0, |
|
|
@ -232,7 +232,7 @@ import { group } from 'api/group' |
|
|
|
content: '确定要删除这张图片么?', |
|
|
|
success: (res) => { |
|
|
|
if (res.confirm) { |
|
|
|
that.idCardBack = '' |
|
|
|
that.idCardBack = null |
|
|
|
that.idCardBackId = '' |
|
|
|
} |
|
|
|
}, |
|
|
@ -272,7 +272,7 @@ import { group } from 'api/group' |
|
|
|
url: '//www.tall.wiki/gateway/mt/file/upload/photo', |
|
|
|
filePath: tempFilePaths, |
|
|
|
header:{ |
|
|
|
"Authorization" : "Bearer " + that.$store.state.user.user.token |
|
|
|
"Authorization" : "Bearer " + that.$store.state.user.token |
|
|
|
}, |
|
|
|
name: 'file', |
|
|
|
success: (res) => { |
|
|
@ -428,11 +428,19 @@ import { group } from 'api/group' |
|
|
|
// console.log(that.$store.state.project.num) |
|
|
|
}catch(e){ |
|
|
|
//TODO handle the exception |
|
|
|
uni.showToast({ |
|
|
|
title: e, |
|
|
|
icon: 'none', |
|
|
|
duration: 1500 |
|
|
|
}) |
|
|
|
if (e === 'error') { |
|
|
|
uni.showToast({ |
|
|
|
title: '提交失败', |
|
|
|
icon: 'none', |
|
|
|
duration: 1500 |
|
|
|
}) |
|
|
|
} else { |
|
|
|
uni.showToast({ |
|
|
|
title: e, |
|
|
|
icon: 'none', |
|
|
|
duration: 1500 |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -463,17 +471,16 @@ import { group } from 'api/group' |
|
|
|
duration: 1500 |
|
|
|
}) |
|
|
|
} else if (that.idCardFrontId === '') { |
|
|
|
uni.showToast({ |
|
|
|
title: '请上传身份证正面照', |
|
|
|
icon: 'none', |
|
|
|
duration: 1500 |
|
|
|
}) |
|
|
|
} else if (that.idCardBackId === '') { |
|
|
|
uni.showToast({ |
|
|
|
title: '请上传身份证反面照', |
|
|
|
icon: 'none', |
|
|
|
duration: 1500 |
|
|
|
}) |
|
|
|
if (that.idCardBackId === '') { |
|
|
|
uni.showToast({ |
|
|
|
title: '请上传身份证正面照', |
|
|
|
icon: 'none', |
|
|
|
duration: 1500 |
|
|
|
}) |
|
|
|
} else { |
|
|
|
that.idCardFrontId = that.idCardBackId |
|
|
|
that.idCardBackId = '' |
|
|
|
} |
|
|
|
} else if (that.idPhoneId === '') { |
|
|
|
uni.showToast({ |
|
|
|
title: '请上传一寸证件照', |
|
|
@ -529,6 +536,19 @@ import { group } from 'api/group' |
|
|
|
// console.log(that.$store.state.project.num) |
|
|
|
}catch(e){ |
|
|
|
//TODO handle the exception |
|
|
|
if (e === 'error') { |
|
|
|
uni.showToast({ |
|
|
|
title: '提交失败', |
|
|
|
icon: 'none', |
|
|
|
duration: 1500 |
|
|
|
}) |
|
|
|
} else { |
|
|
|
uni.showToast({ |
|
|
|
title: e, |
|
|
|
icon: 'none', |
|
|
|
duration: 1500 |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|