二手车交易,缓存问题解决

This commit is contained in:
2025-03-15 17:49:25 +08:00
parent 678d4f6436
commit 22e6c58e65
7 changed files with 77 additions and 221 deletions

View File

@ -1,7 +1,7 @@
<template>
<div class="wrap" >
<div class="headerWrap">
<img class="back" @click="backHandle" src="@/assets/secondHandCar/back.png" />
<img class="back" @click="h5GoBack" src="@/assets/secondHandCar/back.png" />
<span>免责声明</span>
<div style="opacity: 0;" class="back"></div>
</div>
@ -23,45 +23,8 @@ export default {
},
async mounted() {
this.url=this.$route.query.url
console.log("1122",this.$route.params.form,this.$route.params.radio)
},
beforeUnmount() {
},
methods:{
backHandle(){
const data = {
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,
};
// 向父页面A 项目)发送消息,使用自定义事件名称
window.parent.postMessage({ type: 'updateCarSourceParams', data }, '*');
if(this.isWebFunc()){
this.h5GoBack()
}else{
if(this.$route.query.type == 1){
this.$router.push({ name: 'carSource',query: {type:1,homePage:this.$route.query.homePage},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,homePage:this.$route.query.homePage},params: { form: this.$route.params.form,radio:this.$route.params.radio } })
}
}
},
}
methods:{ }
}
</script>
@ -93,7 +56,6 @@ export default {
}
.contentWrap{
height: calc(100% - 42px);
//overflow-y: auto;
iframe{
overflow-y:hidden;
width: 100%;