New Huajishe Check ChaoXing

This commit is contained in:
e2hang
2025-10-01 10:01:52 +08:00
parent 240b884eac
commit 80be8ae3cf
1094 changed files with 61709 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
export const getObserver = (context, selector) => {
return new Promise((resolve, reject) => {
context
.createIntersectionObserver(context)
.relativeToViewport()
.observe(selector, (res) => {
resolve(res);
});
});
};
export const getWindowInfo = () => {
return wx.getWindowInfo ? wx.getWindowInfo() || wx.getSystemInfoSync() : wx.getSystemInfoSync();
};
export const getAppBaseInfo = () => {
return wx.getAppBaseInfo ? wx.getAppBaseInfo() || wx.getSystemInfoSync() : wx.getSystemInfoSync();
};
export const getDeviceInfo = () => {
return wx.getDeviceInfo ? wx.getDeviceInfo() || wx.getSystemInfoSync() : wx.getSystemInfoSync();
};