# jafk **Repository Path**: kattrina/jafk ## Basic Information - **Project Name**: jafk - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-05-13 - **Last Updated**: 2024-06-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: 建安风控, APP, 齐明 ## README # 齐明软件移动框架 V5.0 基于 Framework7 Vue 5.5.0、Vue 2.6.6、Webpack 4.29.5; Framework7 Vue相关教程:http://framework7.io/vue/ Vue相关教程:https://cn.vuejs.org/ Webpack相关教程:https://www.webpackjs.com/ ## 使用说明 ### 1. 从公司SVN中获取项目 ``` svn地址: https://115.29.227.25/svn/MobileFramework/SourceCode/trunk ``` ### 2. 安装依赖 使用Visual Studio Code 打开项目,在终端执行命令: ``` npm install ``` 执行命令后,等待下载依赖,直到全部完成。 ### 3. 启用APP,在终端执行命令: ``` npm run start ``` App 会自动在浏览器中打开,默认地址是 `http://localhost:8080/` ### 4. 打包发布APP,在终端执行命令: ``` npm run build-jafk-prod ``` APP打包后的文件输出到`www/`文件夹中,使用Hbuilder打开`www/`中的项目,可打包原生安装包。 ## 相关命令: ``` bash # 安装依赖包 npm install # 以开发模式启动APP,默认地址:http://localhost:8080 npm run start # 以开发模式打包发布APP npm run build-dev # 以生产模式打包发布APP npm run build-jafk-prod ``` ## 项目结构 * `src/index.html` - main app HTML * `src/assets` - folder with static assets (images) * `src/libs/components` - folder with custom `.vue` components * `src/css` - put custom app CSS styles here. Don't forget to import them in `main.js` * `src/pages` - app `.vue` pages * `src/app.js` - main app file where you include/import all required libs and init app * `src/routes.js` - app routes * `src/app.vue` - main app structure/component * `/static/` - folder with extra static assets that will be copied into output folder ## 开发建议 ### 图片展示 * 显示图片时,优先使用缩略图,提升体验。 * 引用 util.js `import Util from "@/libs/framework/util";` * 定义缩略图的链接前缀:`downThumbApi: this.$util.mapProxyOnProd(Config.api.downThumbApi)` * 使用示例:`${downThumbApi}?attachmentId=xxxx` * 组件命名建议: 页面组件,使用小驼峰式命名; 页面的业务组件,使用大驼峰式命名; 全局通用组件(放在src/libs/components下),使用横线连接 (kebab-case)命名