页面白屏,没有请求,没有执行任何wx的api
发布于 6 年前 作者 qshao 14638 次浏览 来自 问答

问题:线上小程序,部分手机打开后,不限授权弹窗,不能执行任何操作,页面白屏,只显示出静态部分,而且CDN的图片也都加载不出来;从用户日志中看到小程序没有执行任何wx的api。

删除小程序,重新搜索,依然是白屏。

<br/>

请问大神们,有遇到过这样的情况吗?

  1. 线上小程序基础版最低版本设置为:1.9.9;

  2. 代码内使用了,ES7 async await,上传线上代码是没有勾线ES6转ES5

<br/>

日志:

  1. 出现白屏的日志:

2018-11-30 0:47:56 [log] page pages/position/position onLoad have been invoked

2018-11-30 0:47:56 [log] page pages/position/position onShow have been invoked

2018-11-30 0:47:56 [log] page pages/position/position onReady have been invoked

2018-11-30 0:48:3 [log] page pages/position/position onHide have been invoked

2018-11-30 0:48:3 [log] page pages/resume/resume/resume onLoad have been invoked

2018-11-30 0:48:3 [log] page pages/resume/resume/resume onShow have been invoked

2018-11-30 0:48:3 [log] page pages/resume/resume/resume onReady have been invoked

2018-11-30 0:48:4 [log] page pages/resume/resume/resume onHide have been invoked

2018-11-30 0:48:4 [log] page pages/position/position onShow have been invoked

2018-11-30 0:48:9 [log] page pages/position/position onHide have been invoked

2018-11-30 0:48:9 [log] page pages/mine/mine onLoad have been invoked

2018-11-30 0:48:9 [log] page pages/mine/mine onShow have been invoked

2018-11-30 0:48:9 [log] page pages/mine/mine onReady have been invoked

2018-11-30 0:48:11 [log] page pages/mine/mine onHide have been invoked

2018-11-30 0:48:11 [log] page pages/position/position onShow have been invoked

2018-11-30 0:48:20 [log] page pages/position/position onHide have been invoked

2018-11-30 0:48:28 [log] page pages/position/position onShow have been invoked

2018-11-30 0:48:32 [log] page pages/position/position onHide have been invoked

2018-11-30 0:48:32 [log] page pages/resume/resume/resume onShow have been invoked

2018-11-30 0:48:33 [log] page pages/resume/resume/resume onHide have been invoked

2018-11-30 0:48:33 [log] page pages/mine/mine onShow have been invoked

2018-11-30 0:48:36 [log] page pages/mine/mine onHide have been invoked

  1. 正常显示的日志:

2018-12-4 12:20:18 [log] wx.getNetworkType api invoke

2018-12-4 12:20:18 [log] wx.getNetworkType success callback with msg getNetworkType:ok

2018-12-4 12:20:18 [log] wx.getSystemInfo api invoke

2018-12-4 12:20:18 [log] wx.getSystemInfo success callback with msg getSystemInfo:ok

2018-12-4 12:20:18 [log] wx.getStorageSync api invoke

2018-12-4 12:20:18 [log] wx.getStorageSync return

2018-12-4 12:20:18 [log] wx.setStorageSync api invoke

2018-12-4 12:20:18 [log] wx.setStorageSync return

2018-12-4 12:20:18 [log] wx.getStorageSync api invoke

2018-12-4 12:20:18 [log] wx.getStorageSync return

2018-12-4 12:20:18 [log] wx.getStorageSync api invoke

2018-12-4 12:20:18 [log] wx.getStorageSync return

2018-12-4 12:20:18 [log] wx.setStorageSync api invoke

2018-12-4 12:20:18 [log] wx.setStorageSync return

2018-12-4 12:20:18 [log] wx.setStorageSync api invoke

2018-12-4 12:20:18 [log] wx.setStorageSync return

2018-12-4 12:20:18 [log] wx.getStorageSync api invoke

