Commit e9b4b648 authored by 罗超's avatar 罗超

1

parent 619af0b0
......@@ -100,7 +100,7 @@
>
</view>
<!-- <view class="jz_OrderNow" @click="downloadFile">下载</view>
<view class="jz_OrderNow" @click="downloadFile2">下载2</view> -->
<view class="jz_OrderNow" @click="downloadFile2">下载2</view> -->
<view class="jz_MainTitle">
<text v-if="dataList.title">{{ dataList.title }}</text>
</view>
......@@ -1019,6 +1019,13 @@ export default {
console.log('suc',res);
if (res.statusCode === 200) {
console.log('下载成功');
const tempFilePath = res.tempFilePath//返回的文件临时地址,用于后面打开本地预览所用
wx.openDocument({
filePath: tempFilePath,
showMenu: true,
fileType: "pdf",
success: function (res) {}
})
}
},
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