小程序
小游戏
企业微信
微信支付
扫描小程序码分享
在showToast接口文档中的“bug&tips”部分提到:“使用 wx.hideToast/wx.hideLoading 都可以关闭提示框”
在新版本中调整为:必须配对使用。即showToast只能用hideToast隐藏,同showLoading。
对于有此特殊用法的小程序,请及时修改一下。带来不便之处,请见谅。
37 个评论
加粗
标红
插入代码
插入链接
插入图片
上传视频
这个东西没修复吧,我发现hideToast还是能吧showLoading杀掉
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
+1,现在还是遇到这个问题。
+1,还是一样的问题,先showloading,成功showtoast,请求结束hideloading,但是这个hideloding把toast也关掉了
wx.showLoading({
title:
'处理中...'
,
mask:
true
});
wx.request({
url:
''
method:
'POST'
header: {
'content-type'
:
'application/x-www-form-urlencoded; charset=UTF-8'
},
data: {
xx:
'xx'
success:
function
success(res) {
wx.showToast({
icon:
'success'
duration: 2000,
complete:
complete(res){
setTimeout(
(){
wx.navigateBack({
delta:1
})
},2000);
}
fail:
fail(res){
duration:2000,
'none'
wx.hideLoading();
+1 都9102年了,希望能完美解决下了
目测这个问题2020年都不一定能改好
这个问题依然存在,都2019年6月4号了
这个问题依然存在,2020年9月18号
hideLoading还是会关闭 showtoast
20200423bug依旧存在,这么大个公司这么个小bug,已经几年了还修复不好。钱没少赚,干了啥事?腾讯四个🐎?
都2020年了 这个问题解决了吗
showToast 的 icon 图标 为什么不都加上呢, icon 的type 都比较丰富, 为什么这个就只有2中, 设置为 none 都没用;官方能说明下吗??????????
toast icon设置为 none 不生效,toast 内容最多不超过7个字,这些问题有什么进展吗?
hideLoading还是会关闭 showtoast @jeremy @nickname @娇华 ..
scollTolowerFun:function(){
title: 'scollTolowerFun方法触发',
icon: 'success',
duration: 2000
安卓真机没有提示框,模拟器没问题
好的吧
正在加载...
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
这个东西没修复吧,我发现hideToast还是能吧showLoading杀掉
+1,现在还是遇到这个问题。
+1,还是一样的问题,先showloading,成功showtoast,请求结束hideloading,但是这个hideloding把toast也关掉了
wx.showLoading({title:'处理中...',mask:true});wx.request({url:'',method:'POST',header: {'content-type':'application/x-www-form-urlencoded; charset=UTF-8'},data: {xx:'xx'},success:functionsuccess(res) {wx.showToast({title:'xx',icon:'success',duration: 2000,mask:true,complete:functioncomplete(res){setTimeout(function(){wx.navigateBack({delta:1})},2000);}});},fail:functionfail(res){wx.showToast({title:'xx',duration:2000,icon:'none',mask:true})},complete:functioncomplete(res){wx.hideLoading();}+1 都9102年了,希望能完美解决下了
目测这个问题2020年都不一定能改好
这个问题依然存在,都2019年6月4号了
这个问题依然存在,2020年9月18号
hideLoading还是会关闭 showtoast
20200423bug依旧存在,这么大个公司这么个小bug,已经几年了还修复不好。钱没少赚,干了啥事?腾讯四个🐎?
都2020年了 这个问题解决了吗
showToast 的 icon 图标 为什么不都加上呢, icon 的type 都比较丰富, 为什么这个就只有2中, 设置为 none 都没用;官方能说明下吗??????????
toast icon设置为 none 不生效,toast 内容最多不超过7个字,这些问题有什么进展吗?
hideLoading还是会关闭 showtoast @jeremy @nickname @娇华 ..
scollTolowerFun:function(){
wx.showToast({
title: 'scollTolowerFun方法触发',
icon: 'success',
duration: 2000
})
wx.hideLoading();
}
安卓真机没有提示框,模拟器没问题
好的吧