- 快速体验项目:在线访问地址 。
- 全套学习教程:《mall学习教程》 。
- 分支说明:
master分支基于Vue3+Element-Plus,dev-v2分支基于Vue2+Element。
该项目为前后端分离项目的前端部分,后端项目mall地址:传送门 。
mall-admin-web是一个电商后台管理系统的前端项目,基于Vue3+Element-Plus实现。主要包括商品管理、订单管理、会员管理、促销管理、运营管理、内容管理、统计报表、财务管理、权限管理、设置等功能。
项目在线演示地址:https://www.macrozheng.com/admin/
src -- 源码目录
├── apis -- axios网络请求接口定义
├── assets -- 静态图片资源文件
├── components -- 通用组件封装
├── icons -- svg矢量图片文件
├── router -- vue-router路由配置
├── store -- pinia的状态管理
├── styles -- 全局css样式
├── types -- 类型定义
├── utils -- 工具类
└── views -- 前端页面
├── home -- 首页
├── layout -- 通用页面框架
├── normal -- 常用页面(login和404)
├── oms -- 订单模块页面
├── pms -- 商品模块页面
├── sms -- 商品模块页面
└── ums -- 用户模块页面- 下载node并安装,支持v20以上版本(建议下载v20 LTS版本):https://nodejs.org/zh-cn/download/archive/v20.20.0
- 该项目为前后端分离项目,访问本地访问接口需搭建后台环境,搭建请参考后端项目传送门;
- 访问在线接口无需搭建后台环境,只需将
.env.development文件中的VITE_BASE_SERVER_URL改为https://admin-api.macrozheng.com即可; - 如果你对接的是mall-swarm 微服务后台的话,所有接口都需要通过网关访问,需要将
.env.development文件中的VITE_BASE_SERVER_URL改为http://localhost:8201/mall-admin ; - 克隆源代码到本地,使用VSCode打开,并完成编译;
- 在命令行中运行命令:
npm install,下载相关依赖; - 在命令行中运行命令:
npm run dev,运行项目; - 访问地址:http://localhost:5173即可打开后台管理系统页面;
- 具体部署过程请参考:mall前端项目的安装与部署
- 前端自动化部署请参考:使用Jenkins一键打包部署前端应用,就是这么6!
加微信群交流,公众号后台回复「加群」即可。
Copyright (c) 2018-2026 macrozheng

