Initial commit

This commit is contained in:
admin
2025-12-09 14:37:41 +08:00
parent b8648c2861
commit 1384bb1d4a
7 changed files with 139 additions and 9 deletions

View File

@@ -0,0 +1,37 @@
# GeminiWX 微信小程序
## 1. 简介
GeminiWX 的移动端入口,提供学员端和部分管理功能。
## 2. 快速开始
### 环境准备
- 下载并安装 [微信开发者工具](https://developers.weixin.qq.com/miniprogram/dev/devtools/download.html)。
### 导入项目
1. 打开微信开发者工具。
2. 选择 **导入项目**
3. 选择 `geminiWX/wechat-mini-program` 目录。
4. 设置 **AppID** (若无 AppID 可使用测试号)。
### 配置接口地址
编辑 `config/env.js` 文件:
```javascript
const env = 'development' // 切换 'development' 或 'production'
const configs = {
development: {
// 请将此处 IP 修改为你本地后端的 IP 地址 (注意: 小程序模拟器支持 localhost, 但真机调试需要局域网 IP)
baseUrl: 'http://127.0.0.1:8000/api'
},
production: {
baseUrl: 'https://your-domain.com/api'
}
}
module.exports = configs[env]
```
## 3. 注意事项
- 确保后端服务已启动且网络可达。
- 开发环境如果不使用 HTTPS请在微信开发者工具中勾选 "不校验合法域名、web-view业务域名、TLS版本以及HTTPS证书"。