From abd4b2a84b0210b376116167b9f9be4bdb91c512 Mon Sep 17 00:00:00 2001 From: zhouxueli <2841188632@qq.com> Date: Mon, 17 Mar 2025 17:28:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8C=E6=89=8B=E8=BD=A6=E4=BA=A4=E6=98=93?= =?UTF-8?q?=EF=BC=8C=E7=BC=93=E5=AD=98=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/secondHandCar/carSource.vue | 32 ++++++++++++++++++++------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/src/views/secondHandCar/carSource.vue b/src/views/secondHandCar/carSource.vue index 71477770..2e0823c4 100644 --- a/src/views/secondHandCar/carSource.vue +++ b/src/views/secondHandCar/carSource.vue @@ -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"})