2018-12-4 12:20:18 [log] wx.getStorageSync return

2018-12-4 12:20:18 [log] wx.request api invoke with seq 0

2018-12-4 12:20:18 [log] wx.getStorageSync api invoke

2018-12-4 12:20:18 [log] wx.getStorageSync return

2018-12-4 12:20:18 [log] wx.request api invoke with seq 0

2018-12-4 12:20:18 [log] wx.getStorageSync api invoke

2018-12-4 12:20:18 [log] wx.getStorageSync return

2018-12-4 12:20:18 [log] wx.request api invoke with seq 0

2018-12-4 12:20:18 [log] wx.getStorageSync api invoke

2018-12-4 12:20:18 [log] wx.getStorageSync return

2018-12-4 12:20:18 [log] wx.request api invoke with seq 0

2018-12-4 12:20:18 [log] wx.getStorageSync api invoke

2018-12-4 12:20:18 [log] wx.getStorageSync return

2018-12-4 12:20:18 [log] wx.request api invoke with seq 0

2018-12-4 12:20:18 [log] wx.getStorageSync api invoke

2018-12-4 12:20:18 [log] wx.getStorageSync return

2018-12-4 12:20:18 [log] wx.request api invoke with seq 0

2018-12-4 12:20:18 [log] wx.getStorageSync api invoke

2018-12-4 12:20:18 [log] wx.getStorageSync return

2018-12-4 12:20:18 [log] wx.request api invoke with seq 0

2018-12-4 12:20:18 [log] wx.getStorageSync api invoke

2018-12-4 12:20:18 [log] wx.getStorageSync return

2018-12-4 12:20:18 [log] wx.request api invoke with seq 0

2018-12-4 12:20:18 [log] wx.getStorageSync api invoke

2018-12-4 12:20:18 [log] wx.getStorageSync return

2018-12-4 12:20:18 [log] wx.request api invoke with seq 0

2018-12-4 12:20:18 [log] wx.getStorageSync api invoke

2018-12-4 12:20:18 [log] wx.getStorageSync return

2018-12-4 12:20:18 [log] wx.request api invoke with seq 0

2018-12-4 12:20:18 [log] wx.getStorageSync api invoke

2018-12-4 12:20:18 [log] wx.getStorageSync return

2018-12-4 12:20:18 [log] wx.request api invoke with seq 0

2018-12-4 12:20:18 [log] wx.request api invoke with seq 0

2018-12-4 12:20:18 [log] App onLaunch have been invoked

2018-12-4 12:20:18 [log] App onShow have been invoked

2018-12-4 12:20:18 [log] wx.canIUse api invoke

2018-12-4 12:20:41 [log] wx.request api invoke with seq 0

2018-12-4 12:20:43 [log] wx.request api invoke with seq 0

2018-12-4 12:20:43 [log] wx.navigateTo api invoke

2018-12-4 12:20:43 [log] wx.getStorageSync api invoke

2018-12-4 12:20:43 [log] wx.getStorageSync return

2018-12-4 12:20:43 [log] wx.getStorageSync api invoke

2018-12-4 12:20:43 [log] wx.getStorageSync return

2018-12-4 12:20:43 [log] wx.request api invoke with seq 0

2018-12-4 12:20:43 [log] page pages/login/login onLoad have been invoked

2018-12-4 12:20:43 [log] page pages/login/login onShow have been invoked

2018-12-4 12:20:44 [log] page pages/login/login onReady have been invoked

截图:

3 回复

我的小程序也是基本大多数iphone6的用户都会出现canvas不绘制的情况。其他手机型号,包括iphone的其他型号都没这个问题。虽然说我们这边可以通过其他方式去解决这个问题。但是iphone6的这个独特问题确实让人伤脑筋。

开发版本有试过吗?这几个机型?

+1 我们的用户也有部分出现这些问题,而且机型很广泛

不是说某机型所有手机都不行,只是个别。

怀疑是他们手机的问题- -

回到顶部