Commit 47f7cec0 by sunchao

商机分享

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