目 录
1 绪 论 .................................................................................................................................................1
1.1 研究的背景 ...............................................................................................................................1
1.2 本次课题的研究意义................................................................................................................1
1.3 研究的内容及方法....................................................................................................................1
2 相关技术 ...............................................................................................................................................3
2.1 B/S 架构 ....................................................................................................................................3
2.2 Javascript 与 Vue....................................................................................................................3
2.2.1 Javascript...........................................................................................................................3
2.2.2 Vue ....................................................................................................................................4
2.3 Nodejs 与 Koa ...........................................................................................................................4
2.3.1 Nodejs ...............................................................................................................................4
2.3.2 Koa2 ..................................................................................................................................5
2.4 Mysql .........................................................................................................................................5
2.5 本章小结 ...................................................................................................................................5
3 在线购物商城的分析 ...........................................................................................................................6
3.1 商城概述 ...................................................................................................................................6
3.2 可行性分析 ...............................................................................................................................6
3.2.1 技术可行性 .....................................................................................................................6
3.2.2 经济可行性 .....................................................................................................................6
3.2.3 社会可行性 .....................................................................................................................7
3.3 需求分析 ...................................................................................................................................7
3.3.1 功能需求 .........................................................................................................................7
3.3.2 安全性需求 .....................................................................................................................8
3.3.3 性能需求 .........................................................................................................................8
3.4 本章小结 ...................................................................................................................................9
4 在线购物商城的设计与实现..............................................................................................................10
4.1 数据库的设计 .........................................................................................................................10
4.1.1 数据库概念 ....................................................................................................................10
4.1.2 逻辑设计 .......................................................................................................................11
4.2 搭建开发环境 .........................................................................................................................13
4.3 商城结构设计 .........................................................................................................................14
4.3.1 模块设计 .......................................................................................................................14
4.3.2 文件设计 .......................................................................................................................14
4.4 前台功能的实现 .....................................................................................................................15
4.4.1 前台商品信息模块 .......................................................................................................15
4.4.2 前台个人信息模块 .......................................................................................................16
4.4.3 前台收货地址管理模块................................................................................................17
4.4.4 前台购物车模块 ...........................................................................................................18
4.4.5 前台订单模块 ...............................................................................................................19
4.5 后台功能的实现 .....................................................................................................................19
4.5.1 后台商品管理模块 .......................................................................................................19
4.5.2 后台订单管理模块 .......................................................................................................20