详细问题描述
(DCloud产品不会有明显的bug,所以你遇到的问题大都是在特定环境下才能重现的问题,请仔细描述你的环境和重现方式,否则DCloud很难排查解决你的问题)
[内容]
重现步骤
[步骤]
1、真机调试 荣耀note8 EMUI8.0 Android8.0 4G内存 屏幕2560*1440
常出现 [结果]里的问题,然后 屏幕白屏,只显示 tabbar按钮,只有tabbar可以切换,其他内容都是白屏
2、打包出来的 apk 安装 也会常出现 以上问题
[结果]
TypeError: Cannot read property '__needTouchEvent__' of undefined
16:35:18.154 webviewScriptError
16:35:18.176 Cannot read property '__needTouchEvent__' of undefined
16:35:18.197 TypeError: Cannot read property '__needTouchEvent__' of undefined
16:35:18.242 Uncaught TypeError: Cannot read property '__needTouchEvent__' of undefined at __uniappview.html:1
16:35:18.265 TypeError: Cannot read property 'id' of undefined
16:35:18.289 at window.UniLaunchWebviewReady (file:///storage/emulated/0/Android/data/io.dcloud.HBuilder/apps/HBuilder/www/app-view.js:14261:103)
16:35:18.312 at file:///storage/emulated/0/Android/data/io.dcloud.HBuilder/apps/HBuilder/www/app-view.js:14263:9
16:35:18.336 at file:///storage/emulated/0/Android/data/io.dcloud.HBuilder/apps/HBuilder/www/app-view.js:14264:3 at uniapp://ready:182
16:35:18.358 webviewScriptError
16:35:18.381 Cannot read property 'id' of undefined
16:35:18.406 TypeError: Cannot read property 'id' of undefined
16:35:18.428 at window.UniLaunchWebviewReady (file:///storage/emulated/0/Android/data/io.dcloud.HBuilder/apps/HBuilder/www/app-view.js:14261:103)
16:35:18.451 at file:///storage/emulated/0/Android/data/io.dcloud.HBuilder/apps/HBuilder/www/app-view.js:14263:9
16:35:18.474 at file:///storage/emulated/0/Android/data/io.dcloud.HBuilder/apps/HBuilder/www/app-view.js:14264:3 at uniapp://ready:182
16:35:18.499 Uncaught TypeError: Cannot read property 'id' of undefined at app-view.js:14261
[期望]
[如果语言难以表述清晰,拍一个视频或截图,有图有真相]
IDE运行环境说明
[HBuilder 或 HBuilderX。如果你用其他工具开发uni-app,也需要在此说明]
HBuilderX
[IDE版本号]
2.4.2.20191115
[windows版本号]
[mac版本号]
10.15 (19A602)
uni-app运行环境说明
[运行端是h5或app或某个小程序?]
app
[运行端版本号]
[项目是cli创建的还是HBuilderX创建的?如果是cli创建的,请更新到最新版cli再试]
HBuilderX构建
[编译模式是老模板模式还是新的自定义组件模式?]
自定义组件模式
App运行环境说明
[Android版本号]
8.0
[iOS版本号]
[手机型号]
荣耀note8 EMUI8.0
[模拟器型号]
附件
[IDE问题请提供HBuilderX运行日志。菜单帮助-查看运行日志,点右键打开文件所在目录,将log文件压缩成zip包上传]
[App问题请提供可重现问题的代码片段,你补充的细一点,问题就解决的快一点]
[App安装包或H5地址]
http://app.xiaocaogo.com/download
[可重现代码片段]
联系方式
[邮箱]
629526514@qq.com
老哥教教我
请问解决了吗
2020-10-12 16:46