Authored by 杨延青

Merge branch 'hotfix/couponHeader' into 'release/6.8.4'

fix coupon style when change status



See merge request !1646
@@ -23,7 +23,7 @@ class ConponController extends Page { @@ -23,7 +23,7 @@ class ConponController extends Page {
23 usedTip: $('.used-tip'), 23 usedTip: $('.used-tip'),
24 exchangeBox: $('.exchange-box') 24 exchangeBox: $('.exchange-box')
25 }; 25 };
26 - 26 +
27 if ($('#yoho-header').hasClass('hide')) { 27 if ($('#yoho-header').hasClass('hide')) {
28 this.view.page.removeClass('cpage-padding284'); 28 this.view.page.removeClass('cpage-padding284');
29 } 29 }
@@ -213,11 +213,11 @@ class ConponController extends Page { @@ -213,11 +213,11 @@ class ConponController extends Page {
213 213
214 // 筛选框控制按钮状态、优惠券码兑换输入框状态管理 214 // 筛选框控制按钮状态、优惠券码兑换输入框状态管理
215 if (itemClicked.hasClass('no-used')) { 215 if (itemClicked.hasClass('no-used')) {
216 - this.view.page.addClass('cpage-padding284').removeClass('cpage-padding194'); 216 + this.view.page.removeClass('no-exchange');
217 this.view.showFilterBtn.addClass('active'); 217 this.view.showFilterBtn.addClass('active');
218 this.view.exchangeBox.removeClass('hide'); 218 this.view.exchangeBox.removeClass('hide');
219 } else { 219 } else {
220 - this.view.page.addClass('cpage-padding194').removeClass('cpage-padding284'); 220 + this.view.page.addClass('no-exchange');
221 this.view.showFilterBtn.removeClass('icon-up').addClass('icon-down'); 221 this.view.showFilterBtn.removeClass('icon-up').addClass('icon-down');
222 this.view.showFilterBtn.removeClass('active'); 222 this.view.showFilterBtn.removeClass('active');
223 this.view.exchangeBox.addClass('hide'); 223 this.view.exchangeBox.addClass('hide');
@@ -10,14 +10,22 @@ body { @@ -10,14 +10,22 @@ body {
10 10
11 .coupon-new-page { 11 .coupon-new-page {
12 padding-top: 194px; 12 padding-top: 194px;
13 - 13 +
  14 + &.no-exchange {
  15 + padding-top: 104px;
  16 + }
  17 +
14 &.cpage-padding284 { 18 &.cpage-padding284 {
15 padding-top: 284px; 19 padding-top: 284px;
16 20
  21 + &.no-exchange {
  22 + padding-top: 194px;
  23 + }
  24 +
17 .filter-box { 25 .filter-box {
18 top: 106px; 26 top: 106px;
19 } 27 }
20 - 28 +
21 .filter-item { 29 .filter-item {
22 top: 192px; 30 top: 192px;
23 } 31 }