From 95fe28b1b3c8050c87c8c79478ebe824397b263c Mon Sep 17 00:00:00 2001 From: liyansheng <1761724207@qq.com> Date: Tue, 14 Jan 2025 16:01:14 +0800 Subject: [PATCH] =?UTF-8?q?add<=E6=A0=B7=E5=BC=8F=E4=BC=98=E5=8C=96>?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/addComputer.jsp | 53 ++++++++--- src/main/webapp/cart.jsp | 139 +++++++++++++++------------ src/main/webapp/checkOrder.jsp | 75 ++++++++++++--- src/main/webapp/computerList.jsp | 156 +++++++++++++++++-------------- src/main/webapp/editComputer.jsp | 56 ++++++++--- src/main/webapp/index.jsp | 75 +++++++++------ src/main/webapp/login.jsp | 64 +++++++++---- src/main/webapp/msg.jsp | 41 +++++--- src/main/webapp/myOrder.jsp | 125 ++++++++++++++----------- src/main/webapp/orders.jsp | 146 ++++++++++++++++------------- src/main/webapp/register.jsp | 70 +++++++++----- src/main/webapp/result.jsp | 26 ++++-- src/main/webapp/userList.jsp | 125 ++++++++++++++----------- 13 files changed, 716 insertions(+), 435 deletions(-) diff --git a/src/main/webapp/addComputer.jsp b/src/main/webapp/addComputer.jsp index 9cdd57a..10ca626 100644 --- a/src/main/webapp/addComputer.jsp +++ b/src/main/webapp/addComputer.jsp @@ -1,24 +1,53 @@ <%@ page contentType="text/html; charset=UTF-8" language="java" %> + 电脑产品发布 + + + -

电脑产品发布

-
-
-

-
-

-
-

- -
-
- 返回电脑列表 +
+ +
+
+

电脑产品发布

+
+
+ + +
+
+
+
+ + +
+
+ + +
+
+ + +
+
+ +
+
+
+
+ + +
+ 返回电脑列表 +
+
+ diff --git a/src/main/webapp/cart.jsp b/src/main/webapp/cart.jsp index c28da24..57d7a4a 100644 --- a/src/main/webapp/cart.jsp +++ b/src/main/webapp/cart.jsp @@ -2,75 +2,90 @@ <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + - 购物车 + + + + -
-

电脑商城

-

你好!${sessionScope.user.username}

- - 电脑选购 - - 我的购物车 - 我的订单 - - - - 用户列表 - 所有订单 - - 退出 - +
+ +
+
+

电脑商城

+
+
+

你好!${sessionScope.user.username}

+ + + + +

请登录后查看更多内容~

+
+ 注册 + 登录 +
+
+
+
+ + +

购物车

+ + + + + + + + + + + + + + + + + + + + + + +
ID名称价格操作
${computer.id}${computer.name}${computer.price} + 移出 +
+
+ +
- -

请登录后查看更多内容~

-
- 注册 - 登录 + + + +
- -

购物车

- - - - - - - - - - - - - - - - - - - - - -
IDNamePriceActions
${computer.id}${computer.name}${computer.price} - 移出 -
-
-
- - - - - - -

购物车为空,暂无商品可下单。

-
-
-
-
- \ No newline at end of file + + diff --git a/src/main/webapp/checkOrder.jsp b/src/main/webapp/checkOrder.jsp index b4f6a7d..bf3f95a 100644 --- a/src/main/webapp/checkOrder.jsp +++ b/src/main/webapp/checkOrder.jsp @@ -1,25 +1,70 @@ <%@ page contentType="text/html; charset=UTF-8" language="java" %> - + - 订单确认 + + + + -

订单确认

-
-
-

-
-

-
-

- -
-
- + +
+ +
+
+

订单确认

+
+
+
+ +
+ + +
+ + +
+ + +
请输入有效的地址。
+
+ + +
+ + +
+ + +
+ +
+
+
+
+
+ + - \ No newline at end of file + + diff --git a/src/main/webapp/computerList.jsp b/src/main/webapp/computerList.jsp index e2c1381..c17124f 100644 --- a/src/main/webapp/computerList.jsp +++ b/src/main/webapp/computerList.jsp @@ -1,44 +1,55 @@ <%@ page contentType="text/html; charset=UTF-8" language="java" %> - <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> - - +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + - - - - - 电脑产品列表 - + + + + 电脑产品列表 + + + + - -
+ +
+ +
+

