From 7d42853f39a3a87a41cc3d9145d8d6879be7037c Mon Sep 17 00:00:00 2001 From: zhouxueli <2841188632@qq.com> Date: Thu, 13 Mar 2025 09:24:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8C=E6=89=8B=E8=BD=A6=E4=BA=A4=E6=98=93?= =?UTF-8?q?=EF=BC=8C=E7=9B=91=E5=90=AC=E7=AD=9B=E9=80=89=E6=A1=86=E7=9A=84?= =?UTF-8?q?=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/secondHandCar/carSource.vue | 2 +- src/views/secondHandCar/indexList.vue | 10 +++++++--- src/views/secondHandCar/mineRelease.vue | 20 ++++++++++++++++---- src/views/secondHandCar/wantBuy.vue | 2 +- src/views/secondHandCar/wantBuySale.vue | 2 -- 5 files changed, 25 insertions(+), 11 deletions(-) diff --git a/src/views/secondHandCar/carSource.vue b/src/views/secondHandCar/carSource.vue index 2be0fc7a..0d3efbc6 100644 --- a/src/views/secondHandCar/carSource.vue +++ b/src/views/secondHandCar/carSource.vue @@ -294,7 +294,7 @@ export default { auditResult: type ? 1 : 0 , auditReason: this.auditReason, }) - this.h5GoBack() + // this.h5GoBack() } finally { console.log(type) } diff --git a/src/views/secondHandCar/indexList.vue b/src/views/secondHandCar/indexList.vue index f93410e9..03c2b78d 100644 --- a/src/views/secondHandCar/indexList.vue +++ b/src/views/secondHandCar/indexList.vue @@ -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') } }); }, diff --git a/src/views/secondHandCar/mineRelease.vue b/src/views/secondHandCar/mineRelease.vue index 2dfb91c2..6989553a 100644 --- a/src/views/secondHandCar/mineRelease.vue +++ b/src/views/secondHandCar/mineRelease.vue @@ -18,7 +18,9 @@
- + + +
{{item.vehicleType?.substring(0,2)}}
@@ -41,7 +43,7 @@
- +
@@ -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{ diff --git a/src/views/secondHandCar/wantBuy.vue b/src/views/secondHandCar/wantBuy.vue index ea1747e7..80273632 100644 --- a/src/views/secondHandCar/wantBuy.vue +++ b/src/views/secondHandCar/wantBuy.vue @@ -191,7 +191,7 @@ export default { auditResult: type ? 1 : 0 , auditReason: this.auditReason, }) - this.h5GoBack() + // this.h5GoBack() } finally { console.log(type) } diff --git a/src/views/secondHandCar/wantBuySale.vue b/src/views/secondHandCar/wantBuySale.vue index 41072b7f..93eea6be 100644 --- a/src/views/secondHandCar/wantBuySale.vue +++ b/src/views/secondHandCar/wantBuySale.vue @@ -10,8 +10,6 @@
{{ detailInfo.vehicleType }} - {{ detailInfo.boardType?.label }} - {{ detailInfo.emissionStandard?.label }}
{{ detailInfo.createTime?.substring(0,10) }}发布