...
|
...
|
@@ -9,7 +9,7 @@ |
|
|
<ul class="filter-cates">
|
|
|
<li class="filter-cate"
|
|
|
v-for="classify in itemArr"
|
|
|
v-if="config[classify] && showCate(classify, config[classify])"
|
|
|
v-if="showItem(classify)"
|
|
|
@click="entrySub(classify)"
|
|
|
>
|
|
|
<i class="icon icon-right right"></i>
|
...
|
...
|
@@ -64,6 +64,15 @@ |
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
showItem: function(item) {
|
|
|
let config = this.config;
|
|
|
|
|
|
if (!config || !config[item] || !this.showCate(item, config[item])) {
|
|
|
return false;
|
|
|
}
|
|
|
return true;
|
|
|
},
|
|
|
|
|
|
// 只显示 可选值 大于 1的 筛选项
|
|
|
// groupSort 特殊处理
|
|
|
showCate: function(cateName, cateVals) {
|
...
|
...
|
|