Files
cunkebao_v3/Appbuild/config.js
超级老白兔 9193bda39f FEAT => 本次更新项目为:
初始化appbuild
2025-07-31 17:41:43 +08:00

75 lines
1.8 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 应用配置文件
const config = {
// 目标网站配置
webConfig: {
// 主要目标网站URL请替换为您的实际网站
mainUrl: "https://kr-op.quwanzhi.com",
// // 备用网站URL如果主网站无法访问
fallbackUrl: "https://kr-op.quwanzhi.com",
// 测试页面URL用于开发测试
testUrl: "https://kr-op.quwanzhi.com",
// testUrl: "http://localhost:3000/test/postMessage",
// 是否启用HTTPS强制跳转
forceHttps: false,
// 是否允许跨域请求
allowCrossOrigin: true,
},
// 应用配置
appConfig: {
// 应用名称
appName: "存客宝",
// 应用版本
version: "1.0.0",
// 是否启用超时检测
enableTimeout: false, // 设为 false 禁用超时检测
// 加载超时时间(毫秒)- 设为0禁用超时检测
loadingTimeout: 30000, // 增加到30秒
// 是否启用调试模式
debug: true, // 开发时设为 true生产时设为 false
// 是否使用测试页面
useTestPage: true, // 开发时设为 true生产时设为 false
},
// 通信配置
communication: {
// 消息类型定义
messageTypes: {
GET_USER_INFO: "getUserInfo",
GET_DEVICE_INFO: "getDeviceInfo",
NAVIGATE: "navigate",
SHARE: "share",
PAYMENT: "payment",
TOAST: "toast",
ALERT: "alert",
CONFIRM: "confirm",
},
// 允许的域名白名单
allowedDomains: ["kr-op.quwanzhi.com", "quwanzhi.com", "localhost"],
},
// 用户配置
userConfig: {
// 默认用户信息
defaultUser: {
id: "user123",
name: "测试用户",
avatar: "https://example.com/avatar.jpg",
phone: "13800138000",
email: "test@example.com",
},
},
};
export default config;