# SAAS **Repository Path**: gxd0323/saas ## Basic Information - **Project Name**: SAAS - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2024-11-14 - **Last Updated**: 2025-07-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 售后宝PC端前端项目 --- 该项目是基于webpack搭建的多页应用。兼用以下浏览器:IE 11+, Edge, Firefox, Chrome 49+, Safari。 > Chrome最低支持至49。为Chrome 49是windows xp最后一个版本,也是windows钉钉客户端包含的浏览器版本 > > 1366 * 768尺寸的屏幕在钉钉中可用空间大约为1363 * 663 ## 项目结构 ``` ├── config Webpack配置 ├── dist 资源输出目录 ├── model 常用类和常量 ├── modules 页面入口 ├── public 外部静态资源 ├── script 开发和打包脚本 │ └── config 个人配置项 ├── server koa server │ └── routes 路由 ├── src 源码 │ ├── api api │ ├── assets 资源文件 │ ├── common 公共脚本 │ ├── component 组件 │ ├── config 项目配置 │ ├── directive vue 指令 │ ├── filter vue filter │ ├── modules 模块,所有页面在此开发 │ ├── platform 跨浏览器和钉钉工具类 │ ├── util 工具类 │ │ └── dingtalk 钉钉api │ └── index.html 默认模板 └── package.json npm配置文件 ``` ## 构建步骤 ``` bash # [可选] 配置淘宝源 https://registry.npm.taobao.org # install dependencies npm install # run dev server npm run dev # build for production npm run build # 导出组件用于web项目和sm4-pc npm run comp ``` ## Git 提交 提供选择的提交信息类别,快速生成提交说明的工具。 安装 ``` bash # use npm npm install -g commitizen # use cnpm cnpm install -g commitizen # use pnpm pnpm install -g commitizen # use yarn yarn global add commitizen ``` 使用 ``` bash git cz ``` ### 国际化 i18n Ally .vscode/setting.json ```json { "i18n-ally.localesPaths": [ "../pub-bbx-global/lang/common", "../pub-bbx-global/lang/project/fe", ], // 翻译的语言路径 "i18n-ally.enabledParsers": [ "ts", ], // 翻译支持的语言文件格式 "i18n-ally.encoding": "utf-8", // 翻译文件的编码 "i18n-ally.sourceLanguage": "zh", // 根据此 zh 语言文件翻译其他语言文件的变量和内容 // "i18n-ally.displayLanguage": "en", // 组件中显示的语言 这里写了页面里就没法切换了 "i18n-ally.keystyle": "nested" } ```