二手车交易,监听筛选框的值
This commit is contained in:
@ -294,7 +294,7 @@ export default {
|
||||
auditResult: type ? 1 : 0 ,
|
||||
auditReason: this.auditReason,
|
||||
})
|
||||
this.h5GoBack()
|
||||
// this.h5GoBack()
|
||||
} finally {
|
||||
console.log(type)
|
||||
}
|
||||
|
@ -119,8 +119,13 @@ export default {
|
||||
mixins:[myMixins],
|
||||
watch:{
|
||||
activeTab(){
|
||||
this.setSearchVal();
|
||||
this.getList()
|
||||
}
|
||||
},
|
||||
topSearch(){
|
||||
this.setSearchVal();
|
||||
this.getList()
|
||||
},
|
||||
},
|
||||
data(){
|
||||
return{
|
||||
@ -161,10 +166,9 @@ export default {
|
||||
document.addEventListener('visibilitychange', async ( ) => {
|
||||
let state = document.visibilityState
|
||||
if (state == 'hidden') { // 用户离开了
|
||||
// console.log("用户离开了")
|
||||
}
|
||||
if (state == 'visible') {
|
||||
// console.log("用户visible")
|
||||
console.log('visible')
|
||||
}
|
||||
});
|
||||
},
|
||||
|
@ -18,7 +18,9 @@
|
||||
<div class="contentItem">
|
||||
<div class="item" v-for="(item,index) in pageList" :key="index" @click.stop="itemHandle(item)">
|
||||
<div class="left">
|
||||
<img class="bigImg" src="@/assets/secondHandCar/45angle.png" />
|
||||
<!-- <img class="bigImg" src="@/assets/secondHandCar/45angle.png" />-->
|
||||
<img v-if="item.vehicleAnglePhoto" class="img" :src="item.vehicleAnglePhoto" />
|
||||
<div v-else class="qiugou">{{item.vehicleType?.substring(0,2)}}</div>
|
||||
<img v-if="item.type==1" class="smallImg" src="@/assets/secondHandCar/mine_cheyuan.png" />
|
||||
<img v-else class="smallImg" src="@/assets/secondHandCar/mine_qiugou.png" />
|
||||
</div>
|
||||
@ -41,7 +43,7 @@
|
||||
<div class="btnWrap">
|
||||
<img v-if="(activeTab==1 && item.status?.code==3) || activeTab==2" @click.stop="noMultipleClicks(reviseHandle,item)" class="revise" src="@/assets/secondHandCar/revise.png" />
|
||||
<img v-if="(activeTab==1 && item.status?.code==1) || activeTab==2" @click.stop="noMultipleClicks(xiajiaHandle,item)" class="xiajia" src="@/assets/secondHandCar/xiajia.png" />
|
||||
<img v-if="[2,3].includes(activeTab) && item.status?.code==7" @click.stop="noMultipleClicks(polishHandle,item)" class="polish" src="@/assets/secondHandCar/polish.png" />
|
||||
<img v-if="(activeTab==2 && item.status?.code==7) || activeTab==3" @click.stop="noMultipleClicks(polishHandle,item)" class="polish" src="@/assets/secondHandCar/polish.png" />
|
||||
<img v-if="activeTab == 3 && item.status?.code==6" @click.stop="noMultipleClicks(reShangJiaHandle,item)" class="reshangjia" src="@/assets/secondHandCar/reshangjia.png" />
|
||||
</div>
|
||||
<div class="line"></div>
|
||||
@ -89,6 +91,7 @@ export default {
|
||||
}
|
||||
},
|
||||
async mounted() {
|
||||
this.activeTab = Number(sessionStorage.getItem('mineActiveTab')) || 1;
|
||||
await this.getCount()
|
||||
await this.getList()
|
||||
},
|
||||
@ -105,6 +108,7 @@ export default {
|
||||
name: item.type==1 ? "forSale" : 'wantBuySale',
|
||||
query: { id:item.id,queryType:3},
|
||||
})
|
||||
sessionStorage.setItem('mineActiveTab',String(this.activeTab) )
|
||||
},
|
||||
async getList(){
|
||||
let res= await minePublishPageList({
|
||||
@ -273,11 +277,11 @@ export default {
|
||||
}
|
||||
.left{
|
||||
position: relative;
|
||||
.bigImg{
|
||||
.img,.qiugou{
|
||||
width: 115px;
|
||||
height: 77px;
|
||||
background: linear-gradient( 90deg, rgba(5,32,54,0.88) 0%, rgba(69,87,103,0.19) 64%, rgba(133,141,152,0) 100%);
|
||||
border-radius: 7px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
.smallImg{
|
||||
position: absolute;
|
||||
@ -286,6 +290,14 @@ export default {
|
||||
width: 36px;
|
||||
height: 18px;
|
||||
}
|
||||
.qiugou{
|
||||
line-height: 77px;
|
||||
text-align: center;
|
||||
color: #FFFFFF;
|
||||
font-size: 18px;
|
||||
letter-spacing: 5px;
|
||||
background-color: #6C81CD;
|
||||
}
|
||||
}
|
||||
.right{
|
||||
|
||||
|
@ -191,7 +191,7 @@ export default {
|
||||
auditResult: type ? 1 : 0 ,
|
||||
auditReason: this.auditReason,
|
||||
})
|
||||
this.h5GoBack()
|
||||
// this.h5GoBack()
|
||||
} finally {
|
||||
console.log(type)
|
||||
}
|
||||
|
@ -10,8 +10,6 @@
|
||||
<div class="titleWrap wrapCommon">
|
||||
<div class="info">
|
||||
<span>{{ detailInfo.vehicleType }}</span>
|
||||
<span>{{ detailInfo.boardType?.label }}</span>
|
||||
<span>{{ detailInfo.emissionStandard?.label }}</span>
|
||||
</div>
|
||||
<div class="time">
|
||||
<span>{{ detailInfo.createTime?.substring(0,10) }}</span><span>发布</span>
|
||||
|
Reference in New Issue
Block a user