From 558e3e3e8cb226ea5e00a743f1189fe6b79c9d19 Mon Sep 17 00:00:00 2001 From: zhouxueli <2841188632@qq.com> Date: Fri, 14 Mar 2025 11:40:25 +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=E8=BD=A6=E6=BA=90=E5=8F=91=E5=B8=83=E5=81=9A=E7=BC=93?= =?UTF-8?q?=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/secondHandCar/carSource.vue | 38 +++++++++++++++++++++------ src/views/secondHandCar/privacy.vue | 16 ++++++++++- 2 files changed, 45 insertions(+), 9 deletions(-) diff --git a/src/views/secondHandCar/carSource.vue b/src/views/secondHandCar/carSource.vue index e0a0dcf4..54bb44fa 100644 --- a/src/views/secondHandCar/carSource.vue +++ b/src/views/secondHandCar/carSource.vue @@ -215,16 +215,30 @@ export default { this.vehicleAnglePhotoList=[{url:res.data?.vehicleAnglePhoto}] console.log("th",this.form) } - // this.form=JSON.parse(sessionStorage.getItem('formInfo')) - // this.areaName=sessionStorage.getItem('areaName') - // this.vehicleLicensePhotoList=JSON.parse(sessionStorage.getItem('vehicleLicensePhotoList')) - // this.vehicleAnglePhotoList=JSON.parse(sessionStorage.getItem('vehicleAnglePhotoList')) - // this.otherImgSrcList=JSON.parse(sessionStorage.getItem('otherImgSrcList')) - // this.otherImgSrc=JSON.parse(sessionStorage.getItem('otherImgSrc')) + if(this.$route.params.form){ + this.form={...this.$route.params.form} + } + if(this.$route.params.radio){ + this.radio=this.$route.params.radio + } + if(this.$route.params.areaName){ + this.areaName=this.$route.params.areaName + } + if(this.$route.params.vehicleLicensePhotoList){ + this.vehicleLicensePhotoList=this.$route.params.vehicleLicensePhotoList + } + if(this.$route.params.vehicleAnglePhotoList){ + this.vehicleAnglePhotoList=this.$route.params.vehicleAnglePhotoList + } + if(this.$route.params.otherImgSrcList){ + this.otherImgSrcList=this.$route.params.otherImgSrcList + } + if(this.$route.params.otherImgSrc){ + this.otherImgSrc=this.$route.params.otherImgSrc + } }, methods:{ viewPrivacy(){ - // let host = window.location.host let url=''; if (window.location.href.includes('www.sinoassist.com')) { url = 'https://www.sinoassist.com' @@ -244,7 +258,15 @@ export default { sessionStorage.setItem('otherImgSrc',JSON.stringify(this.otherImgSrc)) let urls=url + '/h5/supplier/dispatch/res/privacy.html' - this.$router.push({ name: "privacyComponent", query: {url:urls}}) + this.$router.push({ name: "privacyComponent", query: {url:urls,type:1},params: { + form: this.form,radio:this.radio, + areaName:this.areaName, + vehicleLicensePhotoList:this.vehicleLicensePhotoList, + vehicleAnglePhotoList:this.vehicleAnglePhotoList, + otherImgSrcList:this.otherImgSrcList, + otherImgSrc:this.otherImgSrc, + + }}) }, closeParentDialog() { if (window.parent) { diff --git a/src/views/secondHandCar/privacy.vue b/src/views/secondHandCar/privacy.vue index 8b3da2db..a6e8e65d 100644 --- a/src/views/secondHandCar/privacy.vue +++ b/src/views/secondHandCar/privacy.vue @@ -31,7 +31,21 @@ export default { }, methods:{ backHandle(){ - this.$router.push({ name:this.$route.query.type == 1 ? 'carSource' : 'wantBuy',query: {type:1},params: { form: this.$route.params.form,radio:this.$route.params.radio } }) + if(this.$route.query.type == 1){ + this.$router.push({ name: 'carSource',query: {type:1},params: { + form: this.$route.params.form, + radio:this.$route.params.radio , + areaName:this.$route.params.areaName , + vehicleLicensePhotoList:this.$route.params.vehicleLicensePhotoList , + vehicleAnglePhotoList:this.$route.params.vehicleAnglePhotoList , + otherImgSrcList:this.$route.params.otherImgSrcList , + otherImgSrc:this.$route.params.otherImgSrc , + + } }) + + }else{ + this.$router.push({ name: 'wantBuy',query: {type:1},params: { form: this.$route.params.form,radio:this.$route.params.radio } }) + } }, } }