Authored by 陈轩

fix filter in order

... ... @@ -7,10 +7,14 @@
</div>
<div class="filter-params">
<ul class="filter-cates">
<li class="filter-cate" v-for="classify in config" v-if="showCate($key, classify)" @click="entrySub($key)">
<li class="filter-cate"
v-for="classify in itemArr"
v-if="config[classify] && showCate(classify, config[classify])"
@click="entrySub(classify)"
>
<i class="icon icon-right right"></i>
<span class="filter-cate-label">{{$key | filter-en-cn }}</span>
<span class="filter-cate-val">{{showLabel($key)}}</span>
<span class="filter-cate-label">{{classify | filter-en-cn }}</span>
<span class="filter-cate-val">{{showLabel(classify)}}</span>
</li>
</ul>
</div>
... ... @@ -39,11 +43,9 @@
},
data: function() {
return {
// 选择的值
params: {},
// 确定的值
selected: {},
itemArr: ['gender', 'ageLevel', 'brand', 'groupSort', 'color', 'size', 'priceRange', 'discount','style'],
params: {}, // 选择的值
selected: {}, // 确定的值
subType: ''
};
... ...
... ... @@ -35,6 +35,10 @@ const _procProductImg = (product, genderVal) => {
module.exports = (list, options) => {
const pruductList = [];
if (!options.gender) {
options.gender = '';
}
options = Object.assign({
showTags: true,
showNew: true,
... ...