之前用Hbuilder打包的APP,因为苹果SDK需要13.1的 ,所以就用HbuilderX打包APP。拍照相关的代码都没有改动,但拍照之后,界面不显示图片,具体代码如下:
‘“ takePhoto: function () {
const _this = this;
var cmr = plus.camera.getCamera();
var res = cmr.supportedImageResolutions[0];
var fmt = cmr.supportedImageFormats[0];
cmr.captureImage(function (path) {
plus.io.resolveLocalFileSystemURL(path, function (entry) {
_this.imgEntry = entry;
_this.imgUrl.push(entry.toLocalURL());
})
},
function (error) {
_this.$vux.toast.text("拍照失败!")
},
{filename: "_doc/emgphoto/"}
);
},”’

1***@qq.com
- 发布:2020-06-03 16:11
- 更新:2021-01-05 19:20
- 阅读:2760
