Commit e9b4b648 authored by 罗超's avatar 罗超

1

parent 619af0b0
...@@ -1019,6 +1019,13 @@ export default { ...@@ -1019,6 +1019,13 @@ export default {
console.log('suc',res); console.log('suc',res);
if (res.statusCode === 200) { if (res.statusCode === 200) {
console.log('下载成功'); console.log('下载成功');
const tempFilePath = res.tempFilePath//返回的文件临时地址,用于后面打开本地预览所用
wx.openDocument({
filePath: tempFilePath,
showMenu: true,
fileType: "pdf",
success: function (res) {}
})
} }
}, },
fail(err){ fail(err){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment