Authored by 郭成尧

arrow

@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 <div class="filter-box"> 2 <div class="filter-box">
3 <span class="valid"> 3 <span class="valid">
4 <span class="filter-btn active">可用(99+)</span> 4 <span class="filter-btn active">可用(99+)</span>
5 - <span class="show-filter-btn iconfont">&#xe609;</span> 5 + <span class="iconfont icon-down show-filter-btn"></span>
6 </span> 6 </span>
7 <span class="invalid"> 7 <span class="invalid">
8 <span class="filter-btn">不可用(99+)</span> 8 <span class="filter-btn">不可用(99+)</span>
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 <div class="filter-box"> 2 <div class="filter-box">
3 <span class="no-used"> 3 <span class="no-used">
4 <span class="filter-btn active">未使用(99+)</span> 4 <span class="filter-btn active">未使用(99+)</span>
5 - <span class="show-filter-btn iconfont">&#xe609;</span> 5 + <span class="iconfont icon-down show-filter-btn"></span>
6 </span> 6 </span>
7 <span class="used"> 7 <span class="used">
8 <span class="filter-btn">已使用(8)</span> 8 <span class="filter-btn">已使用(8)</span>
1 -// import $ from 'yoho-jquery'; 1 +import $ from 'yoho-jquery';
2 import Page from 'yoho-page'; 2 import Page from 'yoho-page';
3 3
4 class SelectCouponController extends Page { 4 class SelectCouponController extends Page {
@@ -61,8 +61,10 @@ class SelectCouponController extends Page { @@ -61,8 +61,10 @@ class SelectCouponController extends Page {
61 showFilter() { 61 showFilter() {
62 if (this.view.filterItem.hasClass('hide')) { 62 if (this.view.filterItem.hasClass('hide')) {
63 this.view.filterItem.removeClass('hide'); 63 this.view.filterItem.removeClass('hide');
  64 + this.view.showFilterBtn.removeClass('icon-down').addClass('icon-up');
64 } else { 65 } else {
65 this.view.filterItem.addClass('hide'); 66 this.view.filterItem.addClass('hide');
  67 + this.view.showFilterBtn.removeClass('icon-up').addClass('icon-down');
66 } 68 }
67 } 69 }
68 } 70 }
@@ -37,8 +37,10 @@ class ConponController extends Page { @@ -37,8 +37,10 @@ class ConponController extends Page {
37 showFilter() { 37 showFilter() {
38 if (this.view.filterItem.hasClass('hide')) { 38 if (this.view.filterItem.hasClass('hide')) {
39 this.view.filterItem.removeClass('hide'); 39 this.view.filterItem.removeClass('hide');
  40 + this.view.showFilterBtn.removeClass('icon-down').addClass('icon-up');
40 } else { 41 } else {
41 this.view.filterItem.addClass('hide'); 42 this.view.filterItem.addClass('hide');
  43 + this.view.showFilterBtn.removeClass('icon-up').addClass('icon-down');
42 } 44 }
43 } 45 }
44 46
@@ -25,7 +25,7 @@ body { @@ -25,7 +25,7 @@ body {
25 border-right: 1px solid #e0e0e0; 25 border-right: 1px solid #e0e0e0;
26 } 26 }
27 27
28 - .show-filter, 28 + .show-filter-btn,
29 .active { 29 .active {
30 color: #444; 30 color: #444;
31 } 31 }
@@ -210,6 +210,14 @@ button { @@ -210,6 +210,14 @@ button {
210 content: "\e646"; 210 content: "\e646";
211 } 211 }
212 212
  213 +.icon-up:before {
  214 + content: "\e608";
  215 +}
  216 +
  217 +.icon-down:before {
  218 + content: "\e609";
  219 +}
  220 +
213 .wx-footer-c { 221 .wx-footer-c {
214 margin-top: 30px; 222 margin-top: 30px;
215 } 223 }