|
[插件使用]
UIPhotoViewer 模块 安卓点击查看图片 卡死 (ios正常)
[复制链接]
OpenImg(index,i) {
var _this = this
console.log(index); //外
console.log(i); // img
var UIPhotoViewer = api.require('UIPhotoViewer');
UIPhotoViewer.open({
images: _this.data.ListData[index].ImagesList,
activeIndex:i,
placeholderImg: 'widget://res/img/apicloud.png',
bgColor: '#000',
zoomEnabled:true,
gestureClose:true,
}, function(ret, err) {
if (ret) {
// alert(JSON.stringify(ret));
} else {
// alert(JSON.stringify(err));
}
});
},
|
|