Commit 4581748b by Sweet Zhang

直接跳到pdf文件

parent 8894e10c
......@@ -61,9 +61,14 @@ export class RegisterComponent implements OnInit {
queryInformedSheetList(){
this.myService.queryInformedSheetList({id:this.eNoticeId}).subscribe(res=>{
if(res['success']){
this.eNoticeInfo = res['data']['list'][0]
this.eNoticeInfo = res['data']['list'][0];
if(this.eNoticeInfo['status']==1){
window.open(this.eNoticeInfo['informedOssPath']);
if (this.lifeCommonService.checkDeviceType() == '1') {
const newWindow = window.open();
newWindow.location.href = this.eNoticeInfo['informedOssPath'];
} else {
window.location.href = this.eNoticeInfo['informedOssPath'];
}
}else{
this.router.navigate(['/eNoticeSign']);
}
......
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