<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-touch-fullscreen" content="yes" />
<meta name="format-detection" content="telephone=no"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="format-detection" content="telephone=no" />
<meta name="msapplication-tap-highlight" content="no" />
<meta name="viewport" content="initial-scale=1,maximum-scale=1,minimum-scale=1" />
<title>订单详情</title>
<link rel="stylesheet" type="text/css" href="../../css/base.css">
<link rel="stylesheet" type="text/css" href="../../css/nctouch_member.css">
</head>
<body>
<header id="header" class="fixed">
  <div class="header-wrap">
    <div class="header-l"> <a href="javascript:history.go(-1)"> <i class="back"></i> </a> </div>
    <div class="header-title">
      <h1>订单详情</h1>
    </div>
    <div class="header-r"> <a id="header-nav" href="javascript:void(0);"><i class="more"></i><sup></sup></a> </div>
  </div>
  <div class="nctouch-nav-layout">
    <div class="nctouch-nav-menu"> <span class="arrow"></span>
      <ul>
        <li><a href="../../index.html"><i class="home"></i>首页</a></li>
        <li><a href="../search.html"><i class="search"></i>搜索</a></li>
        <li><a href="javascript:void(0);"><i class="message"></i>消息<sup></sup></a></li>
      </ul>
    </div>
  </div>
</header>
<div class="nctouch-main-layout mb20">
  <div class="nctouch-order-list" id="order-info-container">
    <ul>
    </ul>
  </div>