电脑商城

-

你好!${sessionScope.user.username}

- - 电脑选购 - - 我的购物车 - 我的订单 - - - - 用户列表 - 所有订单 - - 退出 - +
+
+

你好!${sessionScope.user.username}

+ + -

请登录后查看更多内容~

-
- 注册 - 登录 +

请登录后查看更多内容~

+
+ 注册 + 登录 +
- -

电脑产品列表

- - + + + +
+

电脑产品列表

+
+ @@ -56,56 +67,59 @@
ID 名称${computer.stock} - 编辑 | - 删除 + 编辑 + 删除 - - - 加购 + 加购
-
- - 首页 +
- - - 上一页 - + +
+ +
- - - - ${i} - - - - - - 下一页 - - - - 尾页 -
-
-

${requestScope.msg}

- -
+ + - \ No newline at end of file + +
+

${requestScope.msg}

+
+
+ + + diff --git a/src/main/webapp/editComputer.jsp b/src/main/webapp/editComputer.jsp index 81c0695..2f7d0bb 100644 --- a/src/main/webapp/editComputer.jsp +++ b/src/main/webapp/editComputer.jsp @@ -1,26 +1,54 @@ <%@ page contentType="text/html; charset=UTF-8" language="java" %> - + 更新电脑信息 + + + -

更新电脑信息

-
- -
-

-
-

-
-

- -
-
- 返回电脑列表 +
+ +
+
+

更新电脑信息

+
+
+ + +
+
+
+ +
+ + +
+
+ + +
+
+ + +
+
+ +
+
+
+
+ + + +
+ diff --git a/src/main/webapp/index.jsp b/src/main/webapp/index.jsp index 45d39d6..bb7657e 100644 --- a/src/main/webapp/index.jsp +++ b/src/main/webapp/index.jsp @@ -1,33 +1,52 @@ <%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> - - + + + + + + + 电脑商城 + + -
-

电脑商城

-

你好!${sessionScope.user.username}

- - 电脑选购 - - 我的购物车 - 我的订单 - - - - 用户列表 - 所有订单 - - 退出 - - - -

请登录后查看更多内容~

-
- 注册 - 登录 -
+ + + +
+
+
+

电脑商城

+
+
+

你好!${sessionScope.user.username}

+ + + + + + +

请登录后查看更多内容~

+
+ 注册 + 登录 +
+
+
+
- - - \ No newline at end of file + + diff --git a/src/main/webapp/login.jsp b/src/main/webapp/login.jsp index ae09049..5281e82 100644 --- a/src/main/webapp/login.jsp +++ b/src/main/webapp/login.jsp @@ -1,23 +1,49 @@ <%@ page contentType="text/html;charset=UTF-8" language="java" %> - - + + - - - + + + + 电脑商城 - 用户登录 + + + + - -

-电脑商城-用户登录

-
- -

- -

- - 没有账号?去注册 -
-
- ${requestScope.msg} - + +
+
+
+
+
+

电脑商城 - 用户登录

+
+
+
+
+ + +
+
+ + +
+
+ +
+
+ +
+
+
+ ${requestScope.msg} +
+
+
+
+ - \ No newline at end of file + diff --git a/src/main/webapp/msg.jsp b/src/main/webapp/msg.jsp index ec75a9a..56412ee 100644 --- a/src/main/webapp/msg.jsp +++ b/src/main/webapp/msg.jsp @@ -1,16 +1,35 @@ <%@ page contentType="text/html;charset=UTF-8" language="java" %> - - + + - - - + + + + + 提示 + + + - -

提示:

-

${sessionScope.msg}

- + +
+ +
+
+

提示

+
+
- + +
+
+

${sessionScope.msg}

+
+ +
+
+
+
+ - \ No newline at end of file + diff --git a/src/main/webapp/myOrder.jsp b/src/main/webapp/myOrder.jsp index 7e40e1a..98c8018 100644 --- a/src/main/webapp/myOrder.jsp +++ b/src/main/webapp/myOrder.jsp @@ -2,71 +2,84 @@ <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + 我的订单 + + + -
-

电脑商城

-

你好!${sessionScope.user.username}

- - 电脑选购 - - 我的购物车 - 我的订单 - - - - 用户列表 - 所有订单 - - 退出 - - - -

请登录后查看更多内容~

-
- 注册 - 登录 -
-
+
+ +
+
+

电脑商城

+
+
+

