Selaa lähdekoodia

上传文件至 'out/artifacts/TestServlet09_war_exploded/pages/order'

2001010304 3 vuotta sitten
vanhempi
commit
895ac1c475

+ 126 - 0
out/artifacts/TestServlet09_war_exploded/pages/order/order

@@ -0,0 +1,126 @@
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="UTF-8">
+<title>我的订单</title>
+	<%--静态包含:base标签,css样式,js脚本--%>
+	<%@ include file="/pages/common/head.jsp"%>
+<style type="text/css">
+	h1 {
+		text-align: center;
+		margin-top: 200px;
+	}
+
+	#main table tr td a{
+		text-decoration: none;
+	}
+</style>
+</head>
+<body>
+
+	<div id="header">
+			<img class="logo_img" alt="" src="" >
+			<span class="wel_word">我的订单</span>
+		<%--静态包含,登录成功后的菜单--%>
+		<%@ include file="/pages/common/login_success_menu.jsp"%>
+	</div>
+
+	<div id="main">
+		<table>
+			<tr>
+				<td>日期</td>
+				<td>商品名</td>
+				<td>金额</td>
+				<td>状态</td>
+<%--				<td>详情</td>--%>
+				<td>订单号</td>
+			</tr>
+
+			<tr>
+<%--				<td>2021.04.23</td>--%>
+				<td>
+					<c:if test="${not empty sessionScope.cartItem}">
+						${sessionScope.year}.${sessionScope.month}.${sessionScope.day}
+					</c:if>
+				</td>
+
+				<td>
+					<c:if test="${empty sessionScope.orderId}">
+
+					</c:if>
+					<c:if test="${not empty sessionScope.orderId}">
+						${sessionScope.cartItem.name}
+					</c:if>
+				</td>
+
+<%--				<td>90.00</td>--%>
+				<td>
+<%--					<c:choose>--%>
+<%--						<c:when test="${empty sessionScope.orderId}">--%>
+<%--							0.00--%>
+<%--						</c:when>--%>
+<%--						<c:when test="${not empty sessionScope.cart.totalPrice}">--%>
+<%--							${sessionScope.cart.totalPrice}--%>
+<%--						</c:when>--%>
+<%--&lt;%&ndash;						<c:when test="${not empty sessionScope.orderId}">&ndash;%&gt;--%>
+<%--&lt;%&ndash;							${sessionScope.cart.totalPrice}&ndash;%&gt;--%>
+<%--&lt;%&ndash;						</c:when>&ndash;%&gt;--%>
+<%--					</c:choose>--%>
+					<c:if test="${empty sessionScope.orderId}">
+							0.00
+					</c:if>
+					<c:if test="${not empty sessionScope.orderId}">
+						${sessionScope.cartItem.totalPrice}
+
+<%--						${sessionScope.cart.totalPrice}--%>
+<%--						${sessionScope.cartItem.totalPrice}--%>
+					</c:if>
+<%--					<c:if test="${ empty sessionScope.cart.totalPrice}">--%>
+<%--						--%>
+<%--					</c:if>--%>
+
+				</td>
+
+				<td>
+					未发货
+				</td>
+
+<%--				<td><a href="#">${sessionScope.orderId}</a></td> 不需要加a链接--%>
+				<td>
+					<c:if test="${not empty sessionScope.orderId}">
+						${sessionScope.orderId}
+					</c:if>
+				</td>
+
+			</tr>
+<%--			<tr>--%>
+<%--				<td>2021.04.20</td>--%>
+<%--				<td>20.00</td>--%>
+<%--				<td>已发货</td>--%>
+<%--				<td><a href="#">查看详情</a></td>--%>
+<%--			</tr>	--%>
+<%--			--%>
+<%--			<tr>--%>
+<%--				<td>2021.01.23</td>--%>
+<%--				<td>190.00</td>--%>
+<%--				<td>已完成</td>--%>
+<%--				<td><a href="#">查看详情</a></td>--%>
+<%--			</tr>		--%>
+		</table>
+
+
+	</div>
+
+<%--	<script>--%>
+<%--		var  time  =new Date();--%>
+<%--		var  year = time.getFullYear();--%>
+<%--		var  month = time.getMonth()+1;--%>
+<%--		var  day = time.getDay();--%>
+<%--	</script>--%>
+
+	<%--静态包含:页脚--%>
+	<%@include file="/pages/common/footer.jsp"%>
+</body>
+</html>

+ 98 - 0
out/artifacts/TestServlet09_war_exploded/pages/order/order.jsp