</div>
<footer id="footer"></footer>
<script type="text/html" id="order-info-tmpl">
	<div class="nctouch-oredr-detail-block">
		<h3><i class="orders"></i>交易状态</h3>
		<div class="order-state"><%=state_desc%></div>
		<%if (order_tips != ''){%><div class="info"><%=order_tips%></div><%}%>
	</div>
	<%if(if_deliver){%>
	<div class="nctouch-oredr-detail-delivery">
		<a href="<%=WapSiteUrl%>/tmpl/member/order_delivery.html?order_id=<%=order_id%>">
			<span class="time-line">
				<i></i>
			</span>
			<div class="info">
				<p id="delivery_content"></p>
				<time id="delivery_time"></time>
			</div>
			<span class="arrow-r"></span>
		</a>
	</div>
	<%}%>
	<div class="nctouch-oredr-detail-block mt5">
		<div class="nctouch-oredr-detail-add">
			<i class="icon-add"></i>
			<dl>
        		<dt>收货人：<span><%=reciver_name%></span><span><%=reciver_phone%></span></dt>
				<dd>收货地址：<%=reciver_addr%></dd>
			</dl>
		</div>
	</div>
	<%if (order_message != ''){%>
	<div class="nctouch-oredr-detail-block">
		<h3><i class="msg"></i>买家留言</h3>
		<div class="info"><%=order_message%></div>
	</div>
	<%}%>
	<%if (invoice != ''){%>
	<div class="nctouch-oredr-detail-block">
		<h3><i class="invoice"></i>发票信息</h3>
		<div class="info"><%=invoice%></div>
	</div>
	<%}%>
	<%if (payment_name != ''){%>
	<div class="nctouch-oredr-detail-block">
		<h3><i class="pay"></i>付款方式</h3>
		<div class="info"><%=payment_name%></div>
	</div>
	<%}%>
	<div class="nctouch-order-item mt5">
		<div class="nctouch-order-item-head">
			<%if (ownmall){%>
			<a class="store"><i class="icon"></i><%=store_name%></a>
			<%}else{%>
				<a href="<%=WapSiteUrl%>/tmpl/store.html?store_id=<%=store_id%>" class="store"><i class="icon"></i><%=store_name%><i class="arrow-r"></i></a>
			<%}%>
		</div>
		<div class="nctouch-order-item-con">
			<%for(i=0; i<goods_list.length; i++){%>
			<div class="goods-block detail">
				<a href="<%=WapSiteUrl%>/tmpl/product_detail.html?goods_id=<%=goods_list[i].goods_id%>">
				<div class="goods-pic">
					<img src="<%=goods_list[i].image_url%>">
				</div>
				<dl class="goods-info">
					<dt class="goods-name"><%=goods_list[i].goods_name%></dt>
					<dd class="goods-type"><%=goods_list[i].goods_spec%></dd>
				</dl>
				<div class="goods-subtotal">
					<span class="goods-price">￥<em><%=goods_list[i].goods_price%></em></span>
					<span class="goods-num">x<%=goods_list[i].goods_num%></span>
				</div>
				<% if (goods_list[i].refund == 1) {%>
				<a href="javascript:void(0)" order_id="<%=order_id%>" order_goods_id="<%=goods_list[i].rec_id%>" class="goods-refund">退款</a>
				<a href="javascript:void(0)" order_id="<%=order_id%>" order_goods_id="<%=goods_list[i].rec_id%>" class="goods-return">退货</a>
				<%}%>
			</a>
			</div>
			<%}%>
			<% if (zengpin_list.length > 0){%>
				<div class="goods-gift">
				<%for(i=0; i<zengpin_list.length; i++){%>
					<span><em>赠品</em><%=zengpin_list[i].goods_name%> x <%=zengpin_list[i].goods_num%></span>
				<%}%>
				</div>
			<%}%>
			
			<div class="goods-subtotle">
				<%if (promotion.length > 0){%>
				<dl>
					<dt>优惠</dt>
					<dd><%for (var ii in promotion){%><span><%=promotion[ii][1]%></span><%}%></dd>
				</dl>
				<%}%>
				<dl>
					<dt>运费</dt>
					<dd>￥<em><%=shipping_fee%></em></dd>
				</dl>
				<dl class="t">
					<dt>实付款（含运费）</dt>
					<dd>￥<em><%=real_pay_amount%></em></dd>
				</dl>
			</div>
		</div>
		<div class="nctouch-order-item-bottom">
			<span><a href="chat_info.html?t_id=<%=store_member_id%>"><i class="im"></i>联系客服</a></span>
			<span><a tel="<%=store_phone%>"><i class="tel"></i>拨打电话</a></span>
		</div>
	</div>
	<div class="nctouch-oredr-detail-block mt5">
		<ul class="order-log">
			<li>订单编号：<%=order_sn%></li>
			<li>创建时间：<%=add_time%></li>
			<% if(payment_time){%>
			<li>付款时间：<%=payment_time%></li>
			<%}%>
			<% if(shipping_time){%>
			<li>发货时间：<%=shipping_time%></li>
			<%}%>
			<% if(finnshed_time){%>
			<li>完成时间：<%=finnshed_time%></li>
			<%}%>
		</ul>
	</div>
	<div class="nctouch-oredr-detail-bottom">
	<% if (if_lock) {%>
	<p>退款/退货中...</p>
	<% } %>
	<% if (if_buyer_cancel) {%>
	<a href="javascript:void(0)" order_id="<%=order_id%>" class="btn cancel-order">取消订单</a>
	<% } %>
	<% if (if_refund_cancel) {%>
	<a href="javascript:void(0)" order_id="<%=order_id%>" class="btn all_refund_order">订单退款</a>
	<% } %>
	<% if (if_deliver) { %>
	<a href="javascript:void(0)" order_id="<%=order_id%>" class="btn viewdelivery-order">查看物流</a>
	<%}%>
	<% if (if_receive){ %>
	<a href="javascript:void(0)" order_id="<%=order_id%>" class="btn key sure-order">确认收货</a>
	<% } %>
	<% if (if_evaluation) {%>
	<a href="javascript:void(0)" order_id="<%=order_id%>" class="btn key evaluation-order">评价订单</a>
	<% } %>
	<% if (if_evaluation_again){ %>
	<a href="javascript:void(0)" order_id="<%=order_id%>" class="btn evaluation-again-order">追加评价</a>
	<% } %>
	</div>
</script> 
<script type="text/javascript" src="../../js/zepto.min.js"></script> 
<script type="text/javascript" src="../../js/template.js"></script> 
<script type="text/javascript" src="../../js/config.js"></script> 
<script type="text/javascript" src="../../js/common.js"></script> 
<script type="text/javascript" src="../../js/simple-plugin.js"></script> 
<script type="text/javascript" src="../../js/tmpl/order_detail.js"></script>
</body>
</html>