二手车交易,缓存问题,删除照片的bug
This commit is contained in:
@ -225,7 +225,6 @@ export default {
|
||||
this.vehicleAnglePhotoList=[{url:res.data?.vehicleAnglePhoto}]
|
||||
}
|
||||
let carSourceFormInfo=localStorage.getItem("carSourceFormInfo") ? JSON.parse(localStorage.getItem("carSourceFormInfo")) : ''
|
||||
// console.log("carSourceFormInfo",carSourceFormInfo)
|
||||
if(!carSourceFormInfo){
|
||||
return
|
||||
}
|
||||
@ -242,22 +241,29 @@ export default {
|
||||
if(this.form.vehicleAnglePhoto){
|
||||
this.vehicleAnglePhotoList=[{url:this.form.vehicleAnglePhoto}]
|
||||
}
|
||||
console.log("carSourceFormInfo",carSourceFormInfo)
|
||||
if(carSourceFormInfo.otherImgSrc0){
|
||||
this.otherImgSrc.push(carSourceFormInfo.otherImgSrc0)
|
||||
this.otherImgSrcList.push({url:carSourceFormInfo.otherImgSrc0})
|
||||
}
|
||||
if(carSourceFormInfo.otherImgSrc1){
|
||||
this.otherImgSrc.push(carSourceFormInfo.otherImgSrc1)
|
||||
this.otherImgSrcList.push({url:carSourceFormInfo.otherImgSrc1})
|
||||
}
|
||||
if(carSourceFormInfo.otherImgSrc2){
|
||||
this.otherImgSrc.push(carSourceFormInfo.otherImgSrc2)
|
||||
this.otherImgSrcList.push({url:carSourceFormInfo.otherImgSrc2})
|
||||
}
|
||||
if(carSourceFormInfo.otherImgSrc3){
|
||||
this.otherImgSrc.push(carSourceFormInfo.otherImgSrc3)
|
||||
this.otherImgSrcList.push({url:carSourceFormInfo.otherImgSrc3})
|
||||
}
|
||||
if(carSourceFormInfo.otherImgSrc4){
|
||||
this.otherImgSrc.push(carSourceFormInfo.otherImgSrc4)
|
||||
this.otherImgSrcList.push({url:carSourceFormInfo.otherImgSrc4})
|
||||
}
|
||||
if(carSourceFormInfo.otherImgSrc5){
|
||||
this.otherImgSrc.push(carSourceFormInfo.otherImgSrc5)
|
||||
this.otherImgSrcList.push({url:carSourceFormInfo.otherImgSrc5})
|
||||
}
|
||||
console.log("--",this.vehicleLicensePhotoList,this.vehicleAnglePhotoList,this.otherImgSrcList)
|
||||
@ -277,12 +283,12 @@ export default {
|
||||
viewPrivacy(){
|
||||
let data={
|
||||
form:this.form,radio:this.radio,areaName:this.areaName,
|
||||
otherImgSrc0:this.otherImgSrcList?.length==1 ? this.otherImgSrcList[0] : '',
|
||||
otherImgSrc1:this.otherImgSrcList?.length==2 ? this.otherImgSrcList[1] : '',
|
||||
otherImgSrc2:this.otherImgSrcList?.length==3 ? this.otherImgSrcList[2] : '',
|
||||
otherImgSrc3:this.otherImgSrcList?.length==4 ? this.otherImgSrcList[3] : '',
|
||||
otherImgSrc4:this.otherImgSrcList?.length==5 ? this.otherImgSrcList[4] : '',
|
||||
otherImgSrc5:this.otherImgSrcList?.length==6 ? this.otherImgSrcList[5] : '',
|
||||
otherImgSrc0: this.otherImgSrc[0],
|
||||
otherImgSrc1: this.otherImgSrc[1],
|
||||
otherImgSrc2:this.otherImgSrc[2],
|
||||
otherImgSrc3:this.otherImgSrc[3],
|
||||
otherImgSrc4:this.otherImgSrc[4],
|
||||
otherImgSrc5:this.otherImgSrc[5],
|
||||
}
|
||||
localStorage.setItem("carSourceFormInfo",JSON.stringify(data))
|
||||
this.$router.push({ name: "privacyComponent"})
|
||||
|
Reference in New Issue
Block a user