jufubao-base 1.0.289-beta5 → 1.0.289-beta7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
<xd-font-icon size="24" icon="iconxia_down" color="#333"></xd-font-icon>
|
|
41
41
|
</view>
|
|
42
42
|
<view @click="handleGetFilterItem({value:'sort'})" v-if="showSort" class="menu_filter_item" >
|
|
43
|
-
<view>{{sortData.label || '
|
|
43
|
+
<view>{{sortData.label || '综合'}}</view>
|
|
44
44
|
<xd-font-icon size="24" icon="iconxia_down" color="#333"></xd-font-icon>
|
|
45
45
|
</view>
|
|
46
46
|
<view class="menu_filter_item" @click="handleGetFilterItem(item)" v-for="(item,index) in filterTab" :key="index">
|
|
@@ -173,7 +173,7 @@
|
|
|
173
173
|
filterTabIcon: [
|
|
174
174
|
{ value: 'area', label: '区域',icon: 'icondizhitubiao', size: 24 },
|
|
175
175
|
{ value: 'brand', label: '品牌',icon: 'iconxia_down', size: 18 },
|
|
176
|
-
{ value: '
|
|
176
|
+
{ value: 'shop_category', label: '门店分类',icon: 'iconxia_down', size: 18 },
|
|
177
177
|
{ value: 'filter', label: '筛选', icon: 'iconshaixuanbiaoji_mian', size: 24 },
|
|
178
178
|
{ value: 'comprehensive', label: '综合', icon: 'iconxia_down', size: 18 },
|
|
179
179
|
{ value: 'sort', label: '排序', icon: 'iconxia_down', size: 18 },
|
|
@@ -409,12 +409,13 @@
|
|
|
409
409
|
this.filterType = item.type
|
|
410
410
|
this.curQueryTab = '';
|
|
411
411
|
this.searchFilterParams = {};
|
|
412
|
+
this.selectFilterParams = {};
|
|
412
413
|
this.sortData = {};
|
|
413
414
|
this.sort = '';
|
|
414
415
|
if (item.filter_item && item.filter_item.tab_filter) {
|
|
415
416
|
// 综合和排序的显示状态,当选中综合或排序时,下拉菜单取本地数据
|
|
416
|
-
this.showComprehensive = item.filter_item.tab_filter.find(item => item.value === 'comprehensive')
|
|
417
|
-
this.showSort = item.filter_item.tab_filter.find(item => item.value === 'sort')
|
|
417
|
+
this.showComprehensive = item.filter_item.tab_filter.find(item => item.value === 'comprehensive')?true:false;
|
|
418
|
+
this.showSort = item.filter_item.tab_filter.find(item => item.value === 'sort')?true:false;
|
|
418
419
|
let filter_item = item.filter_item.tab_filter.filter(item => {
|
|
419
420
|
return (item.value !== 'comprehensive'&&item.value !== 'sort')
|
|
420
421
|
})
|
|
@@ -454,8 +455,9 @@
|
|
|
454
455
|
this.curQueryTab = item.value;
|
|
455
456
|
}
|
|
456
457
|
if (this.curQueryTab === 'sort') {
|
|
458
|
+
this.sort = 'default'
|
|
457
459
|
this.sortList = [{
|
|
458
|
-
label: "
|
|
460
|
+
label: "综合",
|
|
459
461
|
key: "default",
|
|
460
462
|
value: "default"
|
|
461
463
|
}]
|
|
@@ -520,6 +522,8 @@
|
|
|
520
522
|
if (this.$xdUniHelper.checkVarType(ids[key]) === 'array') {
|
|
521
523
|
if (ids[key].length === 0) {
|
|
522
524
|
this.searchFilterParams[maps[key]] = ''
|
|
525
|
+
} else {
|
|
526
|
+
this.searchFilterParams[maps[key]] = ids[key].join(',')
|
|
523
527
|
}
|
|
524
528
|
}
|
|
525
529
|
}
|
|
@@ -216,16 +216,9 @@ export default {
|
|
|
216
216
|
setChooseTag(tab, item){
|
|
217
217
|
//单选
|
|
218
218
|
if(!tab.multiple) {
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
}
|
|
223
|
-
//新增
|
|
224
|
-
else {
|
|
225
|
-
this.setSelectData(tab.value, item.value, item, item.label);
|
|
226
|
-
//单选直接触发返回数据
|
|
227
|
-
if(this.isShowBtn === false) this.onConfirm();
|
|
228
|
-
}
|
|
219
|
+
this.setSelectData(tab.value, item.value, item, item.label);
|
|
220
|
+
//单选直接触发返回数据
|
|
221
|
+
if(this.isShowBtn === false) this.onConfirm();
|
|
229
222
|
}
|
|
230
223
|
//多选
|
|
231
224
|
else {
|