mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-18 21:26:44 +08:00
图片上传时机修改
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user