Files
1818uniapp/README.md
2026-02-13 17:36:42 +08:00

42 lines
995 B
Markdown
Raw 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.

# UniApp 企业级项目模板
## 技术栈
- Vue 3 + UniApp
- uView Plus 3 (全端兼容组件库)
- TailwindCSS 3
- Pinia 状态管理
- ESLint 代码规范
## 项目结构
```
src/
├── api/ # 接口请求
├── components/ # 公共组件
├── hooks/ # 组合式函数
├── pages/ # 页面
├── static/ # 静态资源
├── store/ # 状态管理
├── styles/ # 样式文件
└── utils/ # 工具函数
```
## 开发命令
```bash
npm install # 安装依赖
npm run dev:h5 # H5 开发
npm run dev:mp-weixin # 微信小程序开发
npm run build:h5 # H5 构建
```
## uView Plus 组件
项目已配置 easycom可直接使用 `up-xxx` 组件:
- `up-button` 按钮
- `up-cell` 单元格
- `up-form` 表单
- `up-navbar` 导航栏
- 更多组件请参考https://uview-plus.jiangruyi.com/
## 注意事项
- tabbar 图标需替换为实际图片
- `.env` 文件配置 API 地址