We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
开发者工具可以,但安卓真机不行
//加载图片 load: function () { var self = this; var src = this.data.src; wx.showLoading({ title: '正在加载图片...', }) wx.getImageInfo({ src: src, success(res) { console.log("获取图片成功") self.originImage = res; self._orientation = self.orientationToNumber(res.orientation); self.getRealCotentSize(); setTimeout(function () { var image = self.$cropContent.createImage(); //开发者工具打印的是dom, 安卓真机打印的是空object console.log("image======", image); image.onerror =function (err) { console.log('image加载失败', err, image) } image.onload = function () { console.log("image onLoad") self.transformCoordinates(image); self.init(); } image.src = src; }, 50) // ios delay 保证 canvas style 尺寸生效 }, fail(res) { console.log("获取图片失败", res) } }) },
The text was updated successfully, but these errors were encountered:
@houta-higuchi 我自测是可以的哦
Sorry, something went wrong.
@houta-higuchi createImage api 有版本要求,另外 getImageInfo api 处理网络图片时需要配置域名
No branches or pull requests
开发者工具可以,但安卓真机不行
The text was updated successfully, but these errors were encountered: