|
本帖最后由 fatman 于 2019-3-1 10:32 编辑
测试的机型有 模拟器4.4.2, 小米8,小米max2, 都出现奔溃的情况。
代码用的是模块里的 imagePicker 方法。startSelectNative:function(){
var that = this
this.UIAlbumBrowser.imagePicker({
max: 20,
styles: {
bg: '#000000',
mark: {
icon: '',
position: 'bottom_left',
size: 20
},
nav: {
bg: '#000000',
cancelColor: '#fff',
cancelSize: 16,
nextStepColor: '#fff',
nextStepSize: 16
}
},
animation:true,
}, function(ret) {
if (ret.eventType == 'nextStep') {
that.UIAlbumBrowser.closePicker();
console.LOG(JSON.stringify(ret))
// alert(JSON.stringify(ret))
if(ret.list!=null && ret.list.length>0){
var files = []
for(var i=0;i<ret.list.length;i++){
var fileName = ret.list.path.substring(ret.list.path.lastIndexOf('/') + 1);
var file = {
name : fileName,
path : ret.list.path
}
files.push(file)
}
that.ui.uploadIndex = 0;
that.startUploadImgNative(files);
}
}
});
},
|
|