smart-imager
> imager can do: upload,preview,zoom, it will be stored into oss-index-database
How to use
参数说明
!!!!!如果无法打开本地上传,请查看是否 引入 fastclick插件
bucketAlias:'SmartEvent'
maxUpload:3
mappingData:{
processId: "3e9ff7bc-1c77-4bab-b07d-740c3b01f170",
relatedId: "9d43c3d8-2617-4f6b-9e5c-bf912a61fdc7",
relatedType: "Settle",
catalog: "水单"
}
filterData:{
relatedId: "9d43c3d8-2617-4f6b-9e5c-bf912a61fdc7",
catalog: "水单"
}
onUploadSuccess:function(){
alert(123);
}
onUploadFailed
onDeleteSuccess
onDeleteFailed
platform:1 app端(默认),9:pc端
showViewer:false(默认)/true
readOnly:false(默认)/true
accepts:'image/*'(默认)
目前支持pdf,txt文件,以及png/jpg/jpeg等图片格式,传参请参考h5中input标签的accept属性
host:如果是从iaccount站点过来的话,会自动获取host,否则需要手动配置host
singleFileUpload:false(默认),设置为true时,值允许上传一张图片,并且
isQuery:true(默认),