123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- <%@ 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>--%>
- <%--<%– <c:when test="${not empty sessionScope.orderId}">–%>--%>
- <%--<%– ${sessionScope.cart.totalPrice}–%>--%>
- <%--<%– </c:when>–%>--%>
- <%-- </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>
|