|
var UIAlbumBrowser = api.require('UIAlbumBrowser');
UIAlbumBrowser.imagePicker({
max: 9,
styles: {
bg: 'rgba(0, 0, 0, .0)',
cameraImg: 'widget://icon/icon.png',
mark: {
icon: '',
position: 'bottom_left',
size: 20
},
nav: {
bg: 'rgba(0, 0, 0, .8)',
cancelColor: '#fff',
cancelSize: 16,
nextStepColor: '#fff',
nextStepSize: 16
}
},
animation: true,
}, function(ret) {
if (ret.eventType == 'nextStep') {
var UIAlbumBrowser = api.require('UIAlbumBrowser');
UIAlbumBrowser.closePicker();
}
});
==============================================
|
|