first commit

This commit is contained in:
2025-10-27 23:13:08 +08:00
commit 476c5e7658
2968 changed files with 49547 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
/**
* 配置模块统一导出
* 直接定义配置,简单明了
*/
// 常用配置 - 直接定义
export const apiBaseUrl = 'https://apigo.yunzer.cn'
export const apiTimeout = 10000
export const appName = '企业办公移动应用'
export const appVersion = '1.0.0'
export const debug = true
// 环境判断
export const isDev = true
export const isTest = false
export const isProd = false
// 默认导出
export default {
apiBaseUrl,
apiTimeout,
appName,
appVersion,
debug,
isDev,
isTest,
isProd
}
+126
View File
@@ -0,0 +1,126 @@
/**
* 启动画面配置文件
*/
export const splashConfig = {
// 应用信息
app: {
name: '企业办公',
nameEn: 'Enterprise Office',
version: '1.0.0',
logo: '🏢'
},
// 启动画面设置
display: {
// 最小显示时间(毫秒)
minDuration: 2000,
// 最大显示时间(毫秒)
maxDuration: 5000,
// 是否在热启动时显示
showOnWarmStart: false,
// 是否显示版本信息
showVersion: true
},
// 加载步骤配置
loadingSteps: [
{
text: '正在初始化...',
duration: 800,
action: 'init',
icon: '⚙️'
},
{
text: '加载用户数据...',
duration: 1000,
action: 'loadUserData',
icon: '👤'
},
{
text: '同步工作数据...',
duration: 800,
action: 'syncWorkData',
icon: '📊'
},
{
text: '准备就绪...',
duration: 600,
action: 'ready',
icon: '✅'
}
],
// 动画配置
animation: {
// 背景动画持续时间
backgroundDuration: 6000,
// Logo动画延迟
logoDelay: 0,
// 加载动画延迟
loadingDelay: 500,
// 版本信息延迟
versionDelay: 1000
},
// 主题配置
theme: {
// 背景渐变
background: 'linear-gradient(135deg, #667eea 0%, #764ba2 100%)',
// 主色调
primaryColor: '#667eea',
// 文字颜色
textColor: '#ffffff',
// 次要文字颜色
secondaryTextColor: 'rgba(255, 255, 255, 0.8)'
}
}
/**
* 获取启动画面配置
*/
export function getSplashConfig() {
return splashConfig
}
/**
* 更新启动画面配置
*/
export function updateSplashConfig(newConfig) {
Object.assign(splashConfig, newConfig)
}
/**
* 获取应用信息
*/
export function getAppInfo() {
return splashConfig.app
}
/**
* 获取显示设置
*/
export function getDisplaySettings() {
return splashConfig.display
}
/**
* 获取加载步骤
*/
export function getLoadingSteps() {
return splashConfig.loadingSteps
}
/**
* 获取动画配置
*/
export function getAnimationConfig() {
return splashConfig.animation
}
/**
* 获取主题配置
*/
export function getThemeConfig() {
return splashConfig.theme
}