Merge branch 'feature/coupon' into release/180420
Showing
7 changed files
with
25 additions
and
9 deletions
@@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
3 | <div class="dialog-header">优惠券使用规则</div> | 3 | <div class="dialog-header">优惠券使用规则</div> |
4 | <div class="dialog-content">{{{couponPayRule}}}</div> | 4 | <div class="dialog-content">{{{couponPayRule}}}</div> |
5 | <div class="dialog-footer"> | 5 | <div class="dialog-footer"> |
6 | - <span class="dialog-center-btn tap-hightlight" id="conponDialogCancel">我知道了</span> | 6 | + <span class="dialog-center-btn tap-hightlight" id="conponDialogCancel">知道了</span> |
7 | </div> | 7 | </div> |
8 | </div> | 8 | </div> |
9 | </div> | 9 | </div> |
@@ -144,9 +144,7 @@ class SelectCouponController extends Page { | @@ -144,9 +144,7 @@ class SelectCouponController extends Page { | ||
144 | let itemClicked = $(event.currentTarget); | 144 | let itemClicked = $(event.currentTarget); |
145 | 145 | ||
146 | // Tab 按钮状态 | 146 | // Tab 按钮状态 |
147 | - if (itemClicked.hasClass('active')) { | ||
148 | - itemClicked.removeClass('active'); | ||
149 | - } else { | 147 | + if (!itemClicked.hasClass('active')) { |
150 | this.view.filterBtn.removeClass('active'); | 148 | this.view.filterBtn.removeClass('active'); |
151 | itemClicked.addClass('active'); | 149 | itemClicked.addClass('active'); |
152 | } | 150 | } |
@@ -170,7 +168,7 @@ class SelectCouponController extends Page { | @@ -170,7 +168,7 @@ class SelectCouponController extends Page { | ||
170 | } | 168 | } |
171 | 169 | ||
172 | // Tip 控制 | 170 | // Tip 控制 |
173 | - if (this.closeCouponRuleTipbyUser === 'Y') { | 171 | + if (this.closeCouponRuleTipbyUser === 'Y' || itemClicked.hasClass('invalid')) { |
174 | this.view.tipBox.addClass('hide'); | 172 | this.view.tipBox.addClass('hide'); |
175 | } else { | 173 | } else { |
176 | if (itemClicked.data('num') === 0) { | 174 | if (itemClicked.data('num') === 0) { |
@@ -11,6 +11,7 @@ class ConponController extends Page { | @@ -11,6 +11,7 @@ class ConponController extends Page { | ||
11 | this.page = 1; | 11 | this.page = 1; |
12 | 12 | ||
13 | this.view = { | 13 | this.view = { |
14 | + page: $('.coupon-new-page'), | ||
14 | filterBtn: $('.filter-btn'), | 15 | filterBtn: $('.filter-btn'), |
15 | filterItem: $('.filter-item'), | 16 | filterItem: $('.filter-item'), |
16 | showFilterBtn: $('.show-filter-btn'), | 17 | showFilterBtn: $('.show-filter-btn'), |
@@ -204,9 +205,11 @@ class ConponController extends Page { | @@ -204,9 +205,11 @@ class ConponController extends Page { | ||
204 | 205 | ||
205 | // 筛选框控制按钮状态、优惠券码兑换输入框状态管理 | 206 | // 筛选框控制按钮状态、优惠券码兑换输入框状态管理 |
206 | if (itemClicked.hasClass('no-used')) { | 207 | if (itemClicked.hasClass('no-used')) { |
208 | + this.view.page.addClass('cpage-padding284').removeClass('cpage-padding194'); | ||
207 | this.view.showFilterBtn.addClass('active'); | 209 | this.view.showFilterBtn.addClass('active'); |
208 | this.view.exchangeBox.removeClass('hide'); | 210 | this.view.exchangeBox.removeClass('hide'); |
209 | } else { | 211 | } else { |
212 | + this.view.page.addClass('cpage-padding194').removeClass('cpage-padding284'); | ||
210 | this.view.showFilterBtn.removeClass('icon-up').addClass('icon-down'); | 213 | this.view.showFilterBtn.removeClass('icon-up').addClass('icon-down'); |
211 | this.view.showFilterBtn.removeClass('active'); | 214 | this.view.showFilterBtn.removeClass('active'); |
212 | this.view.exchangeBox.addClass('hide'); | 215 | this.view.exchangeBox.addClass('hide'); |
@@ -8,9 +8,15 @@ body { | @@ -8,9 +8,15 @@ body { | ||
8 | left: 0; | 8 | left: 0; |
9 | } | 9 | } |
10 | 10 | ||
11 | -.coupon-new-page { | 11 | +.cpage-padding284 { |
12 | + padding-top: 284px; | ||
13 | +} | ||
14 | + | ||
15 | +.cpage-padding194 { | ||
12 | padding-top: 194px; | 16 | padding-top: 194px; |
17 | +} | ||
13 | 18 | ||
19 | +.coupon-new-page { | ||
14 | .filter-box { | 20 | .filter-box { |
15 | width: 100%; | 21 | width: 100%; |
16 | height: 88px; | 22 | height: 88px; |
@@ -21,7 +27,7 @@ body { | @@ -21,7 +27,7 @@ body { | ||
21 | position: fixed; | 27 | position: fixed; |
22 | top: 106px; | 28 | top: 106px; |
23 | left: 0; | 29 | left: 0; |
24 | - z-index: 2; | 30 | + z-index: 3; |
25 | 31 | ||
26 | .filter-btn-box { | 32 | .filter-btn-box { |
27 | flex: 1; | 33 | flex: 1; |
@@ -54,7 +60,7 @@ body { | @@ -54,7 +60,7 @@ body { | ||
54 | position: fixed; | 60 | position: fixed; |
55 | top: 192px; | 61 | top: 192px; |
56 | left: 0; | 62 | left: 0; |
57 | - z-index: 2; | 63 | + z-index: 3; |
58 | 64 | ||
59 | button { | 65 | button { |
60 | width: 150px; | 66 | width: 150px; |
@@ -77,6 +83,10 @@ body { | @@ -77,6 +83,10 @@ body { | ||
77 | height: 90px; | 83 | height: 90px; |
78 | padding: 16px 20px; | 84 | padding: 16px 20px; |
79 | background-color: #fff; | 85 | background-color: #fff; |
86 | + position: fixed; | ||
87 | + top: 194px; | ||
88 | + left: 0; | ||
89 | + z-index: 2; | ||
80 | 90 | ||
81 | input { | 91 | input { |
82 | width: 570px; | 92 | width: 570px; |
-
Please register or login to post a comment