This commit is contained in:
lcj
2026-08-18 09:22:32 +08:00
parent e2cb135124
commit e53994ba56
8 changed files with 339 additions and 45 deletions
+3
View File
@@ -4,6 +4,7 @@
// 桌面加载时整页已是手机尺寸但默认贴左。这里只补两件事:
// 1) 宽屏下把页面列居中(见样式);
// 2) 跨越 768 阈值缩放窗口时重载一次,让 px 基准与当前视口一致。
import auth from '@/common/auth.js'
let _wide = null
function adaptWideScreen() {
const w = document.documentElement.clientWidth
@@ -20,6 +21,8 @@
onLaunch: function(e) {
console.log('App Launch')
// #ifdef H5
// xuchao: 冷启动即抓取 URL 上的身份参数(?openId 直传 / ?order 解码码)入缓存,幂等
auth.captureIdentity()
adaptWideScreen()
window.addEventListener('resize', adaptWideScreen)
// #endif