# wx_study_communication_platform_client **Repository Path**: luo-kunsong/wx_study_communication_platform_client ## Basic Information - **Project Name**: wx_study_communication_platform_client - **Description**: 学习交流平台微信小程序前端工程 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master_dev - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-11-08 - **Last Updated**: 2024-01-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: 微信小程序 ## README # 注意 ## 拉取代码 - 第一次拉取项目到本地请在git终端输入:git clone -b master_dev https://gitee.com/luo-kunsong/wx_study_communication_platform_client.git 其中-b表示分支名称 - 每一次开始开发之前请使用git pull拉取最新版本到本地 ## 关于项目 ### 发送请求 若遇到无法向本地服务端发送请求的情况,请在设置-项目设置中勾选“不校验合法域名”一项 发送请求被封装在了request/request.js中,之后在写代码发送请求时请遵循如下步骤: 1.先引入request ``` import { request } from "../../request/request.js" ``` 2.之后使用request发送请求,接收数据,例: ``` request({ url:"/user", }).then(result=>{ this.setData(result.data.data); }) ``` ### 页面路由 在底部导航栏设置了5个页面跳转选项:首页、发帖、资源、我的、管理员,便于开发,详细配置见app.json文件的tabBar一栏。暂时设置了7个页面:用户首页、管理员首页、发帖、帖子详情、资源页面、上传资源页面、个人主页,详细路由见app.json的pages一栏,如果需要新增页面,请在pages中自行添加。 ### 登录 登录报错时可尝试清空缓存再重试