Authored by 陈轩

fix filter in order

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