|
[BUG]
UIAlbumBrowser 三星s8 选择图片 图片自动旋转90度问题
[复制链接]
UIAlbumBrowser 三星s8 选择图片 图片自动旋转90度问题 ,ios 安卓华为都是好的 目前就是三星手机 在选择图片的时候(点击图片详情都是旋转的 )
代码如下:
selectImg: function () {
var UIAlbumBrowser = api.require('UIAlbumBrowser');
UIAlbumBrowser.open({
max: 9 - app.imglist.length,
type: 'all',
styles: {
bg: '#fff',
mark: {
icon: '',
position: 'bottom_left',
size: 20
},
nav: {
bg: 'rgba(0,0,0,0.6)',
titleColor: '#fff',
titleSize: 18,
cancelColor: '#fff',
cancelSize: 16,
finishColor: '#fff',
finishSize: 16
}
},
rotation: false
}, function (ret) {
if (ret.eventType == "confirm") {
if (api.systemType == 'ios') {
for (var i = 0; i < ret.list.length; i++) {
UIAlbumBrowser.transPath({
path: ret.list[i].path
}, function (ret, err) {
if (ret) {
app.imglist.push(ret.path);
}
});
}
} else {
for (var i = 0; i < ret.list.length; i++) {
app.imglist.push(ret.list[i].path);
}
}
}
});
},
|
|