小程序扫码首次进入指定页面后,页面白屏,为什么?

小程序 文章 2022-01-25 10:40 697 0 全屏看文

AI助手支持GPT4.0

小程序扫码首次进入指定页面后,页面白屏,为什么?After the Mini Program scans the code and enters the specified page for the first time, the page is blank, why?

小程序扫码首次进入指定页面后,页面白屏,为什么?

微信通过扫小程序码进入领券页面后,首次进入,页面白屏,再次进入就好了。在首次进入白屏的时候,前端控制台没有错误,后端日志也没有错误,在页面的onShow里面会有页面loading,但是白屏状态下页面没有loading,推断白屏状况下没有进入页面的任何小程序生命周期, 请问有哪些可能的原因导致?

After wechat enters the coupon collecting page by scanning the small program code, it will enter the page for the first time, and the page will be blank. Just enter it again. When entering the white screen for the first time, there is no error in the front-end console and the back-end log. There will be page loading in Onshow of the page, but the page is not loaded in the white screen state. It is inferred that there is no applet life cycle of the page in the white screen state. What are the possible reasons?

回答:

Nolan麒:

试试onload

有赞:

用问题机型扫体验码,开启debug模式(右上角三个点图标),然后查看相关报错信息

Sakura:已收集到的反馈,跟机型没有关系,是偶现的,在debug打开的情况下,没有任何错误打印,后端接口在同一时间也没有错误日志,奇怪的是为什么onShow生命周期里面的loading也没有出现
brave:

自查代码逻辑。

Sakura:查过没有其他问题,如果有问题控制台会打印错误,而且只有首次白屏,再次进入就好了,现在首次扫码进入都没有走任何页面的生命周期,因为页面的onShow里面有loading也没有出现。

-EOF-

AI助手支持GPT4.0


国内超级便宜服务器

摸鱼人热门新闻聚合

钻级赞助商 我要加入

开发者在线工具

第三方支付技术请加QQ群

相关文章
开发者工具页面间数据传递正常,但是真机调试时数据传递不过来?
小程序自带的发送给朋友和 button 的分享有啥区别吗?
微信小程序 个人中心 页面可以根据用户不同身份显示不同的页面吗?
我已经写了很多原创文章,为什么还是不能给自己的文章加原创?
为何在开发者工具调佣wx.getUserInfo无法弹出弹框?
随便看看
仙剑传奇神秘宝盒和.赌徒的信和龙飞扬的证明用途 1662
仙剑传奇狂暴神彩刃、灵动神彩剑、祈祷神彩仗制作任务 1671
仙剑传奇各种任务 2317
仙剑传奇拿到龙皇天下将进入古墓 1485
仙剑传奇的领袖戒指的特殊属性 1049
仙剑传奇李家村的坐标 1997
仙剑传奇转生炼狱图解 3535
微信服务号广告结算步骤 1673
推广外卖赚点生活费 1148
支付宝ISV模式创建小程序的一些笔记 785