From 058ce2c72c32781ff4a1c861422a9300c594ce9b Mon Sep 17 00:00:00 2001 From: zhouxueli <2841188632@qq.com> Date: Fri, 27 Jun 2025 16:56:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8C=E6=89=8B=E6=8B=96=E8=BD=A6,=E8=BF=9B?= =?UTF-8?q?=E5=85=A5=E8=AF=A6=E6=83=85=E9=A1=B5=E8=B0=83=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E8=AE=B0=E5=BD=95=E6=8E=A5=E5=8F=A3,?= =?UTF-8?q?=E8=8E=B7=E5=8F=96id,=E5=85=B3=E9=97=AD=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=EF=BC=8Cid=E4=BC=A0=E5=85=A5=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/secondHandCar/forSale.vue | 5 ++++- src/views/secondHandCar/wantBuySale.vue | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/views/secondHandCar/forSale.vue b/src/views/secondHandCar/forSale.vue index 69cd04f1..c8e4d00f 100644 --- a/src/views/secondHandCar/forSale.vue +++ b/src/views/secondHandCar/forSale.vue @@ -136,6 +136,7 @@ export default { startTime: null, // 记录进入时间 recordType:1, isList:false,//是否是首页列表跳转过来的 + recordResponseId:'',//信息记录获取的id,用于关闭界面掉接口所需参数 } }, async mounted() { @@ -167,6 +168,8 @@ export default { this.imgSrcList.unshift(res?.data?.vehicleRearPhoto) } this.imgSrcList.unshift(res?.data?.vehicleAnglePhoto) + let result=await saveRecord({type: 1, carInfoId: this.id, duration:'',id:''}); + this.recordResponseId=result?.data?.id } }, destroyed() { @@ -197,7 +200,7 @@ export default { this.saveRecord(duration,type); }, async saveRecord(duration,type){ - await saveRecord({type: type, carInfoId: this.id, duration}) + await saveRecord({type: type, carInfoId: this.id, duration,id:this.recordResponseId || ''}) }, handle(){ this.getDuration(2) diff --git a/src/views/secondHandCar/wantBuySale.vue b/src/views/secondHandCar/wantBuySale.vue index 5237a164..b94341ea 100644 --- a/src/views/secondHandCar/wantBuySale.vue +++ b/src/views/secondHandCar/wantBuySale.vue @@ -72,6 +72,7 @@ export default { duration:'', startTime: null, // 记录进入时间 isList:false, + recordResponseId:'',//信息记录获取的id,用于关闭界面掉接口所需参数 } }, async mounted() { @@ -92,6 +93,8 @@ export default { queryType: this.queryType, }) this.detailInfo = res?.data + let result=await saveRecord({type: 1, carInfoId: this.id, duration:'',id:''}); + this.recordResponseId=result?.data?.id } }, destroyed() { @@ -104,7 +107,7 @@ export default { this.saveRecord(duration,type); }, async saveRecord(duration,type){ - await saveRecord({type:type,carInfoId:this.id,duration}) + await saveRecord({type:type,carInfoId:this.id,duration,id:this.recordResponseId || ''}) }, handle(){ this.getDuration(2)