Authored by ccbikai

Merge branch 'develop' of git.yoho.cn:fe/yohoblk-wap into develop

@@ -43,7 +43,7 @@ module.exports = { @@ -43,7 +43,7 @@ module.exports = {
43 order: req.query.order || 's_t_desc', 43 order: req.query.order || 's_t_desc',
44 limit: req.query.limit || '60', 44 limit: req.query.limit || '60',
45 color: req.query.color, 45 color: req.query.color,
46 - price: req.query.price, 46 + price: req.query.priceRange,
47 size: req.query.size, 47 size: req.query.size,
48 pd: req.query.pd, 48 pd: req.query.pd,
49 tagsFilter: req.query.tagsFilter 49 tagsFilter: req.query.tagsFilter
@@ -38,3 +38,9 @@ @@ -38,3 +38,9 @@
38 color: $grey; 38 color: $grey;
39 } 39 }
40 } 40 }
  41 +
  42 +.button-ghost {
  43 + background-color: transparent;
  44 + border: none;
  45 + outline: none;
  46 +}
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 <div class="filter-box"> 2 <div class="filter-box">
3 <div class="filter" :class="{ 'filter-open': isVisible}"> 3 <div class="filter" :class="{ 'filter-open': isVisible}">
4 <div class="filter-actions"> 4 <div class="filter-actions">
5 - <a href="javascript:;" class="filter-action" @click="clearVals">清空</a> 5 + <button class="button-ghost filter-action" @click="clearVals">清空</button>
6 <button class="button button-small filter-action" @click="okAction">确定</button> 6 <button class="button button-small filter-action" @click="okAction">确定</button>
7 </div> 7 </div>
8 <div class="filter-params"> 8 <div class="filter-params">
@@ -62,7 +62,7 @@ @@ -62,7 +62,7 @@
62 }, 62 },
63 63
64 okAction: function() { 64 okAction: function() {
65 - this.$set('selected', Object.assign({}, this.selected,this.params)); 65 + this.$set('selected', Object.assign({}, this.selected, this.params));
66 bus.$emit('filter.change', { 66 bus.$emit('filter.change', {
67 val: this.selected, 67 val: this.selected,
68 ref: this._uid 68 ref: this._uid
@@ -82,11 +82,11 @@ @@ -82,11 +82,11 @@
82 this.$set(`params.${this.subType}`, item); 82 this.$set(`params.${this.subType}`, item);
83 }, 83 },
84 84
85 - showLabel: function(key){ 85 + showLabel: function(key) {
86 const newSelected = this.params[key]; 86 const newSelected = this.params[key];
87 const oldSelected = this.selected[key]; 87 const oldSelected = this.selected[key];
88 88
89 - if(newSelected) { 89 + if (newSelected) {
90 return newSelected.name || ''; 90 return newSelected.name || '';
91 } else { 91 } else {
92 return oldSelected && oldSelected.name || ''; 92 return oldSelected && oldSelected.name || '';