shangfutong-ui/README.md

48 lines
1.4 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Jeepay Plus S3 UI
为Jeepay Plus的前端项目包括web管理端、app和小程序等。前端技术以vue为主框架使用Ant Design Vue、Uni-app开发。
> 目录结构
```lua
jeepay-plus-ui
├── jeepay-h5-index -- 主页面
├── jeepay-ui-manager -- 运营平台web管理端
├── jeepay-ui-agent -- 代理商系统web管理端
├── jeepay-ui-merchant -- 商户系统web管理端
├── jeepay-ui-uapp-agent -- 代理商app项目
├── jeepay-ui-uapp-merchant -- 商户app项目
├── jeepay-ui-uapp-cashier -- 聚合收银台项目
└── jeepay-ui-uapp-face -- 刷脸支付小程序项目
```
> 参考命令
node版本要求`>= 16.7.0`
#### 参考命令
``` bash
# 拉取源码完毕后请先安装依赖, 进入项目根目录命令行执行:
> npm install
# 本地启动项目(开发环境):
0. env.development 复制并重命名为 --》 .env.development.local .env.development.local 建议添加到 .gitignore
知识点: .local文件作为本地启动优先级最高的配置文件。
1. 打开根目录下文件".env.development.local", 修改请求服务器地址"VITE_API_BASE_URL"
2. 在项目根目录命令行执行:
> npm run dev
# 打包(生产环境):
1. 打开根目录下文件".env", 修改请求服务器地址"VITE_API_BASE_URL"
2. 在项目根目录命令行执行:
> npm run build
3. 文件将输出到 [/dist]目录, 拷贝到web服务器即可。
```