@@ -0,0 +1,98 @@
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="UTF-8">
+<title>我的订单</title>
+	<%--静态包含:base标签,css样式,js脚本--%>
+	<%@ include file="/pages/common/head.jsp"%>
+<style type="text/css">
+	h1 {
+		text-align: center;
+		margin-top: 200px;
+	}
+
+	#main table tr td a{
+		text-decoration: none;
+	}
+</style>
+</head>
+<body>
+	
+	<div id="header">
+			<img class="logo_img" alt="" src="" >
+			<span class="wel_word">我的订单</span>
+		<%--静态包含,登录成功后的菜单--%>
+		<%@ include file="/pages/common/login_success_menu.jsp"%>
+	</div>
+	
+	<div id="main">
+		<table>
+			<tr>
+				<td>日期</td>
+				<td>商品名</td>
+				<td>金额</td>
+				<td>状态</td>
+<%--				<td>详情</td>--%>
+				<td>订单号</td>
+			</tr>
+
+			<tr>
+				<c:forEach items="">
+
+				</c:forEach>
+				<td>
+					<c:if test="${not empty sessionScope.cartItem}">
+						${sessionScope.year}.${sessionScope.month}.${sessionScope.day}
+					</c:if>
+				</td>
+
+				<td>
+					<c:if test="${empty sessionScope.orderId}">
+
+					</c:if>
+					<c:if test="${not empty sessionScope.orderId}">
+						${sessionScope.cartItem.name}
+					</c:if>
+				</td>
+
+				<td>
+					<c:if test="${empty sessionScope.orderId}">
+						0.00
+					</c:if>
+					<c:if test="${not empty sessionScope.orderId}">
+						${sessionScope.cartItem.totalPrice}
+					</c:if>
+				</td>
+
+				<td>
+<%--					未发货--%>
+					<c:if test="${empty sessionScope.orderId}">
+						未下单
+					</c:if>
+					<c:if test="${not empty sessionScope.orderId}">
+						已下单
+					</c:if>
+				</td>
+
+				<td>
+					<c:if test="${not empty sessionScope.orderId}">
+						${sessionScope.orderId}
+					</c:if>
+				</td>
+<%--				<c:forEach items="${sessionScope.cartItem}" var="cartItem">--%>
+<%--					--%>
+<%--				</c:forEach>--%>
+
+			</tr>
+		</table>
+		
+	
+	</div>
+
+
+	<%--静态包含:页脚--%>
+	<%@include file="/pages/common/footer.jsp"%>
+</body>
+</html>

+ 88 - 0
out/artifacts/TestServlet09_war_exploded/pages/order/order1.jsp

@@ -0,0 +1,88 @@
+<%--
+  Created by IntelliJ IDEA.
+  User: x'b'w
+  Date: 2021/12/8
+  Time: 9:54
+  To change this template use File | Settings | File Templates.
+--%>
+<%@ page contentType="text/html;charset=UTF-8" language="java" %>
+<html>
+<head>
+    <title>Title</title>
+    <%@ include file="/pages/common/head.jsp"%>
+    <style type="text/css">
+        h1 {
+            text-align: center;
+            margin-top: 200px;
+        }
+
+        #main table tr td a{
+            text-decoration: none;
+        }
+    </style>
+</head>
+<body>
+    <div id="header">
+        <img class="logo_img" alt="" src="" >
+        <span class="wel_word">我的订单</span>
+        <%--静态包含,登录成功后的菜单--%>
+        <%@ include file="/pages/common/login_success_menu.jsp"%>
+    </div>
+
+    <div id="main">
+        <table>
+            <tr>
+                <td>日期</td>
+                <td>金额</td>
+                <td>状态</td>
+                <%--				<td>详情</td>--%>
+                <td>订单号</td>
+            </tr>
+
+            <tr>
+                <%--				<td>2021.04.23</td>--%>
+                <td>
+<%--                    <c:if test="${not empty sessionScope.orderId}">--%>
+<%--                        ${sessionScope.year}.${sessionScope.month}.${sessionScope.day}--%>
+<%--                    </c:if>--%>
+                </td>
+
+                <%--				<td>90.00</td>--%>
+                <td>
+                    <%--					<c:choose>--%>
+                    <%--						<c:when test="${empty sessionScope.orderId}">--%>
+                    <%--							0.00--%>
+                    <%--						</c:when>--%>
+                    <%--						<c:when test="${not empty sessionScope.cart.totalPrice}">--%>
+                    <%--							${sessionScope.cart.totalPrice}--%>
+                    <%--						</c:when>--%>
+                    <%--&lt;%&ndash;						<c:when test="${not empty sessionScope.orderId}">&ndash;%&gt;--%>
+                    <%--&lt;%&ndash;							${sessionScope.cart.totalPrice}&ndash;%&gt;--%>
+                    <%--&lt;%&ndash;						</c:when>&ndash;%&gt;--%>
+                    <%--					</c:choose>--%>
+<%--                    <c:if test="${empty sessionScope.orderId}">--%>
+
+<%--                    </c:if>--%>
+<%--                    <c:if test="${not empty sessionScope.cart.totalPrice}">--%>
+<%--                        ${sessionScope.cart.totalPrice}--%>
+<%--                    </c:if>--%>
+                </td>
+
+                <td>
+
+                </td>
+
+                <td>
+<%--                    <c:if test="${not empty sessionScope.orderId}">--%>
+<%--                        ${sessionScope.orderId}--%>
+<%--                    </c:if>--%>
+                </td>
+
+            </tr>
+        </table>
+    </div>
+
+
+    <%@include file="/pages/common/footer.jsp"%>
+</body>
+</html>