Authored by zhangxiaoru

优惠券

... ... @@ -92,7 +92,7 @@
{{#if isOrdinaryCart}}
<li class="coupon">
<a href="{{#if isLimit}}javascript:void(0);{{else}}/cart/index/new/selectCoupon{{/if}}">
<span class="title">优惠券</span>
<span class="title">优惠券/优惠券码</span>
{{# coupon}}
{{#if couponName}}
<span class="used coupon-use" data-name="{{couponName}}">
... ... @@ -100,11 +100,18 @@
<i class="iconfont">&#xe614;</i>
</span>
{{^}}
{{#unless isLimit}}
<span class="coupon-count">
{{#if count}}
{{count}}张可用
{{else}}
无可用
{{/if}}
<i class="iconfont">&#xe614;</i>
</span>
{{/unless}}
<span class="not-used coupon-use">
{{#if isLimit}}该商品不可使用优惠券{{else}}未使用{{/if}}
{{#if isLimit}}该商品不可使用优惠券{{/if}}
<i class="iconfont">&#xe614;</i>
</span>
{{/if}}
... ... @@ -198,4 +205,4 @@
</div>
{{/ orderEnsure}}
</div>
{{> rich_tip}}
\ No newline at end of file
{{> rich_tip}}
... ...
... ... @@ -460,12 +460,17 @@
}
}
.title {
font-size: 34px;
color: #444;
}
.coupon-count {
padding: 5px 15px;
background: #d0021b;
color: #fff;
border-radius: 10px;
margin-left: 20px;
color: #b0b0b0;
font-size: 28px;
float: right;
min-width: 40px;
}
.coupon-use {
... ...