diff --git a/src/views/ebiz/questions/QuestionsDetail.vue b/src/views/ebiz/questions/QuestionsDetail.vue index c7871be0d..86d0833a2 100644 --- a/src/views/ebiz/questions/QuestionsDetail.vue +++ b/src/views/ebiz/questions/QuestionsDetail.vue @@ -179,13 +179,7 @@ export default { if (this.isWeixin) { localStorage.setItem('supplementImages', JSON.stringify(this.imageList)) } else { - let res = await this.afterRead(file) - let result = { - rgssUrl: res.path, - imageInfoType: 1, - subBusinessType: 1 - } - this.imageResultList.push(result) + this.imageList.push(file) } }, deleteSupplementImg() { @@ -195,11 +189,7 @@ export default { return true }, checkSupplementData() { - if (this.isWeixin) { - return this.imageList.length !== 0 - } else { - return this.imageResultList.length !== 0 - } + return this.imageList.length !== 0 }, // 转账不成功问题件添加银行卡照片 async cardUpload(file, detail) { @@ -391,9 +381,9 @@ export default { } else if (this.$route.query.receiveType === '1') { if (!this.policyholderSigned || !this.insurantSigned) return this.$toast('签名未完成, 请先进行签名') } + this.$toast.loading() + this.imageResultList.splice(0) if (this.isWeixin) { - this.$toast.loading() - this.imageResultList.splice(0) for (let image of this.imageList) { let file = this.dataURLtoFile(image.content, '.png') let res = await this.afterRead({ file: file }) @@ -404,8 +394,18 @@ export default { } this.imageResultList.push(result) } - this.$toast.clear() + } else { + for (let file of this.imageList) { + let res = await this.afterRead({ file: file }) + let result = { + rgssUrl: res.path, + imageInfoType: 1, + subBusinessType: 1 + } + this.imageResultList.push(result) + } } + this.$toast.clear() } // 转账不成功 if (this.issueType === '818901') {