//打开pdf
openPdf:function(e){
var that = this;
var url = e.currentTarget.dataset.url;//pdf文件路径
wx.showToast({
title: '正在打开...',
duration: 2000,
mask: true,
icon: 'loading'
})
wx.downloadFile({
url:url,
success(res){
// console.log(res)
let data = res.tempFilePath;
// that.showBusy();
wx.openDocument({
filePath:data,
fileType:'pdf'
})
wx.hideToast();
}
})
}
},