order 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <%@ page contentType="text/html;charset=UTF-8" language="java" %>
  2. <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  3. <!DOCTYPE html>
  4. <html>
  5. <head>
  6. <meta charset="UTF-8">
  7. <title>我的订单</title>
  8. <%--静态包含:base标签,css样式,js脚本--%>
  9. <%@ include file="/pages/common/head.jsp"%>
  10. <style type="text/css">
  11. h1 {
  12. text-align: center;
  13. margin-top: 200px;
  14. }
  15. #main table tr td a{
  16. text-decoration: none;
  17. }
  18. </style>
  19. </head>
  20. <body>
  21. <div id="header">
  22. <img class="logo_img" alt="" src="" >
  23. <span class="wel_word">我的订单</span>
  24. <%--静态包含,登录成功后的菜单--%>
  25. <%@ include file="/pages/common/login_success_menu.jsp"%>
  26. </div>
  27. <div id="main">
  28. <table>
  29. <tr>
  30. <td>日期</td>
  31. <td>商品名</td>
  32. <td>金额</td>
  33. <td>状态</td>
  34. <%-- <td>详情</td>--%>
  35. <td>订单号</td>
  36. </tr>
  37. <tr>
  38. <%-- <td>2021.04.23</td>--%>
  39. <td>
  40. <c:if test="${not empty sessionScope.cartItem}">
  41. ${sessionScope.year}.${sessionScope.month}.${sessionScope.day}
  42. </c:if>
  43. </td>
  44. <td>
  45. <c:if test="${empty sessionScope.orderId}">
  46. </c:if>
  47. <c:if test="${not empty sessionScope.orderId}">
  48. ${sessionScope.cartItem.name}
  49. </c:if>
  50. </td>
  51. <%-- <td>90.00</td>--%>
  52. <td>
  53. <%-- <c:choose>--%>
  54. <%-- <c:when test="${empty sessionScope.orderId}">--%>
  55. <%-- 0.00--%>
  56. <%-- </c:when>--%>
  57. <%-- <c:when test="${not empty sessionScope.cart.totalPrice}">--%>
  58. <%-- ${sessionScope.cart.totalPrice}--%>
  59. <%-- </c:when>--%>
  60. <%--&lt;%&ndash; <c:when test="${not empty sessionScope.orderId}">&ndash;%&gt;--%>
  61. <%--&lt;%&ndash; ${sessionScope.cart.totalPrice}&ndash;%&gt;--%>
  62. <%--&lt;%&ndash; </c:when>&ndash;%&gt;--%>
  63. <%-- </c:choose>--%>
  64. <c:if test="${empty sessionScope.orderId}">
  65. 0.00
  66. </c:if>
  67. <c:if test="${not empty sessionScope.orderId}">
  68. ${sessionScope.cartItem.totalPrice}
  69. <%-- ${sessionScope.cart.totalPrice}--%>
  70. <%-- ${sessionScope.cartItem.totalPrice}--%>
  71. </c:if>
  72. <%-- <c:if test="${ empty sessionScope.cart.totalPrice}">--%>
  73. <%-- --%>
  74. <%-- </c:if>--%>
  75. </td>
  76. <td>
  77. 未发货
  78. </td>
  79. <%-- <td><a href="#">${sessionScope.orderId}</a></td> 不需要加a链接--%>
  80. <td>
  81. <c:if test="${not empty sessionScope.orderId}">
  82. ${sessionScope.orderId}
  83. </c:if>
  84. </td>
  85. </tr>
  86. <%-- <tr>--%>
  87. <%-- <td>2021.04.20</td>--%>
  88. <%-- <td>20.00</td>--%>
  89. <%-- <td>已发货</td>--%>
  90. <%-- <td><a href="#">查看详情</a></td>--%>
  91. <%-- </tr> --%>
  92. <%-- --%>
  93. <%-- <tr>--%>
  94. <%-- <td>2021.01.23</td>--%>
  95. <%-- <td>190.00</td>--%>
  96. <%-- <td>已完成</td>--%>
  97. <%-- <td><a href="#">查看详情</a></td>--%>
  98. <%-- </tr> --%>
  99. </table>
  100. </div>
  101. <%-- <script>--%>
  102. <%-- var time =new Date();--%>
  103. <%-- var year = time.getFullYear();--%>
  104. <%-- var month = time.getMonth()+1;--%>
  105. <%-- var day = time.getDay();--%>
  106. <%-- </script>--%>
  107. <%--静态包含:页脚--%>
  108. <%@include file="/pages/common/footer.jsp"%>
  109. </body>
  110. </html>