1.在接口请求时使用
wx.showLoading({
title: '数据加载中',
mask: true
})
2.接口返回数据时使用
wx.hideLoading隐藏showLoading
后面用showToast显示返回的信息,设置了显示3秒,但是直接闪一下就隐藏。
这个问题存在很久了官方不打算修复吗?????
框架类型 | 问题类型 | API/组件名称 | 终端类型 | 微信版本 | 基础库版本 |
---|---|---|---|---|---|
小程序 | Bug | wx.hideLoading | 客户端 | 7.03 | 2.61 |
1.在接口请求时使用
wx.showLoading({
title: '数据加载中',
mask: true
})
2.接口返回数据时使用
wx.hideLoading隐藏showLoading
后面用showToast显示返回的信息,设置了显示3秒,但是直接闪一下就隐藏。
这个问题存在很久了官方不打算修复吗?????
2 个回答
先hideLoading再showToast会有问题?要有先后顺序
是先hideLoading再使用showToast的,不管用
来个代码片段看看,写法问题吧,肯定可以的
https://developers.weixin.qq.com/miniprogram/dev/api/wx.showLoading.html?search-key=showLoading,同时只能一个
不能存在同时啊,数据请求的时候使用了wx.showLoading,数据返回的时候用了wx.hideLoading再使用的wx.showToast
提供下你代码片段:https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html