选择完图后显示showLoading
工具是成功显示的,而真机iphone X IOS12.4.1 无法显示,感觉是更新了新微信导致的
// 选择图片
wx.chooseImage({
count: 1, // 默认9
sourceType: ['album', 'camera'],
// 可以指定来源是相册还是相机,默认二者都有
success: function(res) {
wx.showLoading({
title: '上传中...',
mask: true,
})
}
})
框架类型 | 问题类型 | API/组件名称 | 终端类型 | 微信版本 | 基础库版本 |
---|---|---|---|---|---|
小程序 | Bug | chooseImage和showLoading | 微信iOS客户端 | 7.0.7 | 2.8.2 |
选择完图后显示showLoading
工具是成功显示的,而真机iphone X IOS12.4.1 无法显示,感觉是更新了新微信导致的
// 选择图片
wx.chooseImage({
count: 1, // 默认9
sourceType: ['album', 'camera'],
// 可以指定来源是相册还是相机,默认二者都有
success: function(res) {
wx.showLoading({
title: '上传中...',
mask: true,
})
}
})
9 个回答
石锤了!!!就是
这个版本导致的 其他都是OK的
//chooseImage 似乎会关闭loading //我的解决办法是不用wx.showLoading //然后在wxml插入一个loading标签 //再在js中控制loading //showLoading 和 hideLoading 要自己写
this.showLoading('图片载入中')
var that = this;
wx.chooseImage({
count: 1,
success: function(res) {
res.tempFiles.forEach(file=>{
...
})
that.hideLoading()
},
fail:function(err){
console.log('chooseImage error:',err)
that.hideLoading()
},
complete:function(){
//这里关闭loading也可以
}
})
在这之上还发现了另一个问题ip7+小程序选择图片的原图比较大的时候,响应超过了5秒.....
一模一样的问题!!! 找了好久的答案,现在iPhone6装最新的微信,还是有这个问题。。。今天是2019-12-10 , 微信修复了吗
的确是这样,更新了最新版本的微信以后,只出现在图片上传这个地方 showloading出不来了,换回之前的微信版本就可以
微信iOS 7.0.8 还未修复此问题
https://developers.weixin.qq.com/s/5mjrjUme78dg
微信iOS 7.0.8 还未修复此问题
为啥我设置了5000 ,iphone上都不显示
这边测试未复现问题,麻烦提供能复现问题的代码片段看看(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
确认是客户端bug。计划跟下个客户端大版本修复。可以先小程序代码兼容一下,加个500左右的setTimeout
https://developers.weixin.qq.com/s/1T4dZvmM7Ybx