From 1d491e501f5788f3c94a144758d96e8b84f0c5ef Mon Sep 17 00:00:00 2001 From: zhouxueli <2841188632@qq.com> Date: Thu, 13 Mar 2025 19:47:15 +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=E6=B5=8B=E8=AF=95=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/secondHandCar/carSource.vue | 49 ++++++++++++++++++++----- src/views/secondHandCar/forSale.vue | 29 +++++++++------ src/views/secondHandCar/indexList.vue | 2 +- src/views/secondHandCar/mineRelease.vue | 6 ++- src/views/secondHandCar/wantBuy.vue | 26 +++++++++---- src/views/secondHandCar/wantBuySale.vue | 19 ++++++---- 6 files changed, 93 insertions(+), 38 deletions(-) diff --git a/src/views/secondHandCar/carSource.vue b/src/views/secondHandCar/carSource.vue index 215a74a5..fbfd8468 100644 --- a/src/views/secondHandCar/carSource.vue +++ b/src/views/secondHandCar/carSource.vue @@ -43,7 +43,7 @@ 随车吊 -
+
*落板方式 全落地 @@ -74,6 +74,7 @@
*行驶里程 *联系号码 *售价 { this.closeParentDialog() - },2000) + },1000) } finally { console.log(type) } @@ -320,6 +336,12 @@ export default { this.$toast(flag) return } + if (this.form.vehicleType=='拖车' && !this.form.boardType) { + this.$toast('落板方式不能为空') + return + }else{ + this.form.boardType='' + } let rule=this.validationRules.find(item=>!item.value) if(rule){ this.$toast(rule.name) @@ -331,12 +353,21 @@ export default { otherPhoto:this.otherImgSrc?.join(',') }) if(res.code == 200 && !res.msg){ + sessionStorage.setItem('formInfo','') + sessionStorage.setItem('areaName','') + sessionStorage.setItem('vehicleLicensePhotoList','') + sessionStorage.setItem('vehicleAnglePhotoList','') + sessionStorage.setItem('otherImgSrcList','') + sessionStorage.setItem('otherImgSrc','') + this.$toast('发布完成') if(this.isWebFunc()){ setTimeout(()=>{ this.closeParentDialog() - },2000) + },1000) }else{ - this.h5GoBack() + setTimeout(()=>{ + this.$router.push({ name: "mineRelease",query:{activeTab : 1}}) + },1000) } }else{ this.$toast(res.msg) @@ -367,7 +398,6 @@ export default { validationRules() { return [ { value: this.form.vehicleType, name: '车辆类型不能为空' }, - { value: this.form.boardType, name: '落板方式不能为空' }, { value: this.form.emissionStandard, name: '排放标准不能为空' }, { value: this.form.areaCode, name: '所在城市不能为空' }, { value: this.form.mileage, name: '行驶里程不能为空' }, @@ -549,6 +579,7 @@ export default { font-weight: bold; border-radius: 5px; color: #FFFFFF; + cursor: pointer; } .btn{ width: 296px; diff --git a/src/views/secondHandCar/forSale.vue b/src/views/secondHandCar/forSale.vue index 2ee5586b..03966361 100644 --- a/src/views/secondHandCar/forSale.vue +++ b/src/views/secondHandCar/forSale.vue @@ -16,11 +16,8 @@ - - -
@@ -99,6 +96,7 @@