first commit

This commit is contained in:
Your Name
2026-09-08 11:40:15 +08:00
commit a5353f7eb5
9568 changed files with 1646214 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
// 应用配置文件
// 根据环境设置API基础URL
let API_BASE_URL = 'http://localhost:8000/api'
// 如果是生产环境,修改为实际的API地址
if (typeof uni !== 'undefined') {
// 小程序环境
const accountInfo = uni.getAccountInfoSync()
if (accountInfo.miniProgram.envVersion === 'release') {
// 生产环境
API_BASE_URL = 'https://your-production-api.com/api'
} else if (accountInfo.miniProgram.envVersion === 'trial') {
// 体验版
API_BASE_URL = 'https://your-trial-api.com/api'
}
}
export default {
API_BASE_URL,
// 其他配置...
APP_NAME: '医疗小程序',
APP_VERSION: '1.0.0'
}