Files
yuxingu-Miniprogram-dev/util/yxgConfig.js
T
jackyu66git b43247c20a test: cover 顶栏 logo 改用 miniapp yxg-mp 静态地址
便于先验证 miniapp 域名下图标加载与展示效果。
2026-08-25 01:43:42 +08:00

17 lines
679 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 PROD_LOGO_URL = 'https://miniapp.yuxingu.com.cn/yxg-mp/logo.png'
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_LOGO_URL
export const YXG_H5_HOME_URL = `${YXG_H5_BASE}?mp=1&v=${YXG_H5_VERSION}`