二手车交易,返回按钮路径

This commit is contained in:
2025-03-14 14:18:15 +08:00
parent b349671004
commit 3ea4168b87
3 changed files with 27 additions and 7 deletions

View File

@ -5,7 +5,6 @@
<div class="navWrap">
<div v-if="isWebFunc()" style="opacity: 0;" class="back"></div>
<img v-else class="back" @click="backHandle" src="@/assets/secondHandCar/back.png" />
<!-- 切图问题图片需更换-->
<img class="navIcon" src="@/assets/secondHandCar/cheyuan_big.png" />
<div style="opacity: 0;" class="back"></div>
</div>
@ -13,6 +12,10 @@
<span><img class="noAudit" src="@/assets/secondHandCar/noAudit.png" />审核不通过</span>
<span>{{auditRemark}}</span>
</div>
<div class="audit supplierInfo" v-if="type==2">
<div><span>供应商名称</span><span>{{supplierName}}</span></div>
<div><span>供应商编号</span><span>{{supplierCode}}</span></div>
</div>
</div>
<div class="contentWrap" :style="id ? 'height: calc(100% - 100px);' : 'height: calc(100% - 42px);'" :class="[type==1 ? 'noContentAudit': 'hasContentAudit']">
<div class="oneContent content">
@ -190,6 +193,8 @@ export default {
otherImgSrcList:[],
otherImgSrc:[],
status:'',
supplierName:'',
supplierCode:'',
homePage:false,
}
},
@ -198,6 +203,7 @@ export default {
this.type=this.$route.query.type || urlParams.get('type');
this.id=this.$route.query.id || urlParams.get('id');
this.queryType=this.$route.query.queryType || urlParams.get('queryType');
this.homePage=this.$route.query.homePage
if( this.id){
let res = await carInfoDetail({
id:this.id,
@ -210,6 +216,8 @@ export default {
this.auditRemark=res.data?.auditRemark
this.status=res.data?.status?.code
this.areaName=res.data?.areaName
this.supplierName=res.data?.supplierName
this.supplierCode=res.data?.supplierCode
this.otherImgSrc=res.data?.otherPhoto?.split(',')
this.otherImgSrc?.map(item=>this.otherImgSrcList.push({url:item}))
this.vehicleLicensePhotoList=[{url:res.data?.vehicleLicensePhoto}]
@ -266,7 +274,7 @@ 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,type:1},params: {
this.$router.push({ name: "privacyComponent", query: {url:urls,type:1,homePage:this.homePage},params: {
form: this.form,radio:this.radio,
areaName:this.areaName,
vehicleLicensePhotoList:this.vehicleLicensePhotoList,
@ -494,6 +502,11 @@ export default {
font-weight: 600;
}
}
.supplierInfo{
justify-content: space-around;
background-color: #F5F7F9;
color: #606266;;
}
}
.navBar{
margin-bottom: 46px;

View File

@ -1,7 +1,6 @@
<template>
<div class="wrap" >
<div class="headerWrap">
<!-- <div v-if="isWebFunc()" style="opacity: 0;" class="back"></div>-->
<img class="back" @click="backHandle" src="@/assets/secondHandCar/back.png" />
<span>免责声明</span>
<div style="opacity: 0;" class="back"></div>
@ -35,7 +34,7 @@ export default {
this.h5GoBack()
}else{
if(this.$route.query.type == 1){
this.$router.push({ name: 'carSource',query: {type:1},params: {
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 ,
@ -47,7 +46,7 @@ export default {
} })
}else{
this.$router.push({ name: 'wantBuy',query: {type:1},params: { form: this.$route.params.form,radio:this.$route.params.radio } })
this.$router.push({ name: 'wantBuy',query: {type:1,homePage:this.$route.query.homePage},params: { form: this.$route.params.form,radio:this.$route.params.radio } })
}
}
},

View File

@ -12,7 +12,10 @@
<span><img class="noAudit" src="@/assets/secondHandCar/noAudit.png" />审核不通过</span>
<span>{{auditRemark}}</span>
</div>
<div class="audit supplierInfo" v-if="type==2">
<div><span>供应商名称</span><span>{{supplierName}}</span></div>
<div><span>供应商编号</span><span>{{supplierCode}}</span></div>
</div>
</div>
<div class="contentWrap" :class="[type==1 ? 'noContentAudit': 'hasContentAudit']">
<div class="oneContent content">
@ -132,6 +135,8 @@ export default {
auditReason:'',
auditRemark:'',
status:'',
supplierName:'',
supplierCode:'',
homePage:false,
}
},
@ -140,6 +145,7 @@ export default {
this.type=this.$route.query.type || urlParams.get('type');
this.id=this.$route.query.id || urlParams.get('id');
this.queryType=this.$route.query.queryType || urlParams.get('queryType');
this.homePage=this.$route.query.homePage
if( this.id){
let res = await carInfoDetail({
id:this.id,
@ -150,6 +156,8 @@ export default {
this.form.emissionStandard=res.data.emissionStandard?.code
this.auditRemark=res.data?.auditRemark
this.status=res.data?.status?.code
this.supplierName=res.data?.supplierName
this.supplierCode=res.data?.supplierCode
}
if(this.$route.params.form){
this.form={...this.$route.params.form}
@ -180,7 +188,7 @@ export default {
// url = 'http://localhost:8080'
}
let urls=url + '/h5/supplier/dispatch/res/privacy.html'
this.$router.push({ name: "privacyComponent", query: {url:urls,type:2},params: { form: this.form,radio:this.radio } })
this.$router.push({ name: "privacyComponent", query: {url:urls,type:2,homePage:this.homePage},params: { form: this.form,radio:this.radio } })
},
closeParentDialog() {
if (window.parent) {