Files
lingxiao865 6c6fe3d0d6 first commit
2025-09-18 12:39:54 +08:00

1 line
403 B
JavaScript

export const getObserver=(e,t)=>new Promise(o=>{e.createIntersectionObserver(e).relativeToViewport().observe(t,e=>{o(e)})});export const getWindowInfo=()=>wx.getWindowInfo&&wx.getWindowInfo()||wx.getSystemInfoSync();export const getAppBaseInfo=()=>wx.getAppBaseInfo&&wx.getAppBaseInfo()||wx.getSystemInfoSync();export const getDeviceInfo=()=>wx.getDeviceInfo&&wx.getDeviceInfo()||wx.getSystemInfoSync();