<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>{$title}</title>
<meta name="keywords" content="{$keywords}" />
<meta name="description" content="{$description}" />
<meta name="generator" content="openwbs {$version}" />
<meta name="author" content="openwbs team" />
<meta name="copyright" content="2008-2020 OpenWBS Inc." />
<!--#include file="include.css.html"-->
<link rel="stylesheet" href="../css/ow.shop.coupon.css" />
</head>
<body>
<!--头部-->
<!--#include file="include.header.html"-->

<!--主内容区-->
<div class="ow-coupon-detail">
    <div class="wrapper">
        <h1 class="coupon-name">{$coupon:coupon_name}</h1>
        <table border="0" cellpadding="0" cellspacing="0"><tr>
        <td valign="top">
            <div class="coupon-item" name="coupon" coupon_type="{$coupon:coupon_type}" coupon_rule_type="{$coupon:coupon_rule_type}">
                <dl>
                    <dt>
                        <div class="coupon-money"><em class="moneysb">{$moneysb}</em><span class="money">{$coupon:coupon_money}</span><span class="coupon-name">优惠券</span></div>
                        {if:OW.trim("{$coupon:coupon_type}")="c2"}
                        <div class="point" name="coupon_exchange_point"><span>需要 {$coupon:coupon_exchange_point} 积分兑换</span></div>
                        {/if}
                        <div class="coupon-button-section">
                            <a class="btn-get-coupon" name="get_coupon" coupon_id="{$coupon:coupon_id}" href="javascript:;">{if:OW.trim("{$coupon:coupon_type}")="c2"}兑换领取{else}立即领取{/if}</a>
                        </div>
                    </dt>
                    <dd class="detail">
                        <div class="get-time" name="get_time" is_get_timelimit="{$coupon:is_get_timelimit}">
                            <div class="span-dt">领取时间</div>
                            <div class="span-dd" name="get_time_show"><%=OW.formatdatetime("{$coupon:get_starttime}",0)%> 至 <%=OW.formatdatetime("{$coupon:get_endtime}",0)%></div>
                        </div>
                        <div class="use-time" name="use_time" is_use_timelimit="{$coupon:is_use_timelimit}">
                            <div class="span-dt">使用时间</div>
                            <div class="span-dd" name="use_time_show"><%=OW.formatdatetime("{$coupon:use_starttime}",0)%> 至 <%=OW.formatdatetime("{$coupon:use_endtime}",0)%></div>
                        </div>
                        <div class="use-min-money" use_min_money="{$coupon:use_min_money}">
                            <div class="span-dt">优惠条件</div>
                            <div class="span-dd">订单满 {$coupon:use_min_money} 元可使用</div>
                        </div>
                        <div class="use-goods-rule" coupon_rule_type="{$coupon:coupon_rule_type}">
                            <div class="span-dt">可用商品</div>
                            <div class="span-dd">{$coupon:coupon_goods}</div>
                        </div>
                        
                    </dd>
                </dl>
            </div>
        </td>
        <td valign="top">
            <div class="coupon-desc">
                <div class="header">说明</div>
                <div class="section">{$coupon:desc}</div>
            </div>
        </td>
        </tr></table>
    </div>
    <script type="text/javascript">
    $(window).ready(function(){
		var $coupon = $("div[name='coupon']");
		$coupon.find("a[name='get_coupon']").click(function(){
			OW.coupon.get($(this).attr("coupon_id"));
		});
		$("div[name='get_time']").each(function(){
			if($(this).attr("is_get_timelimit")=="0"){
				$(this).hide();
				$(this).find("[name='get_time_show']").html('不限');
			};
		});
		$("div[name='use_time']").each(function(){
			if($(this).attr("is_use_timelimit")=="0"){
				$(this).hide();
				$(this).find("[name='use_time_show']").html('不限');
			};
		});
	});
    </script>
</div>

<!--底部-->
<!--#include file="include.footer.html"-->
</body>
</html>