你好!${sessionScope.user.username}

+ + + + +

请登录后查看更多内容~

+
+ 注册 + 登录 +
+
+
+
-

我的订单

+

我的订单

-
-

${requestScope.msg}

+
+

${requestScope.msg}

+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
订单编号用户ID订单日期总金额地址商品信息状态
${order.id}${order.userId}${order.orderDate}${order.totalPrice}${order.address}${order.remark}${order.status}
+
- - - - - - - - - - - - - - - - - - - - - - - - - -
订单编号用户ID订单日期总金额地址商品信息状态
${order.id}${order.userId}${order.orderDate}${order.totalPrice}${order.address}${order.remark}${order.status}
-
-
- + diff --git a/src/main/webapp/orders.jsp b/src/main/webapp/orders.jsp index 70da03a..4e4c191 100644 --- a/src/main/webapp/orders.jsp +++ b/src/main/webapp/orders.jsp @@ -8,76 +8,88 @@ 订单列表 + + -
-

电脑商城

-

你好!${sessionScope.user.username}

- - 电脑选购 - - 我的购物车 - 我的订单 - - - - 用户列表 - 所有订单 - - 退出 - - - -

请登录后查看更多内容~

-
- 注册 - 登录 -
-
- -

订单列表

- 全部 | - 待发货 | - 已发货 -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
订单编号用户ID订单日期总金额地址商品信息状态操作
${order.id}${order.userId}${order.orderDate}${order.totalPrice}${order.address}${order.remark}${order.status} - - - 点击发货 +
+ +
+
+

电脑商城

+
+
+

你好!${sessionScope.user.username}

+ +
-
-
- + + 用户列表 + 所有订单 + + 退出 +
+ + +

请登录后查看更多内容~

+
+ 注册 + 登录 +
+
+
+
+ +

订单列表

+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
订单编号用户ID订单日期总金额地址商品信息状态操作
${order.id}${order.userId}${order.orderDate}${order.totalPrice}${order.address}${order.remark}${order.status} + + + 点击发货 + + +
+
+
- \ No newline at end of file + diff --git a/src/main/webapp/register.jsp b/src/main/webapp/register.jsp index 0c327d6..3a58705 100644 --- a/src/main/webapp/register.jsp +++ b/src/main/webapp/register.jsp @@ -1,25 +1,53 @@ <%@ page contentType="text/html;charset=UTF-8" language="java" %> - - + + - - - + + + + 用户注册 + + + + - -

用户注册

-
- -

- -

- -

- - 已有账号,去登录 -
-
- ${requestScope.msg} - + +
+
+
+
+
+

用户注册

+
+
+
+
+ + +
+
+ + +
+
+ + +
+
+ +
+
+ +
+
+
+ ${requestScope.msg} +
+
+
+
+ - \ No newline at end of file + diff --git a/src/main/webapp/result.jsp b/src/main/webapp/result.jsp index e896d23..8511df5 100644 --- a/src/main/webapp/result.jsp +++ b/src/main/webapp/result.jsp @@ -2,19 +2,33 @@ <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + 操作结果 + + - -

操作结果

-
-

${requestScope.msg}

+ +
+
+
+

操作结果

+
+
+ + + + + 返回 +
+
-
- + diff --git a/src/main/webapp/userList.jsp b/src/main/webapp/userList.jsp index a3106f5..4be4a56 100644 --- a/src/main/webapp/userList.jsp +++ b/src/main/webapp/userList.jsp @@ -2,65 +2,84 @@ <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + 系统用户 + + - -
-

电脑商城

-

你好!${sessionScope.user.username}

- - 电脑选购 - - 我的购物车 - 我的订单 - - - - 用户列表 - 所有订单 - - 退出 - - - -

请登录后查看更多内容~

-
- 注册 - 登录 -
-
-

系统用户

- - - - - - - - - - - - - - - - - - - - - -
ID用户名手机号身份标识Actions
${user.id}${user.username}${user.phone}${user.role} - Delete -
-
- - + +
+ +
+
+

电脑商城

+
+
+

你好!${sessionScope.user.username}

+ + + + +

请登录后查看更多内容~

+
+ 注册 + 登录 +
+
+
+
+ + +

系统用户

+ + +
+ + + + + + + + + + + + + + + + + + + + + +
ID用户名手机号身份标识操作
${user.id}${user.username}${user.phone}${user.role} + 删除 +
+
+ + + + +
+