showloading mask true 仍然穿透
发布于 5 年前 作者 pcao 10489 次浏览 来自 问答
  • 当前 Bug 的表现(可附上截图)

showLoading mask true,在调用了 showToast之后, mask true就不再生效了

  • 预期表现

showLoading mask true 一直生效

  • 复现路径

在showLoading 延时若干秒后,调用showToast,再执行showLoading mask 无效,复现方法,下面给出

  • 提供一个最简复现 Demo

testShowLoading:function(){

wx.showLoading({

title: ‘Test’,

mask:true,

})

setTimeout(function(){

wx.hideLoading();

wx.showToast({

title: ‘Test2’,

})

},5000)

},

2 回复

问题未复现。请提供一下出现问题的机型和微信版本,以及能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

showLoading和showToast同时只能显示一个,你给showLoading都关了哪来mask,你给toast加mask呗

回到顶部