# miniprogram-template **Repository Path**: pimee/miniprogram-template ## Basic Information - **Project Name**: miniprogram-template - **Description**: 微信小程序原生开发模板 - **Primary Language**: JavaScript - **License**: GPL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2021-05-31 - **Last Updated**: 2021-11-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 基于微信小程序课室报修系统 ## 介绍 报修系统是前端解决方案,[后端](https://github.com/GreenHatHG/Team_weacsoft_ClassRepair) 是另一个仓库,它基于[微信小程序原生](https://developers.weixin.qq.com/miniprogram/dev/framework/) [ColorUI](https://github.com/weilanwl/ColorUI) , 其实项目主要是提供微信小程序开发的一个思路,网络请求、token、分页数据等的封装。有能力的可以直接阅读源码,需要运行请阅读安装 ## 前序准备 你需要安装 [微信开发者工具](https://developers.weixin.qq.com/miniprogram/dev/devtools/download.html) 和 jdk 8+。本项目技术栈基于[微信小程序原生](https://developers.weixin.qq.com/miniprogram/dev/framework/) 、ES6、[wxMiniStore](https://github.com/xiaoyao96/wxMiniStore) [ColorUI](https://github.com/weilanwl/ColorUI) ## 目录结构 ```markdown . ├── LICENSE # 开源许可证 ├── README.md # README.md ├── api # API 统一管理(弃用) ├── app.js ├── app.json ├── app.wxss ├── colorui # colorUI ├── component # 自定义 component ├── core # 公共枚举类 ├── dist # tui/linui 组件库 ├── images # 静态图片 ├── miniprogram_npm # npm 构建 ├── modules # API 模型统一管理 ├── package.json ├── pages # 页面资源 ├── project.config.json # 小程序配置文件 ├── routes # 路由封装 ├── sitemap.json ├── store # 全局状态 ├── utils # 工具库 ├── wxs # wxs 工具库 └── yarn.lock 13 directories, 11 files ``` ## 安装 ```shell # 克隆 git clone git@gitee.com:TinsFox/report-for-repair-weapp.git # 安装依赖 cd report-for-repair-weapp npm install # 建议不要用 cnpm 安装 会有各种诡异的bug 可以通过如下操作解决 npm 下载速度慢的问题 npm install --registry=https://registry.npm.taobao.org # 将后端jar包请联系(fox fox@tinsfox.com获取)复制到本目录下或者进入后端仓库进行本地构建 java -jar classrepair-system-1.0.0.jar # 使用微信开发者工具导入 # 在这一步的时候你可能会卡住,因为APPID没有给你授权,直接导入是不行的,请联系fox(fox@tinsfox.com)进行APPID授权 ``` > 参考资料 [~~路由封装~~](https://github.com/hellolad/mini-router) 因为传参方式是使用缓存而弃用 [setData方法修改data对象指定属性](https://blog.csdn.net/suabia/article/details/108634025) [git commit 规范指南](https://segmentfault.com/a/1190000009048911) [Commit message 和 Change log 编写指南](http://www.ruanyifeng.com/blog/2016/01/commit_message_change_log.html) [语义化版本 2.0.0](https://semver.org/lang/zh-CN/) [如何删除GitHub中的所有提交历史记录](https://cloud.tencent.com/developer/ask/30403) [npm dependencies/devDependencies... 详解](https://segmentfault.com/a/1190000022559498)