二手车交易,返回按钮路径
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
<img class="bg" src="@/assets/secondHandCar/bg.png" />
|
||||
<div class="navWrap">
|
||||
<div v-if="isWebFunc()" style="opacity: 0;" class="back"></div>
|
||||
<img v-else class="back" @click="h5GoBack" src="@/assets/secondHandCar/back.png" />
|
||||
<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>
|
||||
@ -190,6 +190,7 @@ export default {
|
||||
otherImgSrcList:[],
|
||||
otherImgSrc:[],
|
||||
status:'',
|
||||
homePage:false,
|
||||
}
|
||||
},
|
||||
async mounted() {
|
||||
@ -238,6 +239,13 @@ export default {
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
backHandle(){
|
||||
if(this.$route.query.homePage){//返回列表
|
||||
this.$router.push({ name: "indexList"})
|
||||
}else{//返回我的发布
|
||||
this.$router.push({ name: "mineRelease"})
|
||||
}
|
||||
},
|
||||
viewPrivacy(){
|
||||
let url='';
|
||||
if (window.location.href.includes('www.sinoassist.com')) {
|
||||
|
@ -267,10 +267,10 @@ export default {
|
||||
if(type===1){//车源发布
|
||||
this.$router.push({
|
||||
name: "carSource",
|
||||
query: { type:1 }
|
||||
query: { type:1,homePage:true }
|
||||
})
|
||||
}else{//求购发布
|
||||
this.$router.push({ name: "wantBuy", query: { type:1 } })
|
||||
this.$router.push({ name: "wantBuy", query: { type:1,homePage:true } })
|
||||
}
|
||||
this.setSearchVal();
|
||||
},
|
||||
|
@ -167,7 +167,7 @@ export default {
|
||||
reviseHandle(item){//修改
|
||||
this.$router.push({
|
||||
name: item.type==1 ? "carSource" : 'wantBuy',
|
||||
query: { type:1 ,id:item.id,queryType:3},
|
||||
query: { type:1 ,id:item.id,queryType:3,homePage:false},
|
||||
})
|
||||
},
|
||||
async polishHandle(item){//檫亮
|
||||
|
@ -4,7 +4,7 @@
|
||||
<img class="bg" src="@/assets/secondHandCar/bg.png" />
|
||||
<div class="navWrap">
|
||||
<div v-if="isWebFunc()" style="opacity: 0;" class="back"></div>
|
||||
<img v-else class="back" @click="h5GoBack" src="@/assets/secondHandCar/back.png" />
|
||||
<img v-else class="back" @click="backHandle" src="@/assets/secondHandCar/back.png" />
|
||||
<img class="navIcon" src="@/assets/secondHandCar/qiugou_big.png" />
|
||||
<div style="opacity: 0;" class="back"></div>
|
||||
</div>
|
||||
@ -132,6 +132,7 @@ export default {
|
||||
auditReason:'',
|
||||
auditRemark:'',
|
||||
status:'',
|
||||
homePage:false,
|
||||
}
|
||||
},
|
||||
async mounted() {
|
||||
@ -158,6 +159,13 @@ export default {
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
backHandle(){
|
||||
if(this.$route.query.homePage){//返回列表
|
||||
this.$router.push({ name: "indexList"})
|
||||
}else{//返回我的发布
|
||||
this.$router.push({ name: "mineRelease"})
|
||||
}
|
||||
},
|
||||
viewPrivacy(){
|
||||
// let host = window.location.host
|
||||
let url='';
|
||||
|
Reference in New Issue
Block a user