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

小程序 文章 2022-01-25 10:40 600 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群

相关文章
Java后台 后台如何向小程序前端传递String字符串?
用的免费版云开发,突然数据读取不了,是超出一天的读取限制原因吗?
分享朋友圈接口 onShareTimeline,不配置 title 的情况下,怎么标题是首页?
button中使用了loading,当做子组件使用,父组件中出现了异常情况?
web-view的jssdk如何引入vue项目及使用?
随便看看
企业微信通讯录账号被管理员误/恶意删除,怎么办? 8535
问题? 8257
如何快速搭建抽奖助手小程序(无需代码知识) 5316
许涛 大哥在吗, 要解冻小程序的时候提示信息主体不一致, 能帮忙看下吗? 6584
小程序搜一搜全称搜索不显示 麻烦解决一下!谢谢 5870
我的小程序广告收款主体是个体工商户,每个月邮寄两次发票很是麻烦,我年底的时候打包邮寄一次可以么? 5529
如何解决渲染层网络错误Failed to load media? 16771
小程序找号找回 释放昵称? 2787
我的小程序广告主收入5301,实际进账4406,是怎么回事呀? 2656
删除部分微信用户个人数据的通知,怎么删除? 5833