技术说明:
(1)基于Java + vue + uni-app 开发
(2)采用业界主流开发框架SpringBoot
CRMEB Admin
开发规范
统一使用ES6 语法 方法注释 /*
th => 表头
data => 数据
fileName => 文件名
fileType => 文件类型
sheetName => sheet页名
*/ export default function toExcel ({ th, data, fileName, fileType, sheetName }) 行注释 //
命名
页面目录 文件夹命名格式骆驼式命名法,例如:用户列表 userList 例如:商品模块 store 商品 ├─ store 商品管理 ├─index.vue 首页 ├─ creatStore 新建商品 ├─ index.vue ├─ sort 商品分类 ├─ index.vue ├─storeAttr 商品规格 ├─ index.vue ├─storeComment 商品评论 ├─ index.vue
页面命名、组建、文件夹 命名格式小驼峰命名法,例如:用户列表 userList
类名函数命名 大驼峰式 例如:addUser 变量命名 小驼峰式 例如:user 或者 userInfo 常量 采用全大些下划线命名 例如:VUE_APP_API_URl
文件管理规范
views 页面模块必须件文件夹区分 api 接口一个模块一个文件 组建 一个组建一个文件夹 plugins 插件一个插件一个文件夹 vuex 路由状态管理,一个模块在modules 中建一个文件夹 router 一个模块一个模块在modules 中建一个文件夹 style 样式尽量