Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ydLife
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sweet Zhang
ydLife
Commits
47f7cec0
Commit
47f7cec0
authored
Oct 27, 2021
by
sunchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商机分享
parent
3aa4db54
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
26 deletions
+27
-26
src/app/my/my-business-detail/my-business-detail.component.ts
+27
-26
No files found.
src/app/my/my-business-detail/my-business-detail.component.ts
View file @
47f7cec0
...
...
@@ -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
,
...
...
@@ -621,32 +625,29 @@ export class MyBusinessDetailComponent implements OnInit {
customerMobile
:
this
.
editBusiness
.
mobileNo
.
replace
(
/
\s
/g
,
''
),
loginId
:
this
.
lifeCustomerInfo
[
'customerId'
]
}
this
.
myService
.
saveInformedSheet
(
param
).
subscribe
(
res
=>
{
if
(
res
[
'success'
]){
if
(
this
.
deviceType
==
3
){
this
.
eNoticeState
=
false
;
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
(
'保险服务委托协议和客户告知书签署'
,
`您的保险服务委托协议和客户告知书已准备好,请查收并签署,感谢信任和支持。`
,
`https://
${
window
.
location
.
host
}
/ydLife/identify?eNoticeId=
${
res
[
'data'
][
'id'
]}
`
,
imgUrl
);
}
else
{
alert
(
'请在微信公众号中发送邀请'
);
}
}
else
{
this
.
toastDialog
=
true
;
this
.
toastInfo
=
{
status
:
1
,
msg
:
res
[
'message'
],
timeout
:
3000
,
align
:
'center'
};
return
false
;
}
})
this
.
myService
.
saveInformedSheet
(
param
).
subscribe
(
res
=>
{
if
(
res
[
'success'
]){
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
(
'保险服务委托协议和客户告知书签署'
,
`您的保险服务委托协议和客户告知书已准备好,请查收并签署,感谢信任和支持。`
,
`https://
${
window
.
location
.
host
}
/ydLife/identify?eNoticeId=
${
res
[
'data'
][
'id'
]}
`
,
imgUrl
);
},
500
)
}
else
{
this
.
toastDialog
=
true
;
this
.
toastInfo
=
{
status
:
1
,
msg
:
res
[
'message'
],
timeout
:
3000
,
align
:
'center'
};
return
false
;
}
})
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment