Authored by 郝肖肖

去除已使用,过期提示

@@ -29,6 +29,7 @@ const couponData = (params) => { @@ -29,6 +29,7 @@ const couponData = (params) => {
29 } 29 }
30 ); 30 );
31 } else if (status1) { 31 } else if (status1) {
  32 + delete elem.overState;
32 elem.employbg = true; 33 elem.employbg = true;
33 } 34 }
34 return elem; 35 return elem;
1 {{#each list}} 1 {{#each list}}
2 -<div class="coupon-group" data-coupon-id={{couponId}}>  
3 - <div class="coupon-header">{{couponDetailInfomation}}</div>  
4 - <div class="coupon-content">  
5 - <div class="coupon-content-group1">  
6 - <p class="coupon-money">{{couponValue}}</p>  
7 - <p>{{rule4ShortName}}</p>  
8 - </div>  
9 - <div class="coupon-content-group2">  
10 - <div class="coupon-content-group2-table">  
11 - <div>  
12 - {{couponValidity}}  
13 - {{#if overState}}<span class="coupon-soon-expire">{{overState}}</span>{{/if}}  
14 - </div>  
15 - <div>  
16 - <div class="left down info-btn">详细信息<i class="iconfont"></i></div>  
17 - <div class="right">  
18 - {{#if employbg}}  
19 - <span class="employ"></span>  
20 - {{else if bestowLink}}  
21 - <a href="javascript:void(0);" data-link="{{bestowLink}}" class="btn">立即使用</a>  
22 - {{/if}} 2 + <div class="coupon-group" data-coupon-id={{couponId}}>
  3 + <div class="coupon-header">{{couponDetailInfomation}}</div>
  4 + <div class="coupon-content">
  5 + <div class="coupon-content-group1">
  6 + <p class="coupon-money">{{couponValue}}</p>
  7 + <p>{{rule4ShortName}}</p>
  8 + </div>
  9 + <div class="coupon-content-group2">
  10 + <div class="coupon-content-group2-table">
  11 + <div>
  12 + {{couponValidity}}
  13 + {{#if overState}}<span class="coupon-soon-expire">{{overState}}</span>{{/if}}
  14 + </div>
  15 + <div>
  16 + <div class="left down info-btn">详细信息<i class="iconfont"></i></div>
  17 + <div class="right">
  18 + {{#if employbg}}
  19 + <span class="employ"></span>
  20 + {{else if bestowLink}}
  21 + <a href="javascript:void(0);" data-link="{{bestowLink}}" class="btn">立即使用</a>
  22 + {{/if}}
  23 + </div>
23 </div> 24 </div>
24 </div> 25 </div>
25 </div> 26 </div>
26 </div> 27 </div>
27 - </div>  
28 - <div class="coupon-footer hide">  
29 - {{#if isNoLimit}}  
30 - <p>全场通用</p>  
31 - {{/if}} 28 + <div class="coupon-footer hide">
  29 + {{#if isNoLimit}}
  30 + <p>全场通用</p>
  31 + {{/if}}
32 32
33 - {{#if brandNameLimits}}  
34 - <p>限品牌:{{brandNameLimits}}</p>  
35 - {{/if}} 33 + {{#if brandNameLimits}}
  34 + <p>限品牌:{{brandNameLimits}}</p>
  35 + {{/if}}
36 36
37 - {{#if sortNameLimits}}  
38 - <p>限品类:{{sortNameLimits}}</p>  
39 - {{/if}} 37 + {{#if sortNameLimits}}
  38 + <p>限品类:{{sortNameLimits}}</p>
  39 + {{/if}}
40 40
41 - <p>特例商品(秒杀、限定、境外、预售{{#if isDiscount}}、3折以下{{/if}}{{#if isDiscount}}、限量{{/if}}等)暂不支持使用优惠券。</p>  
42 - {{#if explains}}<p>说明:{{explains}}</p>{{/if}} 41 + <p>特例商品(秒杀、限定、境外、预售{{#if isDiscount}}、3折以下{{/if}}{{#if isDiscount}}、限量{{/if}}等)暂不支持使用优惠券。</p>
  42 + {{#if explains}}<p>说明:{{explains}}</p>{{/if}}
  43 + </div>
43 </div> 44 </div>
44 -</div>  
45 {{/each}} 45 {{/each}}
@@ -45,7 +45,7 @@ @@ -45,7 +45,7 @@
45 .coupon-content { 45 .coupon-content {
46 border-radius: 0 0 10px 10px; 46 border-radius: 0 0 10px 10px;
47 height: 140px; 47 height: 140px;
48 - border-top: 1px dashed #e53333; 48 + border-top: 2px dashed #e53333;
49 display: table; 49 display: table;
50 padding: 15px 0; 50 padding: 15px 0;
51 background-color: #f06a6b; 51 background-color: #f06a6b;
@@ -129,7 +129,7 @@ @@ -129,7 +129,7 @@
129 display: block; 129 display: block;
130 z-index: 2; 130 z-index: 2;
131 right: 37px; 131 right: 37px;
132 - margin-top: -90px; 132 + margin-top: -95px;
133 background-image: resolve("home/employ.png"); 133 background-image: resolve("home/employ.png");
134 background-size: cover; 134 background-size: cover;
135 } 135 }
@@ -139,7 +139,7 @@ @@ -139,7 +139,7 @@
139 .coupon-footer { 139 .coupon-footer {
140 background-color: #f06a6b; 140 background-color: #f06a6b;
141 padding: 20px; 141 padding: 20px;
142 - font-size: 20px; 142 + font-size: 18px;
143 border-radius: 10px; 143 border-radius: 10px;
144 color: #fff; 144 color: #fff;
145 border-top: 1px dashed #fff; 145 border-top: 1px dashed #fff;