引入方式 [图片]
小程序开发者工具基础库2.26.2以上引用 mini-shop-plugin 均会报错,怎么解决?[图片] 开发者工具的基础库选择2.26.2-2.28.0 均会出现运行报错,导致应用页面空白。基础库版本 <= 2.26.1 小程序正常运行 VM2548:9 app.js错误: TypeError: Cannot assign to read only property 'reLaunch' of object '[object Object]' at VM2533 appservice.js:14430 at Object.exports.hijackNecessaryAPI (VM2533 appservice.js:14430) at VM2533 appservice.js:14409 at _ (WASubContext.js?t=wechat&s=1669642689624&v=2.28.0:1) at WASubContext.js?t=wechat&s=1669642689624&v=2.28.0:1 at Object.module.exports (VM2533 appservice.js:15378) at v (WASubContext.js?t=wechat&s=1669642689624&v=2.28.0:1) at app.js? [sm]:9 at S (WASubContext.js?t=wechat&s=1669642689624&v=2.28.0:1) at <anonymous>:7:9(env: macOS,mp,1.06.2211222; lib: 2.28.0) (anonymous) @ VM2548:9 doWhenAllScriptLoaded @ VM2469:12024 scriptLoaded @ VM2469:12052 (anonymous) @ VM2469:12077 Promise.then (async) (anonymous) @ VM2469:12098 (anonymous) @ VM2469:12102 loadScripts @ assubloader.js:1 async function (async) loadScripts @ assubloader.js:1 loadAppResourceScripts @ assubloader.js:1 (anonymous) @ appservice.app.js:5 evalScript @ VM20 subasdebug.js:1 I @ VM20 subasdebug.js:1 t.loadJsFiles @ VM20 subasdebug.js:1 batchLoadJsFiles @ WAServiceMainContext.js?t=wechat&s=1669642689624&v=2.28.0:1 loadJsFiles @ WAServiceMainContext.js?t=wechat&s=1669642689624&v=2.28.0:1 L @ WAServiceMainContext.js?t=wechat&s=1669642689624&v=2.28.0:1 (anonymous) @ WAServiceMainContext.js?t=wechat&s=1669642689624&v=2.28.0:1 Pe @ WAServiceMainContext.js?t=wechat&s=1669642689624&v=2.28.0:1 (anonymous) @ WAServiceMainContext.js?t=wechat&s=1669642689624&v=2.28.0:1 (anonymous) @ WAServiceMainContext.js?t=wechat&s=1669642689624&v=2.28.0:1 l.emit @ WAServiceMainContext.js?t=wechat&s=1669642689624&v=2.28.0:1 emit @ WAServiceMainContext.js?t=wechat&s=1669642689624&v=2.28.0:1 (anonymous) @ WAServiceMainContext.js?t=wechat&s=1669642689624&v=2.28.0:1 (anonymous) @ WAServiceMainContext.js?t=wechat&s=1669642689624&v=2.28.0:1 emit @ WAServiceMainContext.js?t=wechat&s=1669642689624&v=2.28.0:1 c @ VM17 asdebug.js:10 r @ VM17 asdebug.js:10 (anonymous) @ VM2446:13 Promise.then (async) (anonymous) @ VM2446:5 loadScripts @ assubloader.js:1 (anonymous) @ assubloader.js:1 e @ assubloader.js:1 (anonymous) @ assubloader.js:1 Promise.then (async) e @ assubloader.js:1 (anonymous) @ assubloader.js:1 Promise.then (async) e @ assubloader.js:1 (anonymous) @ assubloader.js:1 Promise.then (async) e @ assubloader.js:1 (anonymous) @ assubloader.js:1 Promise.then (async) e @ assubloader.js:1 proceedAsyncTasks @ assubloader.js:1 submitSerialAsyncTasks @ assubloader.js:1 (anonymous) @ VM2432:2 t.loadScripts @ VM17 asdebug.js:10 r @ VM17 asdebug.js:10 a.emit @ VM17 asdebug.js:1 set @ VM17 asdebug.js:10 (anonymous) @ VM17 asdebug.js:10 load (async) handleLoadStart @ VM17 asdebug.js:10 (anonymous) @ instanceframe?s=1669642730505:1 WAServiceMainContext.js?t=wechat&s=1669642689624&v=2.28.0:1 TypeError: Cannot assign to read only property 'reLaunch' of object '[object Object]' at VM2533 appservice.js:14430 at Object.exports.hijackNecessaryAPI (VM2533 appservice.js:14430) at VM2533 appservice.js:14409 at _ (WASubContext.js?t=wechat&s=1669642689624&v=2.28.0:1) at WASubContext.js?t=wechat&s=1669642689624&v=2.28.0:1 at Object.module.exports (VM2533 appservice.js:15378) at v (WASubContext.js?t=wechat&s=1669642689624&v=2.28.0:1) at app.js? [sm]:9 at S (WASubContext.js?t=wechat&s=1669642689624&v=2.28.0:1) at <anonymous>:7:9(env: macOS,mp,1.06.2211222; lib: 2.28.0) [PLUGIN LOG 2022/11/28 21:50:45] >>>minishop-plugin-version: 0.0.0
2022-11-29今天也发现这个问题~~ 好像已经修复了 我用 sysInfo.model.indexOf('iPhone 12')>-1 可以
小程序获取系统信息wx.getSystemInfo接口,iphone12 机型不适配 ?[图片]
2021-03-11