This commit is contained in:
lixuan
2022-12-06 18:12:13 +08:00
parent a43da27bda
commit 386045339f
4 changed files with 257 additions and 42 deletions

View File

@@ -87,7 +87,22 @@
ureaFilterDatas:[],
loadStatus: 'load',
siteName: '',
menuList: [{
menuList: [
{
title: '距离排序',
isMutiple: false,
key: 'sort',
detailList: [{
title: "距离排序",
value: 'juli'
},
{
title: "价格排序",
value: 'price'
}
]
},
{
title: '距离',
isMutiple: false,
key: 'distance',
@@ -106,17 +121,22 @@
{
title: "50Km",
value: 50000
},
{
title: "省市",
value: 10
}
]
},{
title: '渠道',
isMutiple: false,
key: 'channelCode',
detailList: [{
title: "全部",
value: ""
}]
},
// {
// title: '渠道',
// isMutiple: false,
// key: 'channelCode',
// detailList: [{
// title: "全部",
// value: ""
// }]
// },
{
title: '0#轻柴油',
key: 'oilProductCode',
@@ -423,7 +443,7 @@
value: 'E'
},
]
this.oliMenuList[3].detailList = data
// this.oliMenuList[3].detailList = data
// // console.log(channelCodes, productCodes, siteBrands)
// this.$refs.slFilter.resetMenuList(this.menuList)
}
@@ -483,7 +503,7 @@
currentPage: this.currentPage,
pageSize: 10,
params: { //类型Object 必有字段 备注:// 筛选对象
sort: "juli", //类型String 必有字段 备注:// 智能排序 ( price价格最低 juli距离最近 ) 默认距离排序
// sort: "juli", //类型String 必有字段 备注:// 智能排序 ( price价格最低 juli距离最近 ) 默认距离排序
siteName: this.siteName,
...uni.getStorageSync('location'),
// ...this.filterData
@@ -499,6 +519,7 @@
// siteLevel: this.siteName ? '' : this.filterDatas
siteLevel: this.filterDatas
.siteLevel ,
sort:this.filterDatas.sort?this.filterDatas.sort:'juli',
provinceCode:this.filterDatas.provinceCode,
cityCode:this.filterDatas.cityCode,
areaCode:this.filterDatas.areaCode,