相册选取
albumSel() {
var that = this;
wx.chooseImage({
count: 1,
sourceType: "album",
success: function(res) {
var path = res.tempFilePaths[0];
that.setData({
imgPath: path
})
这是js代码,安卓没有问题,ios就没有反应了
框架类型 | 问题类型 | API/组件名称 | 终端类型 | 微信版本 | 基础库版本 |
---|---|---|---|---|---|
小程序 | Bug | wx.chooseImage | 客户端 | 6.7.2 | 2.2.5 |
相册选取
albumSel() {
var that = this;
wx.chooseImage({
count: 1,
sourceType: "album",
success: function(res) {
var path = res.tempFilePaths[0];
that.setData({
imgPath: path
})
这是js代码,安卓没有问题,ios就没有反应了
4 个回答
我遇到的现象是以前的代码,突然ios系统上不能使用了。排查了原因,js-sdk版本过低,使用的是1.0.0版本的。重新下载最新的版本。进行替换。 代码构建上与文档介绍中得一样,功能已恢复正常。
谢谢.问题解决了.这个好坑啊
楼主,也遇到这个问题,在onload里面调用,ios偶尔会不生效,前面的人说加延时,你是怎么解决的?
请问楼主怎么解决的?
楼主 找到原因了吗? 同样的接口在android没有问题
https://developers.weixin.qq.com/blogdetail?action=get_post_info&docid=0006829c110628fe2b57ef4f751000&highline=chooseImage
你加个 fail 方法呢,看走不走