88 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			88 lines
		
	
	
		
			2.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
 | 
						|
<%@ page language="java" contentType="text/html; charset=utf-8"
 | 
						|
    pageEncoding="utf-8"%>
 | 
						|
<html>
 | 
						|
<head>
 | 
						|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 | 
						|
<title>订单详情页</title>
 | 
						|
<link href="css/bootstrap.min.css" rel="stylesheet">
 | 
						|
<script type="text/javascript" src="js/jquery.min.js"></script>
 | 
						|
<script type="text/javascript">
 | 
						|
 | 
						|
	function payWeiXin(orderId,money){
 | 
						|
		location.href="payWeixin.jsp?oid="+orderId+"&omoney="+money;
 | 
						|
	}
 | 
						|
</script>
 | 
						|
</head>
 | 
						|
<%@ include file="header.jsp" %>
 | 
						|
<div class="panel panel-default" style="margin: 0 auto;width: 95%;">
 | 
						|
	<div class="panel-heading">
 | 
						|
	    <h3 class="panel-title"><span class="glyphicon glyphicon-equalizer"></span>  订单详情</h3>
 | 
						|
	</div>
 | 
						|
	<div class="panel-body">
 | 
						|
	<table cellpadding="0" cellspacing="0" align="center" width="100%" class="table table-striped table-bordered table-hover">
 | 
						|
 | 
						|
		<tr>
 | 
						|
			<td>订单编号:</td>
 | 
						|
			<td>${order.oid}</td>
 | 
						|
			<td>订单时间:</td>
 | 
						|
			<td>${order.otime}</td>
 | 
						|
		</tr>
 | 
						|
		<tr>
 | 
						|
			<td>收件人:</td>
 | 
						|
			<td>${order.address.aname}</td>
 | 
						|
			<td>联系电话:</td>
 | 
						|
			<td>${order.address.aphone}</td>
 | 
						|
		</tr>
 | 
						|
		<tr>
 | 
						|
			<td>送货地址:</td>
 | 
						|
			<td>${order.address.adetail}</td>
 | 
						|
			<td>总价:</td>
 | 
						|
			<td>${order.ocount}</td>
 | 
						|
		</tr>
 | 
						|
		<tr>
 | 
						|
			<td align="center">商品列表:</td>
 | 
						|
			<td colspan="3">
 | 
						|
				<table align="center" cellpadding="0" cellspacing="0" width="100%"  class="table table-striped table-bordered table-hover">
 | 
						|
					<tr align="center"  class="info">
 | 
						|
						<th>序号</th>
 | 
						|
						<th>商品封面</th>
 | 
						|
						<th>商品名称</th>
 | 
						|
						<th>商品评分</th>
 | 
						|
						<th>商品日期</th>
 | 
						|
						<th>商品单价</th>
 | 
						|
						<th>购买数量</th>
 | 
						|
						<th>小计</th>
 | 
						|
					</tr>
 | 
						|
					<c:forEach items="${order.items}" var="item" varStatus="i">
 | 
						|
						<tr align="center">
 | 
						|
							<th>${i.count}</th>
 | 
						|
							<th>
 | 
						|
								<img src="${pageContext.request.contextPath}/${item.product.pimage}" width="50px" height="50px">
 | 
						|
							</th>
 | 
						|
							<th>${item.product.pname}</th>
 | 
						|
							<th>${item.product.pstate}</th>
 | 
						|
							<th>${item.product.ptime}</th>
 | 
						|
							<th>${item.product.pprice}</th>
 | 
						|
							<th>${item.inum}</th>
 | 
						|
							<th>${item.icount}</th>
 | 
						|
						</tr>
 | 
						|
					</c:forEach>
 | 
						|
				</table>
 | 
						|
			</td>
 | 
						|
		</tr>
 | 
						|
		<tr>
 | 
						|
			<td align="right" colspan="4" style="margin-right: 40px;">
 | 
						|
				<a href="${pageContext.request.contextPath }/order?method=show" class="btn btn-danger btn-sm">返回订单列表</a>
 | 
						|
				  
 | 
						|
				<c:if test="${order.ostate eq 1 }">  
 | 
						|
					<button type="button" onclick="payWeiXin('${order.oid}','${order.ocount}')" class="btn btn-success btn-sm">微信支付</button>
 | 
						|
				</c:if>
 | 
						|
			</td>
 | 
						|
		</tr>
 | 
						|
	</table>
 | 
						|
	</div>
 | 
						|
</div>
 | 
						|
<%@ include file="footer.jsp" %>
 | 
						|
</body>
 | 
						|
</html> |