hy-shop-admin
Go to file
faiz a77e330d82 店铺保证金审核处理 2024-07-23 10:02:33 +08:00
.github first 2024-03-22 15:48:25 +08:00
build 1 2024-04-17 11:15:49 +08:00
mock 1 2024-04-17 11:15:49 +08:00
patches first 2024-03-22 15:48:25 +08:00
plop-templates 1 2024-04-17 11:15:49 +08:00
public edit 2024-03-29 16:14:45 +08:00
src 店铺保证金审核处理 2024-07-23 10:02:33 +08:00
tests/unit 1 2024-04-17 11:15:49 +08:00
.editorconfig first 2024-03-22 15:48:25 +08:00
.env.development 店铺保证金审核处理 2024-07-23 10:02:33 +08:00
.env.production first 2024-03-22 15:48:25 +08:00
.env.staging first 2024-03-22 15:48:25 +08:00
.eslintignore first 2024-03-22 15:48:25 +08:00
.eslintrc.js first 2024-03-22 15:48:25 +08:00
.gitignore edit 2024-03-29 16:14:45 +08:00
.travis.yml first 2024-03-22 15:48:25 +08:00
LICENSE first 2024-03-22 15:48:25 +08:00
README.es.md first 2024-03-22 15:48:25 +08:00
README.ja.md first 2024-03-22 15:48:25 +08:00
README.md edit 2024-03-29 16:14:45 +08:00
README.zh-CN.md first 2024-03-22 15:48:25 +08:00
babel.config.js add 2024-04-05 18:19:51 +08:00
jest.config.js first 2024-03-22 15:48:25 +08:00
jsconfig.json first 2024-03-22 15:48:25 +08:00
package.json 1 2024-05-23 18:31:45 +08:00
plopfile.js first 2024-03-22 15:48:25 +08:00
postcss.config.js first 2024-03-22 15:48:25 +08:00
sh.exe.stackdump first 2024-03-22 15:48:25 +08:00
vue.config.js 1 2024-05-23 18:31:45 +08:00

README.md

CRMEB多商户


cp -r dist/. ../shop-many/public/

开发规范

统一使用ES6 语法 方法注释 /*

  • th => 表头
  • data => 数据
  • fileName => 文件名
  • fileType => 文件类型
  • sheetName => sheet页名 */ export default function toExcel ({ th, data, fileName, fileType, sheetName }) 行注释 //

命名

页面目录 文件夹命名格式骆驼式命名法,例如:用户列表 userList 例如:商品模块 product 商品 ├─ product 商品管理 ├─productList 商品管理目录 ├- index.vue 首页

页面命名、组建、文件夹 命名格式小驼峰命名法,例如:用户列表 userList

类名函数命名 大驼峰式 例如addUser 变量命名 小驼峰式 例如user 或者 userInfo _userinfo user-info 常量 采用全大些下划线命名 例如VUE_APP_API_URl

文件管理规范

pages 页面模块必须件文件夹区分 api 接口一个模块一个文件 组建 一个组建一个文件夹 plugins 插件一个插件一个文件夹 vuex 路由状态管理一个模块在modules 中建一个文件夹 router 一个模块一个模块在modules 中建一个文件夹 style 样式尽量采用iView自带组建common.less 系统通用样式不要轻易动 自定义通用样式 style.less,每次添加必须加注释页面独立样式在在页面内写后缀less 格式 组建样式 styles 中添加文件夹 composents 对应components 目录新建样式文件 utils 自定义工具js 独立命名,一般不用新建文件夹

模块命名

├─ login 登录
├─ dashboard 首页
├─ product 商品管理
├─ order 系统订单管理
├─ promoter 分销
├─ user 用户管理
├─ accounts 财务管理
├─ merchant 商户管理
├─ app 各个应用模块功能管理公众号、小程序、支付宝、百度小程序、今日头条小程序
├─ system 系统更新日志 数据库管理 素材管理
├─ setting 系统身份管理 系统权限管理、系统菜单管理、操作日志
├─ sms 短信设置
├─ systemForm 商城设置
├─ freight 物流设置
├─ maintain 安全维护
├─ safe 维护-页面链接
├─ userFeedback 用户反馈
├─ error-page 错误页

开发打包项目

# 进入项目目录
$ cd admin-iView

# 安装依赖
$ npm install

# 启动项目(本地开发环境)
$ npm run dev

# 打包项目
## Build

```bash
# build for test environment
npm run build:stage

# build for production environment
npm run build:prod
```
## Advanced
```bash
# preview the release environment effect
npm run preview

# preview the release environment effect + static resource analysis
npm run preview -- --report

# code format check
npm run lint

# code format check and auto fix
npm run lint -- --fix
```