Commit c56c7e0e by Sweet Zhang

签过名的直接跳转链接

parent 904d27ec
...@@ -38,6 +38,8 @@ export class RegisterComponent implements OnInit { ...@@ -38,6 +38,8 @@ export class RegisterComponent implements OnInit {
type:string; type:string;
// 分享电子告知书ID // 分享电子告知书ID
eNoticeId:string; eNoticeId:string;
// 电子告知书信息
eNoticeInfo:any;
ngOnInit() { ngOnInit() {
const title = this.activatedRoute.snapshot.data[0]['title']; const title = this.activatedRoute.snapshot.data[0]['title'];
this.lifeCommonService.setTitle(title); this.lifeCommonService.setTitle(title);
...@@ -55,6 +57,22 @@ export class RegisterComponent implements OnInit { ...@@ -55,6 +57,22 @@ export class RegisterComponent implements OnInit {
window.scrollTo(0, 0); window.scrollTo(0, 0);
} }
// 查询告知书链接
queryInformedSheetList(){
this.myService.queryInformedSheetList({id:this.eNoticeId}).subscribe(res=>{
if(res['success']){
this.eNoticeInfo = res['data']['list'][0]
if(this.eNoticeInfo['status']==1){
window.open(this.eNoticeInfo['informedOssPath']);
}else{
this.router.navigate(['/eNoticeSign']);
}
}else{
this.openPopInfo(res['message']);
}
})
}
// 发送验证码 // 发送验证码
verificationCode() { verificationCode() {
const verificationInfo = { const verificationInfo = {
...@@ -133,7 +151,7 @@ export class RegisterComponent implements OnInit { ...@@ -133,7 +151,7 @@ export class RegisterComponent implements OnInit {
this.authService.compare(compareCodeObj).subscribe((res)=>{ this.authService.compare(compareCodeObj).subscribe((res)=>{
if(res['success']){ if(res['success']){
if(this.type=='identify'){ if(this.type=='identify'){
this.router.navigate(['/eNoticeSign']); this.queryInformedSheetList();
}else{ }else{
this.router.navigate(['/employee_info'],{ queryParams: { hiringBasicInfoId:this.hiringBasicInfoId,mobileNo:this.userInfo.mobileNo} }); this.router.navigate(['/employee_info'],{ queryParams: { hiringBasicInfoId:this.hiringBasicInfoId,mobileNo:this.userInfo.mobileNo} });
} }
......
...@@ -656,10 +656,10 @@ export class MyBusinessDetailComponent implements OnInit { ...@@ -656,10 +656,10 @@ export class MyBusinessDetailComponent implements OnInit {
setBackgroundColor(e){ setBackgroundColor(e){
let bgColor = 'transparent'; let bgColor = 'transparent';
let fontColor = '#666'; let fontColor = '#666';
if(e.informedOssPath && e.status==1){ if(e.informedOssPath && e.status==0){
bgColor = '#999999'; bgColor = '#999999';
fontColor = '#fff'; fontColor = '#fff';
}else if(e.informedOssPath && e.status==0){ }else if(e.informedOssPath && e.status==1){
bgColor = '#C81B1E'; bgColor = '#C81B1E';
fontColor = '#fff'; fontColor = '#fff';
}else{ }else{
......
...@@ -746,4 +746,12 @@ export class MyService { ...@@ -746,4 +746,12 @@ export class MyService {
const url = this.ydapi + "/practitioner/signInformedSheet"; const url = this.ydapi + "/practitioner/signInformedSheet";
return this.http.post(url, JSON.stringify(objParam)); return this.http.post(url, JSON.stringify(objParam));
} }
// 查询电子告知书列表
queryInformedSheetList(param){
const url = this.ydapi + "/practitioner/queryInformedSheetList";
return this.http.post(url, JSON.stringify(param)).pipe(res => {
return res;
});
}
} }
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