二手车交易,车源发布做缓存
This commit is contained in:
@ -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) {
|
||||
|
@ -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 } })
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user