12312
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user