1.全局水印应用了:zmm-watermark插件
- 后台返回文件预览地址
-
前端实现预览方法:
export const viewFile = (url) => { if (!url) { uni.showToast({ title: '文件不存在', icon: 'none' }) return } uni.downloadFile({ url, success: function (res) { const filePath = res.tempFilePath uni.openDocument({ filePath: filePath, showMenu: true }) } }) }4.当前跳转的方法为浏览器界面
- 怎么在浏览器界面添加前端水印(以使用pdfjs-dist,不知道是不是兼容问题,插件内部报错)