refactor: 移除愈心魔方页同级 cover-view,顶栏仅用 image logo(202608280)

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jackyu66git
2026-08-25 04:01:10 +08:00
co-authored by Cursor
parent ec4c8c9bd9
commit d1f3f79ca5
2 changed files with 1 additions and 17 deletions
-16
View File
@@ -3,14 +3,12 @@
<view class="yxg-page">
<view class="yxg-nav-bar" :style="navBarStyle">
<view class="yxg-nav-row" :style="navRowStyle">
<!-- #ifndef MP-WEIXIN -->
<image
class="yxg-nav-logo"
:src="YXG_MP_LOGO_URL"
mode="aspectFit"
:style="logoStyle"
/>
<!-- #endif -->
</view>
</view>
<web-view
@@ -20,16 +18,6 @@
@load="onWebLoad"
@error="onWebError"
/>
<!-- #ifdef MP-WEIXIN -->
<!-- 同级 cover仅承载 logo不在 web-view 普通 image 会被 web-view 盖住 -->
<cover-view class="yxg-logo-cover" :style="logoCoverStyle">
<cover-image
class="yxg-nav-logo"
:src="YXG_MP_LOGO_URL"
:style="coverLogoStyle"
/>
</cover-view>
<!-- #endif -->
</view>
</template>
@@ -69,15 +57,11 @@ const headH = statusBarH + navBarH
const webviewH = windowH - headH
const logoH = Math.min(menuH, 30)
const logoW = Math.min(Math.round((logoH * 598) / 130), Math.floor(screenW * 0.4))
const logoLeft = Math.floor((screenW - logoW) / 2)
const logoTop = Math.floor((navBarH - logoH) / 2)
const navBarStyle = `height:${headH}px;padding-top:${statusBarH}px;box-sizing:border-box;`
const navRowStyle = `height:${navBarH}px;`
const logoStyle = `width:${logoW}px;height:${logoH}px;`
const webviewStyle = `top:${headH}px;height:${webviewH}px;`
const logoCoverStyle = `position:fixed;top:${statusBarH}px;left:0;width:${screenW}px;height:${navBarH}px;z-index:9999;`
const coverLogoStyle = `position:absolute;left:${logoLeft}px;top:${logoTop}px;width:${logoW}px;height:${logoH}px;`
const h5Url = computed(
() =>
+1 -1
View File
@@ -2,7 +2,7 @@
import { LOCAL_H5_HOST, USE_LOCAL_H5 } from './yxgConfig.local.js'
const PROD_BASE = 'https://h5.yuxingu.com.cn/psy/'
const PROD_VERSION = '202608279'
const PROD_VERSION = '202608280'
/** 愈心魔方顶栏 logo(小程序包内 static,不请求外网) */
export const YXG_MP_LOGO_URL = '/static/n-main/yxg-brand-logo.png'