Files
yuxingu-Miniprogram-dev/util/yxgConfig.js
T
jackyu66gitandCursor 6e97f01378 fix: 代码质量扫描 — 分包降主包体积,登录页背景去 base64
- 主包仅保留 5 个 Tab 页,其余页面迁入 subPackages
- login-pop 177KB base64 背景改为 static/n-login/login-bg.jpg(16KB)
- H5 缓存版本 202608283

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-25 04:51:53 +08:00

17 lines
832 B
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.
/** 愈心魔方 H5digital-psychology user-h5 */
import { LOCAL_H5_HOST, USE_LOCAL_H5 } from './yxgConfig.local.js'
const PROD_BASE = 'https://h5.yuxingu.com.cn/psy/'
const PROD_VERSION = '202608283'
/** 愈心魔方顶栏 logo(小程序包内 static,不请求外网) */
export const YXG_MP_LOGO_URL = '/static/n-main/yxg-brand-logo.png'
const isDev = import.meta.env.DEV
const useLocalH5 = isDev && USE_LOCAL_H5
export const YXG_H5_VERSION = useLocalH5 ? 'local' : PROD_VERSION
export const YXG_H5_BASE = useLocalH5 ? `http://${LOCAL_H5_HOST}/psy/` : PROD_BASE
/** H5 内嵌场景远程 logo(历史 cover 方案遗留,小程序顶栏用 YXG_MP_LOGO_URL */
export const YXG_H5_LOGO_URL = 'https://miniapp.yuxingu.com.cn/yxg-mp/logo.png'
export const YXG_H5_HOME_URL = `${YXG_H5_BASE}?mp=1&v=${YXG_H5_VERSION}`