​华为nove4e出现调用图片接口直接进入fail函数,微信版本和基础库都是最新
发布于 6 年前 作者 ping73 5266 次浏览 来自 官方Issues

华为nove4e出现调用图片接口直接进入fail函数,微信版本和基础库都是最新的

// 图片上传

upload: function () {

var _this = this;

wx.chooseImage({

// 所选的图片的尺寸(original原图,compressed缩略图)

sizeType: [ ‘compressed’],

count:2,

success:function(res) {

_this.imgQiNiu(res.tempFilePaths,0)

},

fail:function(err){

//console.log(err);

if (err.errMsg == “chooseImage:fail cancel”){

console.log(“用户取消上传图片”)

}else{

wx.showModal({

title: ‘提示’,

content: ‘微信系统错误!换张图片试试吧’,

})

}

}

})

},

1 回复

你好,具体的报错信息是什么呢?

麻烦提供能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

回到顶部