|
getPicture: function(_cb, type, saveToPhotoAlbumType, width, height, data){
var options = {
sourceType: type,
allowEdit: true,
quality: 60,
saveToPhotoAlbum: saveToPhotoAlbumType
};
if (arguments.length == 3) {
options['targetWidth'] = width;
options['targetHeight'] = height;
};
api.getPicture(options, function(ret, err){
if (ret) {
if (ret.data != "") {
api.showProgress({
title: '图片上传中...',
modal: false
});
_cb(ret,data);
}
} else{
//popToast($api.jsonToStr(err));
}
});
}, |
|