|
发表于 2016-6-23 10:08:05
|
显示全部楼层
本帖最后由 liangyongfei 于 2016-6-23 10:12 编辑
3.4版本在CP上点击后还是下载呢!到了3.5变成了预览!我已经在内部系统提供!建议提供一个参数,控制是下载还是预览!
目前可以修改组件代码/UI2/system/components/justep/attachment/attachmentSimple.js 修改后执行\tools\dist\dist.bat合并资源!- downloadFile:function(realFileName,storeFileName,ownerID){
- var url = this.getFileUrl(realFileName,storeFileName,ownerID,"browse");
- fileApi.browse(url);
- },
- this.getFileUrl(realFileName,storeFileName,ownerID,"browse");
- 改成
- this.getFileUrl(realFileName,storeFileName,ownerID,"download");
- 试试
复制代码
手机上的下载需要使用cordova插件实现!你看下文件操作的插件吧!获取到图片的url传进去就可以了!
也可以看下关于文件下载的帖子!:http://bbs.wex5.com/forum.php?mod=viewthread&tid=88234
|
|