只在ios中发生这个错误,无论选那张图,path出来的都是相册第一张或者中间的图片
Gallery: function() {
var _this = page;
plus.gallery.pick(
function(path) {
plus.io.resolveLocalFileSystemURL(path, function(entry) {
//设置img的路径
_this._path = path;
_this.Zip();
})
},
function(e) {
mui.toast('取消选择');
}, {
filename: "self",
filter: "image",
maximum: 1,
multiple: false,
system: true,
onmaxed: function() {
plus.nativeUI.alert('每次只能选择一张图片');
}
}
);
},
0 个回复