<!doctype html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
         <title>买家中心</title>
         <link rel="stylesheet" href="__ROOT__/Apps/Home/View/{$WST_STYLE}/css/common.css" />
         <link rel="stylesheet" href="__ROOT__/Apps/Home/View/{$WST_STYLE}/css/user.css">
         <style>
         	.wst-odetal-box{padding:10px;text-align:center;background-color:#ffffff;}
         	.wst-tab{border-collapse: collapse; }
         	.wst-tab-cpt{text-align:left;height:30px;font-weight:bold;}
         	.wst-tab tr{height:30px;}
         	.wst-tab tr td{border:1px solid #eeeeee;}
         	.wst-td-title{width:100px;text-align:right;}
         	.wst-td-content{padding-left:6px;text-align:left;}
         	.wst-align-center{text-align:center;}
         </style>
	     
    </head>
    
    <body style="background-color:#f5f5f5;">
        <div style="text-align:center;">
        	<div class="wst-odetal-box">
        	<table cellspacing="0" cellpadding="0" class="wst-tab" width="920" style="border:1px solid #eeeeee;margin:0 auto;">
        		<caption class="wst-tab-cpt">日志信息
        		<span style="color:blue;float:right;">
        			<if condition='($orderInfo["orderStatus"] eq -3) OR ($orderInfo["orderStatus"] eq -4)'>
        			拒收<if condition='$orderInfo["isRefund"] eq 1'>(已退款)<else/>(未退款)</if>
			        <elseif condition='$orderInfo["order"]["orderStatus"] eq -2'/>未付款
			        <elseif condition='$orderInfo["order"]["orderStatus"] eq -1'/>已取消
			        <elseif condition='$orderInfo["order"]["orderStatus"] eq 0'/>未受理
			        <elseif condition='$orderInfo["order"]["orderStatus"] eq 1'/>已受理
			        <elseif condition='$orderInfo["order"]["orderStatus"] eq 2'/>打包中
			        <elseif condition='$orderInfo["order"]["orderStatus"] eq 3'/>配送中
			        <elseif condition='$orderInfo["order"]["orderStatus"] eq 4'/>已到货
			        <elseif condition='$orderInfo["order"]["orderStatus"] eq 5'/>确认已收货
			        </if>
        		</caption>
        		</span>
        		<tbody>
	        		<volist name="orderInfo['logs']" id="log" key='key1'>
	        		<tr>
	        			<td width="200">{$log["logTime"]}</td>
	        			<td class="wst-td-content">{$log["logContent"]}</td>
	        		</tr>
	        		</volist>
        		</tbody>
        	</table>
        	</div>
        	<br/><br/>
        	<div class="wst-odetal-box">
        	<table cellspacing="0" cellpadding="0" class="wst-tab" width="920" style="border:1px solid #eeeeee;margin:0 auto;">
        		<caption class="wst-tab-cpt">订单信息</caption>
        		<tbody>
	        		<tr>
	        			<td class="wst-td-title">订单编号：</td>
	        			<td class="wst-td-content">{$orderInfo["order"]["orderNo"]}
	        				<if condition='$orderInfo["orderFrom"] eq 2'>
					 		<img src="__ROOT__/Apps/Home/View/{$WST_STYLE}/images/tuan.png" height="30" />
					 		</if>
	        			</td>
	        		</tr>
	        		<tr>
	        			<td class="wst-td-title">支付方式：</td>
	        			<td class="wst-td-content">{$orderInfo["order"]["payType"]==0?"货到付款":"在线支付"}</td>
	        		</tr>
	        		<tr>
	        			<td class="wst-td-title">配送方式：</td>
	        			<td class="wst-td-content">
	        				<if condition='$orderInfo["order"]["isSelf"]==1'>
	        					自提
	        				<else/>
	        					<if condition='$orderInfo["order"]["deliverType"]==0'>商城配送<else/>店铺配送</if>
	        				</if>
	        			</td>
	        		</tr>
	        		<tr>
	        		    <td class="wst-td-title">买家留言：</td>
	        		    <td class="wst-td-content">{$orderInfo["order"]["orderRemarks"]}</td>
	        		</tr>
	        		<tr>
	        			<td class="wst-td-title">下单时间：</td>
	        			<td class="wst-td-content">{$orderInfo["order"]["createTime"]}</td>
	        		</tr>
        		</tbody>
        	</table>
        	</div>
        	<br/><br/>
        	<div class="wst-odetal-box">
        	<table cellspacing="0" cellpadding="0" class="wst-tab" width="920" style="border:1px solid #eeeeee;margin:0 auto;">
        		<caption class="wst-tab-cpt">收货人信息</caption>
        		<tbody>
	        		
	        		<tr>
	        			<td class="wst-td-title">收货人姓名：</td>
	        			<td class="wst-td-content">{$orderInfo["order"]["userName"]}</td>
	        		</tr>
	        		<tr>
	        			<td class="wst-td-title">地址：</td>
	        			<td class="wst-td-content">{$orderInfo["order"]["userAddress"]} </td>
	        		</tr>
	        		<tr>
	        			<td class="wst-td-title">联系电话：</td>
	        			<td class="wst-td-content">{$orderInfo["order"]["userPhone"]} <if condition='$orderInfo["order"]["userTel"] neq ""'>| {$orderInfo["order"]["userTel"]}</if></td>
	        		</tr>
	        		<tr>
	        			<td class="wst-td-title">期望送达时间：</td>
	        			<td class="wst-td-content">{$orderInfo["order"]["requireTime"]}</td>
	        		</tr>
        		</tbody>
        	</table>
        	</div>
        	<br/><br/>
        	<notempty name='orderInfo["order"]["invoiceClient"]'>
        	<div class="wst-odetal-box">
        	<table cellspacing="0" cellpadding="0" class="wst-tab" width="920" style="border:1px solid #eeeeee;margin:0 auto;">
        		<caption class="wst-tab-cpt">发票信息</caption>
        		<tbody>
	        		<tr>
	        			<td class="wst-td-title">发票抬头：</td>
	        			<td class="wst-td-content">{$orderInfo["order"]["invoiceClient"]}</td>
	        		</tr>
        		</tbody>
        	</table>
        	</div> 
        	</notempty>       	
        	<div class="wst-odetal-box" style='padding-bottom:5px;'>
        	<table cellspacing="0" cellpadding="0" class="wst-tab" width="920" style="margin:0 auto;">
        		<caption class="wst-tab-cpt">商品信息</caption>
        		<tbody>
	        		<tr>
	        			<td width='*' class="wst-align-center">商品</td>
	        			<td width='150' class="wst-align-center">商品价格</td>
	        			<td width='150' class="wst-align-center">商品数量</td>
	        			<td width='150' class="wst-align-center">商品总金额</td>
	        		</tr>
	        		<volist name="orderInfo['goodsList']" id="goods" key='key1'>
	        		<tr>
	        			<td class="wst-align-center" style="vertical-align: middle;">
		        			<div style="float:left;width:50px;">
			        			<?php if($orderInfo['order']['orderFrom']==2){ ?>
	                         		<a href="{:U('Home/Groups/getGoodsDetails/',array('id'=>$orderInfo['order']['orderFromId']))}" target="_blank">
	                         	<?php }else if($orderInfo['order']['orderFrom']==3){ ?>
	                         		<a href="{:U('Home/Panics/getGoodsDetails/',array('id'=>$orderInfo['order']['orderFromId']))}" target="_blank">
	                       		<?php }else{ ?>
	                           		<a href="{:U('Home/Goods/getGoodsDetails/',array('goodsId'=>$goods['goodsId']))}" target="_blank">
	                         	<?php } ?>
			        			   <img style='margin:2px;' src="__ROOT__/{$goods['goodsThums']}" width='50' height='50'/>
			        			</a>
		        			</div>
		        			<div style="float:left;width:360px;text-align: left;vertical-align: middle;margin-left: 8px;line-height: 20px;padding-top:15px;">
		        				<?php if($orderInfo['order']['orderFrom']==2){ ?>
	                         		<a href="{:U('Home/Groups/getGoodsDetails/',array('id'=>$orderInfo['order']['orderFromId']))}" target="_blank">
	                         	<?php }else if($orderInfo['order']['orderFrom']==3){ ?>
	                         		<a href="{:U('Home/Panics/getGoodsDetails/',array('id'=>$orderInfo['order']['orderFromId']))}" target="_blank">
	                       		<?php }else{ ?>
	                           		<a href="{:U('Home/Goods/getGoodsDetails/',array('goodsId'=>$goods['goodsId']))}" target="_blank">
	                         	<?php } ?>
	                         	{$goods["goodsName"]}<if condition="$goods['goodsAttrName'] neq ''">【{$goods['goodsAttrName']}】</if>
		        				</a>
		        			</div>
		        			<div class="wst-clear"></div>
	        			</td>
	        			<td class="wst-align-center">￥{$goods["shopPrice"]}</td>
	        			<td class="wst-align-center">{$goods["goodsNums"]}</td>
	        			<td class="wst-align-center">￥{$goods["shopPrice"]*$goods["goodsNums"]}</td>
	        		</tr>
	        		</volist>
        		</tbody>
        		<tr>
        			<td colspan='4' style='border-left:0px;border-right:0px;border-bottom:0px;text-align:right;padding-right:5px;'>
        			商品总金额： ￥{$orderInfo["order"]["totalMoney"]}<br/>
        		   	+ 运费：￥{$orderInfo["order"]["deliverMoney"]}<br/>
        		   	<if condition='$orderInfo["order"]["couponMoney"] gt 0'>店铺优惠：- ￥{$orderInfo["order"]["couponMoney"]}<br/></if>
        		   	订单总金额：<span style='font-weight:bold;font-size:20px;color:red;'>￥{$orderInfo["order"]["totalMoney"]+$orderInfo["order"]["deliverMoney"]-$orderInfo["order"]["couponMoney"]}</span><br/>
        			<if condition='$orderInfo["order"]["useScore"] gt 0'>
        			- 使用积分：{$orderInfo["order"]["useScore"]} 点（抵￥{$orderInfo["order"]["scoreMoney"]} ）<br/>
        			</if>
        		   <span style='font-weight:bold;font-size:20px;'>实付总金额：</span><span style='font-weight:bold;font-size:20px;color:red;'>￥{$orderInfo["order"]["realTotalMoney"]}</span>
        		   </td>
        		</tr>
        	</table>
        	</div>
        </div>
    </body>


</html>
