Files
yuxingu-Miniprogram-dev/util/yxgConfig.js
T
jackyu66gitandCursor cfe13cbecf feat: 愈心魔方原生 cover 顶栏 logo 与本地 H5 联调
WebView 全屏 + cover-image 网络 logo;开发模式自动指向本机 Vite,同步 H5 品牌 logo。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-25 01:38:33 +08:00

16 lines
617 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 } from './yxgConfig.local.js'
const PROD_BASE = 'https://h5.yuxingu.com.cn/psy/'
const PROD_VERSION = '202608256'
const isDev = import.meta.env.DEV
export const YXG_H5_VERSION = isDev ? 'local' : PROD_VERSION
export const YXG_H5_BASE = isDev ? `http://${LOCAL_H5_HOST}/psy/` : PROD_BASE
/** cover-image 仅支持网络图/临时路径,不能用 /static */
export const YXG_H5_LOGO_URL = isDev
? `http://${LOCAL_H5_HOST}/psy/logo.png`
: `${PROD_BASE}logo.png`
export const YXG_H5_HOME_URL = `${YXG_H5_BASE}?mp=1&v=${YXG_H5_VERSION}`