|
@@ -75,7 +75,7 @@ var documentList = new Vue({
|
|
|
showPdfList:function(item){
|
|
|
item.isShowDowns = !item.isShowDowns;
|
|
|
},
|
|
|
- download:function(pdfId) {
|
|
|
+ download:function(pdf) {
|
|
|
var _self = this;
|
|
|
if(_self.is_Wechat_bowcr){
|
|
|
_self.isWechatShowToest = true
|
|
@@ -84,8 +84,8 @@ var documentList = new Vue({
|
|
|
// var url = window.URL.createObjectURL(BLOB);
|
|
|
var DownloadLink = document.createElement('a');
|
|
|
DownloadLink.style.display = 'none';
|
|
|
- DownloadLink.href = 'https://static.caimei365.com/app/caimei-activity-h5/image/2021/01/01.jpg';
|
|
|
- DownloadLink.setAttribute('download', '01.jpg');
|
|
|
+ DownloadLink.href = pdf.url;
|
|
|
+ DownloadLink.setAttribute('download', pdf.name);
|
|
|
document.body.appendChild(DownloadLink);
|
|
|
DownloadLink.click();
|
|
|
document.body.removeChild(DownloadLink);
|