二手车交易,缓存问题
This commit is contained in:
@ -242,11 +242,25 @@ export default {
|
||||
if(this.form.vehicleAnglePhoto){
|
||||
this.vehicleAnglePhotoList=[{url:this.form.vehicleAnglePhoto}]
|
||||
}
|
||||
this.otherImgSrcList=JSON.parse(carSourceFormInfo.otherImgSrcList)
|
||||
if(carSourceFormInfo.otherImgSrc0){
|
||||
this.otherImgSrcList.push(carSourceFormInfo.otherImgSrc0)
|
||||
}
|
||||
if(carSourceFormInfo.otherImgSrc1){
|
||||
this.otherImgSrcList.push(carSourceFormInfo.otherImgSrc1)
|
||||
}
|
||||
if(carSourceFormInfo.otherImgSrc2){
|
||||
this.otherImgSrcList.push(carSourceFormInfo.otherImgSrc2)
|
||||
}
|
||||
if(carSourceFormInfo.otherImgSrc3){
|
||||
this.otherImgSrcList.push(carSourceFormInfo.otherImgSrc3)
|
||||
}
|
||||
if(carSourceFormInfo.otherImgSrc4){
|
||||
this.otherImgSrcList.push(carSourceFormInfo.otherImgSrc4)
|
||||
}
|
||||
if(carSourceFormInfo.otherImgSrc5){
|
||||
this.otherImgSrcList.push(carSourceFormInfo.otherImgSrc5)
|
||||
}
|
||||
console.log("--",this.vehicleLicensePhotoList,this.vehicleAnglePhotoList,this.otherImgSrcList)
|
||||
/*
|
||||
this.otherImgSrcList=carSourceFormInfo.otherImgSrcList
|
||||
this.otherImgSrc=carSourceFormInfo.otherImgSrc*/
|
||||
},
|
||||
methods:{
|
||||
clearStorageFormInfo(){
|
||||
@ -263,10 +277,12 @@ export default {
|
||||
viewPrivacy(){
|
||||
let data={
|
||||
form:this.form,radio:this.radio,areaName:this.areaName,
|
||||
otherImgSrcList:JSON.stringify(this.otherImgSrcList),
|
||||
/*
|
||||
otherImgSrcList:this.otherImgSrcList,
|
||||
otherImgSrc:this.otherImgSrc,*/
|
||||
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] : '',
|
||||
}
|
||||
localStorage.setItem("carSourceFormInfo",JSON.stringify(data))
|
||||
this.$router.push({ name: "privacyComponent"})
|
||||
|
Reference in New Issue
Block a user