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 @@