Commit c1cdbc3b authored by huanglu's avatar huanglu

docs(readme): 新增readme文档

parent 3f54cbdf
## 移动端模板项目
# vue 使用方法
### 项目结构
```
├── babel.config.js
├── config
│   ├── index.js // 项目配置
│   └── util.js
├── jsconfig.json
├── mock // 存放mock数据
│   └── index.js
├── package-lock.json
├── package.json
├── public
│   ├── favicon.ico
│   └── index.html
├── scripts
│   ├── skeleton-plugin.txt
│   └── skeleton.js // skeleton脚本
├── src
│   ├── App.vue
│   ├── api
│   │   └── index.js
│   ├── assets
│   │   ├── images // 存放图片
│   │   │   ├── index.js
│   │   │   ├── nocontent.png
│   │   │   ├── video_bg.png
│   │   │   └── video_play.png
│   │   └── styles // 全局样式文件
│   │   ├── clear.scss
│   │   ├── common.scss
│   │   └── variable.scss
│   ├── components // 组件
│   │   ├── error-nofity
│   │   │   ├── images
│   │   │   │   ├── close.png
│   │   │   │   └── error.png
│   │   │   ├── index.js
│   │   │   └── notify-message.vue
│   │   ├── index.js
│   │   └── video-item
│   │   └── index.vue
│   ├── constant // 常量文件夹目录
│   │   └── index.js // 统一通过该目录进行导出
│   ├── layout // 全局布局组件
│   │   └── normal-layout.vue
│   ├── main.js
│   ├── plugins // 插件
│   │   ├── index.js
│   │   └── nativebrige.js
│   ├── router
│   │   └── index.js
│   ├── store
│   │   ├── index.js
│   │   └── modules
│   │   ├── account.js
│   │   └── cart.js
│   ├── utils
│   │   ├── index.js
│   │   ├── request.js
│   │   └── storage.js
│   └── views
│   ├── about
│   │   └── index.vue
│   ├── home
│   │   └── index.vue
│   └── index
│   └── index.vue
├── vue.config.js
└── yarn.lock
```
### 配置路由的骨架屏
- yarn dev后,在浏览器 中, cmd|ctl + enter, 或者在控制台输入 toggleBar 打开骨架屏生成页面
- 骨架屏只能在 开发阶段生成,并放在 skeleton-pages 目录下
### mock
### 环境变量
### config 配置(基本配置)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment