import {Component, OnInit} from '@angular/core';
import {LifeCommonService} from "../../common/life-common.service";

@Component({
  selector: 'ydlife-file-upload',
  templateUrl: './file-upload.component.html',
  styleUrls: ['./file-upload.component.scss']
})
export class FileUploadComponent implements OnInit {
  fileUploadLists: Array<any>;

  constructor(private lfeCommonService: LifeCommonService) {
  }

  ngOnInit() {
    this.fileUploadLists = [
      {
        fileTitle: '上海银盾保险经纪有限公司反欺诈管理制度',
        fileName: '上海银盾保险经纪有限公司反欺诈管理制度',
        filePath: 'https://www.ydinsurance.cn/wp-content/uploads/2019/12/%E4%B8%8A%E6%B5%B7%E9%93%B6%E7%9B%BE%E4%BF%9D%E9%99%A9%E7%BB%8F%E7%BA%AA%E6%9C%89%E9%99%90%E5%85%AC%E5%8F%B8%E5%8F%8D%E6%AC%BA%E8%AF%88%E7%AE%A1%E7%90%86%E5%88%B6%E5%BA%A6.pdf',
        fileType: 'pdf'
      },
      {
        fileTitle: '员工生活关爱手册',
        fileName: '员工生活关爱手册',
        filePath: 'https://www.ydinsurance.cn/wp-content/uploads/2019/12/%E5%91%98%E5%B7%A5%E7%94%9F%E6%B4%BB%E5%85%B3%E7%88%B1%E6%89%8B%E5%86%8C.pdf',
        fileType: 'pdf'
      },
      {
        fileTitle: '公告佣金表',
        fileName: '公告佣金表',
        filePath: 'https://www.ydinsurance.cn/wp-content/uploads/2019/12/20191220%E5%85%AC%E5%91%8A%E4%BD%A3%E9%87%91%E8%A1%A8.pdf',
        fileType: 'pdf'
      }
    ];
  }

//  文件下载
  fileUpload(fileUploadItem) {

  }

}
