mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-08 18:46:43 +08:00
图片上传被保人信息集合回显数据结构调整
This commit is contained in:
@@ -1132,93 +1132,153 @@ export default {
|
||||
if (that.type == 'fileListIdFrontBeneficiary' && that.id == '1') {
|
||||
name = 'fileListIdFrontBeneficiary'
|
||||
imageInfoType = '1'
|
||||
this.fileListIdFrontBeneficiary = {
|
||||
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||
}
|
||||
that.saleBtnfPersonInfo.forEach((item,index)=>{
|
||||
if(item.bnfId == that.bnfId){
|
||||
this.bnfInfo[index].fileListIdFrontBeneficiary = {
|
||||
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||
}
|
||||
}
|
||||
})
|
||||
} else if (that.type == 'fileListIdBackBeneficiary' && that.id == '1') {
|
||||
name = 'fileListIdBackBeneficiary'
|
||||
imageInfoType = '2'
|
||||
this.fileListIdBackBeneficiary = {
|
||||
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||
}
|
||||
that.saleBtnfPersonInfo.forEach((item,index)=>{
|
||||
if(item.bnfId == that.bnfId){
|
||||
this.bnfInfo[index].fileListIdBackBeneficiary = {
|
||||
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||
}
|
||||
}
|
||||
})
|
||||
} else if (that.type == 'fileListIdFrontBeneficiary' && that.id == '2') {
|
||||
name = 'fileListIdFrontBeneficiary'
|
||||
imageInfoType = '5'
|
||||
this.fileListIdFrontBeneficiary = {
|
||||
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||
}
|
||||
that.saleBtnfPersonInfo.forEach((item,index)=>{
|
||||
if(item.bnfId == that.bnfId){
|
||||
this.bnfInfo[index].fileListIdFrontBeneficiary = {
|
||||
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||
}
|
||||
}
|
||||
})
|
||||
} else if (that.type == 'fileListIdBackBeneficiary' && that.id == '2') {
|
||||
name = 'fileListIdBackBeneficiary'
|
||||
imageInfoType = '6'
|
||||
this.fileListIdBackBeneficiary = {
|
||||
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||
}
|
||||
that.saleBtnfPersonInfo.forEach((item,index)=>{
|
||||
if(item.bnfId == that.bnfId){
|
||||
this.bnfInfo[index].fileListIdBackBeneficiary = {
|
||||
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||
}
|
||||
}
|
||||
})
|
||||
} else if (that.type == 'fileListIdFrontBeneficiary' && that.id == '3') {
|
||||
name = 'fileListIdFrontBeneficiary'
|
||||
imageInfoType = '7'
|
||||
this.fileListIdFrontBeneficiary = {
|
||||
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||
}
|
||||
that.saleBtnfPersonInfo.forEach((item,index)=>{
|
||||
if(item.bnfId == that.bnfId){
|
||||
this.bnfInfo[index].fileListIdFrontBeneficiary = {
|
||||
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||
}
|
||||
}
|
||||
})
|
||||
} else if (that.type == 'fileListIdBackBeneficiary' && that.id == '3') {
|
||||
name = 'fileListIdBackBeneficiary'
|
||||
imageInfoType = '12'
|
||||
this.fileListIdBackBeneficiary = {
|
||||
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||
}
|
||||
that.saleBtnfPersonInfo.forEach((item,index)=>{
|
||||
if(item.bnfId == that.bnfId){
|
||||
this.bnfInfo[index].fileListIdBackBeneficiary = {
|
||||
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||
}
|
||||
}
|
||||
})
|
||||
} else if (that.type == 'fileLIstImgBeneficiary' && that.id == '4') {
|
||||
name = 'fileLIstImgBeneficiary'
|
||||
imageInfoType = '8'
|
||||
this.fileLIstImgBeneficiary = {
|
||||
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||
}
|
||||
that.saleBtnfPersonInfo.forEach((item,index)=>{
|
||||
if(item.bnfId == that.bnfId){
|
||||
this.bnfInfo[index].fileLIstImgBeneficiary = {
|
||||
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||
}
|
||||
}
|
||||
})
|
||||
} else if (that.type == 'fileListIdFrontBeneficiary' && that.id == '5') {
|
||||
name = 'fileListIdFrontBeneficiary'
|
||||
imageInfoType = '9'
|
||||
this.fileListIdFrontBeneficiary = {
|
||||
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||
}
|
||||
that.saleBtnfPersonInfo.forEach((item,index)=>{
|
||||
if(item.bnfId == that.bnfId){
|
||||
this.bnfInfo[index].fileListIdFrontBeneficiary = {
|
||||
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||
}
|
||||
}
|
||||
})
|
||||
} else if (that.type == 'fileListIdBackBeneficiary' && that.id == '5') {
|
||||
name = 'fileListIdBackBeneficiary'
|
||||
imageInfoType = '13'
|
||||
this.fileListIdBackBeneficiary = {
|
||||
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||
}
|
||||
that.saleBtnfPersonInfo.forEach((item,index)=>{
|
||||
if(item.bnfId == that.bnfId){
|
||||
this.bnfInfo[index].fileListIdBackBeneficiary = {
|
||||
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||
}
|
||||
}
|
||||
})
|
||||
} else if (that.type == 'fileListIdFrontBeneficiary' && that.id == '6') {
|
||||
name = 'fileListIdFrontBeneficiary'
|
||||
imageInfoType = '10'
|
||||
this.fileListIdFrontBeneficiary = {
|
||||
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||
}
|
||||
that.saleBtnfPersonInfo.forEach((item,index)=>{
|
||||
if(item.bnfId == that.bnfId){
|
||||
this.bnfInfo[index].fileListIdFrontBeneficiary = {
|
||||
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||
}
|
||||
}
|
||||
})
|
||||
} else if (that.type == 'fileListIdBackBeneficiary' && that.id == '6') {
|
||||
name = 'fileListIdBackBeneficiary'
|
||||
imageInfoType = '14'
|
||||
this.fileListIdBackBeneficiary = {
|
||||
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||
}
|
||||
that.saleBtnfPersonInfo.forEach((item,index)=>{
|
||||
if(item.bnfId == that.bnfId){
|
||||
this.bnfInfo[index].fileListIdBackBeneficiary = {
|
||||
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||
}
|
||||
}
|
||||
})
|
||||
} else if (that.type == 'fileListIdFrontBeneficiary' && that.id == '8') {
|
||||
name = 'fileListIdFrontBeneficiary'
|
||||
imageInfoType = '15'
|
||||
this.fileListIdFrontBeneficiary = {
|
||||
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||
}
|
||||
that.saleBtnfPersonInfo.forEach((item,index)=>{
|
||||
if(item.bnfId == that.bnfId){
|
||||
this.bnfInfo[index].fileListIdFrontBeneficiary = {
|
||||
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||
}
|
||||
}
|
||||
})
|
||||
} else if (that.type == 'fileListIdBackBeneficiary' && that.id == '8') {
|
||||
name = 'fileListIdBackBeneficiary'
|
||||
imageInfoType = '16'
|
||||
this.fileListIdBackBeneficiary = {
|
||||
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||
}
|
||||
that.saleBtnfPersonInfo.forEach((item,index)=>{
|
||||
if(item.bnfId == that.bnfId){
|
||||
this.bnfInfo[index].fileListIdBackBeneficiary = {
|
||||
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||
}
|
||||
}
|
||||
})
|
||||
} else if (that.type == 'fileListIdFrontBeneficiary' && that.id == '9') {
|
||||
name = 'fileListIdFrontBeneficiary'
|
||||
imageInfoType = '17'
|
||||
this.fileListIdFrontBeneficiary = {
|
||||
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||
}
|
||||
that.saleBtnfPersonInfo.forEach((item,index)=>{
|
||||
if(item.bnfId == that.bnfId){
|
||||
this.bnfInfo[index].fileListIdFrontBeneficiary = {
|
||||
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||
}
|
||||
}
|
||||
})
|
||||
} else if (that.type == 'fileListIdBackBeneficiary' && that.id == '9') {
|
||||
name = 'fileListIdBackBeneficiary'
|
||||
imageInfoType = '18'
|
||||
this.fileListIdBackBeneficiary = {
|
||||
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||
}
|
||||
that.saleBtnfPersonInfo.forEach((item,index)=>{
|
||||
if(item.bnfId == that.bnfId){
|
||||
this.bnfInfo[index].fileListIdBackBeneficiary = {
|
||||
url: config.imgDomain + `/returnImageStream?a=b.jpg&imgPath=${res.path}`,
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
let obj = {
|
||||
name: name,
|
||||
@@ -1623,47 +1683,47 @@ export default {
|
||||
},
|
||||
orderType: that.changeCard ? 'MEDIANEW_ORDER' : 'MEDIA_ORDER',
|
||||
}
|
||||
|
||||
saveInformation(data).then((res) => {
|
||||
if (res.result == '0') {
|
||||
this.$toast.clear()
|
||||
if (!this.changeCard) {
|
||||
window.localStorage.setItem('accountInfomation-bank', that.bank)
|
||||
window.localStorage.setItem('accountInformationRadio', that.radio)
|
||||
window.localStorage.setItem('accountInformation-isPaymentSelf', JSON.stringify(that.checked))
|
||||
window.localStorage.setItem('jumpFromSign', '')
|
||||
}
|
||||
window.localStorage.removeItem('imgfront')
|
||||
window.localStorage.removeItem('imgBackPath')
|
||||
window.localStorage.removeItem('imgfrontPath')
|
||||
window.localStorage.removeItem('imgfrontInsured')
|
||||
window.localStorage.removeItem('imgfrontInsuredPath')
|
||||
window.localStorage.removeItem('imgBackInsuredPath')
|
||||
window.localStorage.removeItem('bankCardUrl')
|
||||
window.localStorage.removeItem('bankCardUrlPath')
|
||||
window.localStorage.removeItem('bankCardUrlInsured')
|
||||
window.localStorage.removeItem('bankCardUrlInsuredPath')
|
||||
that.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + '/#/sale/signatureConfirmation?orderNo=' + this.$route.query.orderNo,
|
||||
pullRefresh: '1',
|
||||
backToFirst: '1',
|
||||
},
|
||||
routerInfo: {
|
||||
path: '/sale/signatureConfirmation?orderNo=' + this.$route.query.orderNo,
|
||||
},
|
||||
})
|
||||
} else {
|
||||
Dialog.confirm({
|
||||
title: '提示',
|
||||
message: res.resultMessage,
|
||||
confirmButtonColor:'#FF0000',
|
||||
showCancelButton:false
|
||||
})
|
||||
//that.$toast(res.resultMessage)
|
||||
}
|
||||
})
|
||||
console.log(data)
|
||||
// saveInformation(data).then((res) => {
|
||||
// if (res.result == '0') {
|
||||
// this.$toast.clear()
|
||||
// if (!this.changeCard) {
|
||||
// window.localStorage.setItem('accountInfomation-bank', that.bank)
|
||||
// window.localStorage.setItem('accountInformationRadio', that.radio)
|
||||
// window.localStorage.setItem('accountInformation-isPaymentSelf', JSON.stringify(that.checked))
|
||||
// window.localStorage.setItem('jumpFromSign', '')
|
||||
// }
|
||||
// window.localStorage.removeItem('imgfront')
|
||||
// window.localStorage.removeItem('imgBackPath')
|
||||
// window.localStorage.removeItem('imgfrontPath')
|
||||
// window.localStorage.removeItem('imgfrontInsured')
|
||||
// window.localStorage.removeItem('imgfrontInsuredPath')
|
||||
// window.localStorage.removeItem('imgBackInsuredPath')
|
||||
// window.localStorage.removeItem('bankCardUrl')
|
||||
// window.localStorage.removeItem('bankCardUrlPath')
|
||||
// window.localStorage.removeItem('bankCardUrlInsured')
|
||||
// window.localStorage.removeItem('bankCardUrlInsuredPath')
|
||||
// that.$jump({
|
||||
// flag: 'h5',
|
||||
// extra: {
|
||||
// url: location.origin + '/#/sale/signatureConfirmation?orderNo=' + this.$route.query.orderNo,
|
||||
// pullRefresh: '1',
|
||||
// backToFirst: '1',
|
||||
// },
|
||||
// routerInfo: {
|
||||
// path: '/sale/signatureConfirmation?orderNo=' + this.$route.query.orderNo,
|
||||
// },
|
||||
// })
|
||||
// } else {
|
||||
// Dialog.confirm({
|
||||
// title: '提示',
|
||||
// message: res.resultMessage,
|
||||
// confirmButtonColor:'#FF0000',
|
||||
// showCancelButton:false
|
||||
// })
|
||||
// //that.$toast(res.resultMessage)
|
||||
// }
|
||||
// })
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
|
||||
Reference in New Issue
Block a user