53 lines
1.3 KiB
TypeScript
53 lines
1.3 KiB
TypeScript
export const APP_INFO : {
|
|
name : string;
|
|
version : string;
|
|
platform : string;
|
|
} = {
|
|
// 版本号需与 src/manifest.json 的 versionName / package.json 的 version 保持一致(改版本时三处同步)
|
|
name: "有家相册",
|
|
version: "1.0.2",
|
|
platform: getPlatform(),
|
|
};
|
|
|
|
export const UVIEW_PRO_INFO = {
|
|
name: "uview-pro",
|
|
version: "0.4.7",
|
|
buildTime: "2025-12-19",
|
|
};
|
|
|
|
function getPlatform() {
|
|
let platform = uni.getSystemInfoSync().platform;
|
|
if (platform) {
|
|
return platform;
|
|
}
|
|
// #ifdef H5
|
|
platform = "H5";
|
|
// #endif
|
|
// #ifdef MP-WEIXIN
|
|
platform = "微信小程序";
|
|
// #endif
|
|
// #ifdef MP-ALIPAY
|
|
platform = "支付宝小程序";
|
|
// #endif
|
|
// #ifdef APP-PLUS
|
|
platform = "App";
|
|
// #endif
|
|
// #ifdef APP-HARMONY
|
|
platform = "HarmonyOS";
|
|
// #endif
|
|
platform = "未知平台";
|
|
return platform;
|
|
}
|
|
|
|
export const ONBOARDING_STORAGE_BASE_KEY = `guide-onboarded-${APP_INFO.version}`;
|
|
|
|
export const GUIDE_TABS_KEY = `guide-page-tabs-${APP_INFO.version}`;
|
|
|
|
export const GUIDE_FAB_KEY = `guide-page-fab-${APP_INFO.version}`;
|
|
|
|
export const GUIDE_TABBAR_KEY = `guide-page-tabbar-${APP_INFO.version}`;
|
|
|
|
export const GUIDE_THEME_SWITCHER_KEY = `guide-theme-switcher-${APP_INFO.version}`;
|
|
|
|
export const GUIDE_EXPERIENCE_KEY = `guide-experience-entry-${APP_INFO.version}`;
|