微信端上传资料修改

This commit is contained in:
mengxiaolong
2020-08-27 13:35:01 +08:00
parent 728ed6982c
commit 6c6f7e9035

View File

@@ -375,6 +375,7 @@ export default {
return this.$toast('请输入4-400个字符')
// 校验补充资料
if (this.issueType === '828601') {
if (!this.checkSupplementData()) return this.$toast('请上传补充资料')
if (!this.checked) {
return this.$toast('请先阅读并勾选协议')
}
@@ -384,12 +385,11 @@ export default {
} else if (this.$route.query.receiveType === '1') {
if (!this.policyholderSigned || !this.insurantSigned) return this.$toast('签名未完成, 请先进行签名')
}
if (!this.checkSupplementData()) return this.$toast('请上传补充资料')
if (this.isWeixin) {
this.$toast.loading()
this.imageResultList.splice(0)
for (let image of this.imageList) {
let res = await this.afterRead(image)
let res = await this.afterRead(image.file)
let result = {
rgssUrl: res.path,
imageInfoType: 1,
@@ -607,16 +607,7 @@ export default {
localStorage.removeItem('problemCard')
localStorage.removeItem('problemBankCode')
// 补充资料问题件保存数据
localStorage.removeItem('insurantIdCardAUploadResult')
localStorage.removeItem('insurantIdCardBUploadResult')
localStorage.removeItem('policyholderIdCardAUploadResult')
localStorage.removeItem('policyholderIdCardBUploadResult')
localStorage.removeItem('policyholderBankCardAUploadResult')
localStorage.removeItem('insurantIdCardA')
localStorage.removeItem('insurantIdCardB')
localStorage.removeItem('policyholderIdCardA')
localStorage.removeItem('policyholderIdCardB')
localStorage.removeItem('policyholderBankCardA')
localStorage.removeItem('supplementImages')
}
// localstorage存在投保人签名信息