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,
...@@ -621,32 +625,29 @@ export class MyBusinessDetailComponent implements OnInit { ...@@ -621,32 +625,29 @@ export class MyBusinessDetailComponent implements OnInit {
     customerMobile: this.editBusiness.mobileNo.replace(/\s/g, ''),      customerMobile: this.editBusiness.mobileNo.replace(/\s/g, ''),
loginId:this.lifeCustomerInfo['customerId'] loginId:this.lifeCustomerInfo['customerId']
} }
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( '保险服务委托协议和客户告知书签署',
'保险服务委托协议和客户告知书签署', `您的保险服务委托协议和客户告知书已准备好,请查收并签署,感谢信任和支持。`,
`您的保险服务委托协议和客户告知书已准备好,请查收并签署,感谢信任和支持。`, `https://${window.location.host}/ydLife/identify?eNoticeId=${res['data']['id']}`,
`https://${window.location.host}/ydLife/identify?eNoticeId=${res['data']['id']}`, imgUrl);
imgUrl); },500)
}else{
alert('请在微信公众号中发送邀请'); }else{
} this.toastDialog = true;
}else{ this.toastInfo = {
this.toastDialog = true; status: 1,
this.toastInfo = { msg: res['message'],
status: 1, timeout: 3000,
msg: res['message'], align: 'center'
timeout: 3000, };
align: 'center' 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