<!--{assign var="menu_id" value="cp"}-->
<!--{include file="<!--{$oetplpath}-->block_header.tpl"}-->
<script src="<!--{$wapskin}-->js/order.js"></script>
<div class="oe_ntop">
  <i class="iconfont" onclick="goBack();">&#xe616;</i>
  <p>订单详情</p>
</div>
<div class="oe_order_detail">
  <dl class="dl_2">
  	<dt></dt>
  	<dd>
	  <!--{if $order.orderstatus == '-1'}--> 
	  订单已取消
	  <!--{elseif $order.orderstatus == '1'}--> 
	  待付款 
	  <!--{elseif $order.orderstatus == '2'}--> 
	  <!--{if $order.shipstatus == '1'}--> 
	  已付款，待发货
	  <!--{elseif $order.shipstatus == '2'}--> 
	  已发货，待收货
	  <!--{elseif $order.shipstatus == '3'}--> 
	  已确认收货
	  <!--{/if}--> 
	  <!--{elseif $order.orderstatus == '3'}--> 
	  <!--{elseif $order.orderstatus == '10'}--> 
	  交易完成 
	  <!--{/if}--> 
    </dd>
  </dl>

  <dl class="dl_1">
  	<dt></dt>
  	<dd>
     <p>
	   买家：<!--{$login.user.username}-->；
	   收货人：<!--{if !empty($order.consignee)}--><!--{$order.consignee}--><!--{else}-->--<!--{/if}-->
     </p>
     <p>
	     收货地址：<!--{if !empty($order.address)}--><!--{$order.address}--><!--{else}-->--<!--{/if}-->
         <!--{if !empty($order.zipcode)}-->
         &nbsp;&nbsp;&nbsp;邮编：<!--{$order.zipcode}-->
         <!--{/if}-->
     </p>
     <p>联系电话：<!--{if !empty($order.mobile)}--><!--{$order.mobile}--><!--{else}-->--<!--{/if}--></p>
    </dd>
  </dl>
  
  <div class="oe_orderlistcn">
	<dl>
	  <dt>订 单 号： <!--{$order.ordersn}--><!--<span>这里是状态</span>--></dt>
	  <dd>
		<ul>
		  <!--{assign var="goodslist" value=vo_list("mod={ordergoods} where={v.orderid='<!--{$order.orderid}-->'}")}-->
		  <!--{foreach $goodslist as $val}-->
		  <li>
		    <img src="<!--{$val.thumbimg}-->" />
			<div class="title">
			  <h3><!--{$val.goodsname}--></h3>
			  <p>竞拍价：¥<!--{number_format($val.bidprice, 2)}--></p>
		    </div>
		    <div class="price">
			  <b>¥<!--{number_format($val.buydealprice, 2)}--></b>
			</div>
		  </li>
		  <!--{/foreach}-->
		</ul>
		<!--<div class="button">
		<span class="span_1">删除订单</span>
		<span class="span_2">付款</span>
		<span class="span_3">预留</span>
		</div>-->
	  </dd>
	</dl>
    
	<div class="payfor">
	  <p class="p_1">
		<span>订单总额：</span>
		<label>¥<!--{number_format($order.amount, 2)}--></label>
	  </p>
	  <p class="p_2">
		<span>含运费：</span>
		<label>¥<!--{number_format($order.shipfee, 2)}--></label>
	  </p>
	</div>


	<div class="payfor_1">
	  <p>创建时间：<!--{$order.addtime|date_format:"%Y-%m-%d %H:%M:%S"}--></p>
	  <p>
	    付款时间：<!--{if $order.paytime > 0}-->
		<!--{$order.paytime|date_format:"%Y-%m-%d %H:%M:%S"}-->
		<!--{else}-->
		--
		<!--{/if}-->
	  </p>
	  <p>
	    发货时间：<!--{if $order.shiptime > 0}-->
		<!--{$order.shiptime|date_format:"%Y-%m-%d %H:%M:%S"}-->
		<!--{else}-->
		--
		<!--{/if}-->
	  </p>
	  <p>
	    收货时间：<!--{if $order.receivetime > 0}-->
	    <!--{$order.receivetime|date_format:"%Y-%m-%d %H:%M:%S"}-->
	    <!--{else}-->
	    --
	    <!--{/if}-->
	  </p>
	</div>

  </div>
</div>


<div class="oe_order_botkong"></div>
<div class="oe_order_button" style="text-align: right;">
  
  <!--{if $order.orderstatus=='1'}--> 
  <span class="span_3" f="but_payonline" data-id="<!--{$order.orderid}-->">在线支付</span>
  <span class="span_2" f="confirm_payment" data-id="<!--{$order.orderid}-->" data-sn="<!--{$order.ordersn}-->" data-money="<!--{$order.amount}-->">余额支付</span>
  <!--{/if}-->

  <!--{if $order.orderstatus=='2' && $order.shipstatus=='2'}-->
  <span class="span_1" f="confirm_receive_order" data-id="<!--{$order.orderid}-->">确认收货</span>
  <!--{/if}-->

</div>



<input type="hidden" name="orderid" id="orderid" value="" />
<div id="varpop_shade" class="varpop-shade"></div>
<div class="confirm-layout" id="receive_box" style="display:none;">
  <h2>确定收货吗？</h2>
  <p>确定要收货吗？一旦确定不可以恢复</p>
  <div class="confirm-list">
    <div class="confirm-l" f="close_var" data-id="receive_box">取消</div>
	<div class="confirm-r" f="but_receive_order">确定</div>
	<div class="clear"></div>
  </div>
</div>

<div class="confirm-layout" id="cancel_box" style="display:none;">
  <h2>确定取消订单吗？</h2>
  <p>确定要取消该订单吗吗？<br />一旦取消不可以恢复</p>
  <div class="confirm-list">
    <div class="confirm-l" f="close_var" data-id="cancel_box">取消</div>
	<div class="confirm-r" f="but_cancel_order">确定</div>
	<div class="clear"></div>
  </div>
</div>


<div class="bottom_box" id="var_order_box" style="display:none;">
  <div class="bottom_clickbox order_cancel_box" style="cursor:pointer;"></div>
  <div class="bottom_boxcn">
    <dl class="text">
	  <dt>订 单 号：</dt>
	  <dd id="tips_ordersn">--</dd>
    </dl>
	<dl class="text">
	  <dt>应付金额：</dt>
	  <dd id="tips_money">--</dd>
    </dl>
	<dl class="input">
	  <dt>支付密码：</dt>
	  <dd><input type="password" name="payword" id="payword" placeholder="请输入支付密码" /></dd>
    </dl>
    <div class="bottom_btn">
      <p id="tips_payment"></p>
      <span class="span_1" f="but_payment" style="cursor:pointer;">确定付款</span>
	</div>
  </div>
</div>


</body>
</html>