Commit 47f7cec0 by sunchao

商机分享

parent 3aa4db54
...@@ -613,6 +613,10 @@ export class MyBusinessDetailComponent implements OnInit { ...@@ -613,6 +613,10 @@ export class MyBusinessDetailComponent implements OnInit {
// 发送电子客户告知书,opportunityIdID = CustomerId // 发送电子客户告知书,opportunityIdID = CustomerId
sendENotice(){ sendENotice(){
this.eNoticeState = false;
if(this.deviceType != 3){
alert('请在微信公众号中发送邀请');
}
const param = { const param = {
 practitionerId:this.lifeCustomerInfo['practitionerId'],  practitionerId:this.lifeCustomerInfo['practitionerId'],
     leadsAssignedId:this.leadsAssignedId,      leadsAssignedId:this.leadsAssignedId,
...@@ -623,8 +627,7 @@ export class MyBusinessDetailComponent implements OnInit { ...@@ -623,8 +627,7 @@ export class MyBusinessDetailComponent implements OnInit {
} }
this.myService.saveInformedSheet(param).subscribe(res=>{ this.myService.saveInformedSheet(param).subscribe(res=>{
if(res['success']){ if(res['success']){
if(this.deviceType == 3){ setTimeout(()=>{
this.eNoticeState = false;
const imgUrl = this.lifeCustomerInfo.practitionerBasicInfo.headImagePath ? this.lifeCustomerInfo.practitionerBasicInfo.headImagePath : `${environment.ORIGINNAME}/ydLife/assets/images/icons/meng.png`; const imgUrl = this.lifeCustomerInfo.practitionerBasicInfo.headImagePath ? this.lifeCustomerInfo.practitionerBasicInfo.headImagePath : `${environment.ORIGINNAME}/ydLife/assets/images/icons/meng.png`;
this.lifeCommonService.shareStatusPublish(1); this.lifeCommonService.shareStatusPublish(1);
this.lifeCommonService.wxShare( this.lifeCommonService.wxShare(
...@@ -632,9 +635,8 @@ export class MyBusinessDetailComponent implements OnInit { ...@@ -632,9 +635,8 @@ export class MyBusinessDetailComponent implements OnInit {
`您的保险服务委托协议和客户告知书已准备好,请查收并签署,感谢信任和支持。`, `您的保险服务委托协议和客户告知书已准备好,请查收并签署,感谢信任和支持。`,
`https://${window.location.host}/ydLife/identify?eNoticeId=${res['data']['id']}`, `https://${window.location.host}/ydLife/identify?eNoticeId=${res['data']['id']}`,
imgUrl); imgUrl);
}else{ },500)
alert('请在微信公众号中发送邀请');
}
}else{ }else{
this.toastDialog = true; this.toastDialog = true;
this.toastInfo = { this.toastInfo = {
...@@ -646,7 +648,6 @@ export class MyBusinessDetailComponent implements OnInit { ...@@ -646,7 +648,6 @@ export class MyBusinessDetailComponent implements OnInit {
return false; return false;
} }
}) })
} }
} }
......
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