diff --git a/src/api/secondHandCar.js b/src/api/secondHandCar.js
index 97950b75..3a304e03 100644
--- a/src/api/secondHandCar.js
+++ b/src/api/secondHandCar.js
@@ -54,7 +54,7 @@ export function userFeedback(data){
data
})
}
-//二手拖车信息擦亮
+//擦亮
export function usedCarPolish(data){
return request({
url: `/toc-user/car-app/usedCarPolish/${data}`,
diff --git a/src/views/secondHandCar/indexList.vue b/src/views/secondHandCar/indexList.vue
index 99e62fbc..cfb28d05 100644
--- a/src/views/secondHandCar/indexList.vue
+++ b/src/views/secondHandCar/indexList.vue
@@ -16,7 +16,7 @@
@@ -99,6 +99,11 @@
>
+
+

+

+
想要的车源
+
@@ -223,6 +228,7 @@ export default {
showDatePicker: false,
areaShow:false,
isClearing:false,
+ wantSource: 0,
minDate: new Date(1970, 0, 1), // 设置最小可选日期(1970年1月1日)
maxDate: new Date(2099, 11, 31) // 设置最大可选日期(2099年12月31日)
}
@@ -267,6 +273,10 @@ export default {
this.setSearchVal();
this.getList()
},
+ wantSource(){
+ this.setSearchVal();
+ this.getList()
+ },
},
mounted() {
this.getSearchVal();
@@ -281,6 +291,9 @@ export default {
});
},
methods:{
+ toggleWantSource(){
+ this.wantSource = this.wantSource === 1 ? 0 : 1;
+ },
confirmHandle(val){
if(val[0].name.includes('市')){
this.areaName=val[0].name
@@ -356,6 +369,7 @@ export default {
sessionStorage.setItem('dateVal',this.dateVal);
sessionStorage.setItem('brandModel',this.brandModel);
sessionStorage.setItem('underpanBrand',this.underpanBrand);
+ sessionStorage.setItem('wantSource',String(this.wantSource));
},
getSearchVal(){
this.activeTab = Number(sessionStorage.getItem('indexActiveTab')) || 0;
@@ -371,6 +385,7 @@ export default {
this.dateVal=sessionStorage.getItem('dateVal') || '';
this.brandModel=sessionStorage.getItem('brandModel') || '';
this.underpanBrand=sessionStorage.getItem('underpanBrand') || '';
+ this.wantSource=Number(sessionStorage.getItem('wantSource')) || 0;
},
goMine(){//我的发布
this.$router.push({ name: "mineRelease"})
@@ -434,6 +449,7 @@ export default {
endTime:this.endTime,
brandModel:this.brandModel,
underpanBrand:this.underpanBrand,
+ wantSource:this.wantSource,
})
this.total=res.total
if(this.pageNum == 1){// 第一页直接赋值
@@ -526,6 +542,9 @@ export default {
border-radius: 20px;
border: 2px solid #264B94;
}
+ ::v-deep .el-input__inner::placeholder{
+ font-size: 10px;
+ }
::v-deep .el-input__suffix{
top: 12px;
right: 10px;
@@ -622,6 +641,22 @@ export default {
.has-price{
color: #007BE9 !important;
}
+ .wantSourceSel{
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ gap: 3px;
+ width: 68px;
+ cursor: pointer;
+ .checkIcon{
+ width: 13px;
+ height: 13px;
+ }
+ span{
+ font-size: 10px;
+ color: #323233;
+ }
+ }
}
.contentWrap{
width: 100%;