fix(mp/store,sales): 引入 systemInfo 兼容层替换废弃 getSystemInfo
与 usedcar 保持一致,新增 apps/mp/{store,sales}/utils/systemInfo.js 兼容层
(合并 getDeviceInfo/getWindowInfo/getAppBaseInfo,并保留 environment 解析以对齐
企微判断),将两应用第一方代码里的 wx.getSystemInfoSync / wx.getSystemInfo
统一改为 getSystemInfoSync / getSystemInfo,消除基础库弃用告警:
- 各页面/组件读取 windowWidth/windowHeight/pixelRatio/SDKVersion 等字段
- storageApi / util / utils_wx 包装器改为回调式兼容接口
- NavigationBar 的 getSystemInfo().then 改同步调用,去掉异步时序
- 兼容层对旧基础库保留一次 wx.getSystemInfoSync 兜底(environment)
vendored 库(echarts / mp-html / sentry-miniapp)不动。
Showing
29 changed files
with
311 additions
and
66 deletions
apps/mp/sales/utils/systemInfo.js
0 → 100644
apps/mp/store/utils/systemInfo.js
0 → 100644
-
Please register or sign in to post a comment