收藏
回答

页面白屏,没有请求,没有执行任何wx的api

问题模块 框架类型 问题类型 操作系统 操作系统版本 手机型号 微信版本
客户端 小程序 Bug iOS ios9.3.1、ios9.3.3、ios12.0.1 iphone6s plus、iphone6s 、iphone7 6.7.4

问题:线上小程序,部分手机打开后,不限授权弹窗,不能执行任何操作,页面白屏,只显示出静态部分,而且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

2. 正常显示的日志:

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

截图:





最后一次编辑于  2018-12-05  (未经腾讯允许,不得转载)
回答关注问题邀请回答
收藏

3 个回答

  • 是柿子啊
    是柿子啊
    2018-12-05

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

    2018-12-05
    赞同
    回复 3
    • 卡不动
      卡不动
      2018-12-05

          这些版本都试了,只要之前是出问题的手机,使用开发版一样还是白屏。

      2018-12-05
      回复
    • 是柿子啊
      是柿子啊
      2018-12-06回复卡不动

      提供下appid

      2018-12-06
      回复
    • 卡不动
      卡不动
      2018-12-07回复是柿子啊

      问题已解决,非常感谢大家的帮助。 我们使用了ES7 async await,在开发工具中上传代码时没有勾选ES6转ES5选项,就导致了低版本ios系统,小程序SDK报错阻止代码运行出现白屏的现象。

      2018-12-07
      回复
  • A-聪
    A-聪
    2018-12-06

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

    2018-12-06
    赞同
    回复 1
    • 卡不动
      卡不动
      2018-12-07

      小程序底层也都是webview吧,低版本系统对canvas支持不好,导致不绘制呢。

      2018-12-07
      回复
  • 97
    97
    2018-12-06

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


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


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

    2018-12-06
    赞同
    回复