FEAT => 本次更新项目为:
初始化appbuild
This commit is contained in:
74
Appbuild/config.js
Normal file
74
Appbuild/config.js
Normal file
@@ -0,0 +1,74 @@
|
||||
// 应用配置文件
|
||||
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;
|
||||
Reference in New Issue
Block a user