Files
yuxingu-Miniprogram-dev/util/yxgConfig.js
T
jackyu66gitandCursor ec4c8c9bd9 fix: 愈心魔方顶栏 logo 用同级 cover 叠在 web-view 上(202608279)
保留 yxg-nav-bar + web-view 兄弟结构;微信端普通 image 会被 web-view 盖住,
用页面级 cover-image 对齐导航行显示 logo。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-25 03:41:41 +08:00

17 lines
797 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 = '202608279'
/** 愈心魔方顶栏 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(与小程序顶栏无关) */
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}`