Authored by 郭成尧

Merge branch 'feature/coupon' into release/180420

@@ -21,9 +21,9 @@ @@ -21,9 +21,9 @@
21 {{#each ./coupons}} 21 {{#each ./coupons}}
22 <div class="coupon{{#isEqualOr is_selected_support 'N'}} no-support-selected{{/isEqualOr}}" data-code="{{coupon_code}}"> 22 <div class="coupon{{#isEqualOr is_selected_support 'N'}} no-support-selected{{/isEqualOr}}" data-code="{{coupon_code}}">
23 <div class="coupon-left{{#isEqualOr is_selected_support 'Y'}} 23 <div class="coupon-left{{#isEqualOr is_selected_support 'Y'}}
24 - {{#isEqualOr coupon_type '1' '3' '8'}} coupon-left-activity{{/isEqualOr}}  
25 - {{#isEqualOr coupon_type '5'}} coupon-left-freight{{/isEqualOr}}  
26 - {{#isEqualOr coupon_type '6'}} coupon-left-shop{{/isEqualOr}} 24 + {{#isEqualOr catalog 200}} coupon-left-activity{{/isEqualOr}}
  25 + {{#isEqualOr catalog 300}} coupon-left-freight{{/isEqualOr}}
  26 + {{#isEqualOr catalog 100}} coupon-left-shop{{/isEqualOr}}
27 {{/isEqualOr}}"> 27 {{/isEqualOr}}">
28 <p class="value"> 28 <p class="value">
29 <span>{{coupon_value_str}}</span> 29 <span>{{coupon_value_str}}</span>
@@ -59,7 +59,7 @@ @@ -59,7 +59,7 @@
59 {{/if}} 59 {{/if}}
60 {{#each ./coupons}} 60 {{#each ./coupons}}
61 <div class="coupon"> 61 <div class="coupon">
62 - <div class="coupon-left{{#isEqualOr coupon_type '1' '3' '8'}} coupon-left-activity{{/isEqualOr}}{{#isEqualOr coupon_type '5'}} coupon-left-freight{{/isEqualOr}}{{#isEqualOr coupon_type '6'}} coupon-left-shop{{/isEqualOr}}"> 62 + <div class="coupon-left{{#isEqualOr catalog 200}} coupon-left-activity{{/isEqualOr}}{{#isEqualOr catalog 300}} coupon-left-freight{{/isEqualOr}}{{#isEqualOr catalog 100}} coupon-left-shop{{/isEqualOr}}">
63 <p class="value"> 63 <p class="value">
64 <span>{{coupon_value_str}}</span> 64 <span>{{coupon_value_str}}</span>
65 </p> 65 </p>
@@ -68,7 +68,7 @@ @@ -68,7 +68,7 @@
68 <div class="coupon-right"> 68 <div class="coupon-right">
69 <div class="info"> 69 <div class="info">
70 <p class="title"> 70 <p class="title">
71 - <span class="{{#isEqualOr coupon_type '1' '3' '8'}} type-activity{{/isEqualOr}}{{#isEqualOr coupon_type '5'}} type-freight{{/isEqualOr}}{{#isEqualOr coupon_type '6'}} type-shop{{/isEqualOr}}">[{{catalog_name}}]</span> {{coupon_name}}</p> 71 + <span class="{{#isEqualOr catalog 200}} type-activity{{/isEqualOr}}{{#isEqualOr catalog 300}} type-freight{{/isEqualOr}}{{#isEqualOr catalog 100}} type-shop{{/isEqualOr}}">[{{catalog_name}}]</span> {{coupon_name}}</p>
72 <p class="time">{{coupon_validity}}</p> 72 <p class="time">{{coupon_validity}}</p>
73 <p class="desc unusable-desc">{{desc}}</p> 73 <p class="desc unusable-desc">{{desc}}</p>
74 </div> 74 </div>
1 <section class="coupon-section" data-code="{{coupon_code}}" data-id="{{coupon_id}}"> 1 <section class="coupon-section" data-code="{{coupon_code}}" data-id="{{coupon_id}}">
2 <div class="coupon{{#isEqualOr is_overtime 'Y'}} coupon-overtime{{/isEqualOr}}{{#if is_used}} coupon-used{{/if}}"> 2 <div class="coupon{{#isEqualOr is_overtime 'Y'}} coupon-overtime{{/isEqualOr}}{{#if is_used}} coupon-used{{/if}}">
3 - <div class="coupon-left{{#unless usedOrOvertime}}{{#isEqualOr coupon_type '1' '3' '8'}} coupon-left-activity{{/isEqualOr}}{{#isEqualOr coupon_type '5'}} coupon-left-freight{{/isEqualOr}}{{#isEqualOr coupon_type '6'}} coupon-left-shop{{/isEqualOr}}{{/unless}}"> 3 + <div class="coupon-left{{#unless usedOrOvertime}}{{#isEqualOr catalog 200}} coupon-left-activity{{/isEqualOr}}{{#isEqualOr catalog 300}} coupon-left-freight{{/isEqualOr}}{{#isEqualOr catalog 100}} coupon-left-shop{{/isEqualOr}}{{/unless}}">
4 <p class="value"><span>{{coupon_value_str}}</span></p> 4 <p class="value"><span>{{coupon_value_str}}</span></p>
5 {{#if use_rule}} 5 {{#if use_rule}}
6 <p class="threshold">{{use_rule}}</p> 6 <p class="threshold">{{use_rule}}</p>
@@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
8 </div> 8 </div>
9 <div class="coupon-right"> 9 <div class="coupon-right">
10 <p class="title"> 10 <p class="title">
11 - <span class="{{#isEqualOr coupon_type '1' '3'}}type-activity{{/isEqualOr}}{{#isEqualOr coupon_type '5'}}type-freight{{/isEqualOr}}{{#isEqualOr coupon_type '6'}}type-shop{{/isEqualOr}}">[{{catalog_name}}]</span> {{coupon_name}}</p> 11 + <span class="{{#isEqualOr catalog 200}}type-activity{{/isEqualOr}}{{#isEqualOr catalog 300}}type-freight{{/isEqualOr}}{{#isEqualOr catalog 100}}type-shop{{/isEqualOr}}">[{{catalog_name}}]</span> {{coupon_name}}</p>
12 <p class="time">{{coupon_validity}}</p> 12 <p class="time">{{coupon_validity}}</p>
13 {{#if notes}} 13 {{#if notes}}
14 <p> 14 <p>
@@ -301,7 +301,7 @@ $yohoPage.on('touchstart', '.tap-hightlight', function() { @@ -301,7 +301,7 @@ $yohoPage.on('touchstart', '.tap-hightlight', function() {
301 $(this).removeClass('highlight'); 301 $(this).removeClass('highlight');
302 }); 302 });
303 303
304 -$('.nav-home').on('touchstart', function(e) { 304 +$('.new-nav-home').on('touchstart', function(e) {
305 $('.homebuttom').toggleClass('hide'); 305 $('.homebuttom').toggleClass('hide');
306 e.preventDefault(); 306 e.preventDefault();
307 e.stopPropagation(); 307 e.stopPropagation();