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
d6cc8c08
Commit
d6cc8c08
authored
Jan 20, 2022
by
Sweet Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加跟踪信息
parent
8d11e921
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
6 deletions
+28
-6
src/app/my/application-process/signature/signature.component.ts
+5
-1
src/app/my/e-notice/e-notice.component.ts
+7
-4
src/app/my/my.service.ts
+16
-1
No files found.
src/app/my/application-process/signature/signature.component.ts
View file @
d6cc8c08
...
@@ -58,7 +58,9 @@ export class SignatureComponent implements OnInit {
...
@@ -58,7 +58,9 @@ export class SignatureComponent implements OnInit {
if
(
this
.
isSignatureShow
==
false
){
if
(
this
.
isSignatureShow
==
false
){
this
.
saveDigitalSignatures
();
this
.
saveDigitalSignatures
();
}
else
{
}
else
{
this
.
router
.
navigate
([
'/employee_submit'
],{
queryParams
:{
hiringBasicInfoId
:
this
.
hiringBasicInfoId
,
status
:
this
.
approveStatus
}});
this
.
myService
.
customerBehaviorTrackSave
(
`经纪人合同签署 -
${
JSON
.
parse
(
localStorage
.
getItem
(
'lifeCustomerInfo'
)).
practitionerBasicInfo
.
insurerBranchName
}
、
${
JSON
.
parse
(
localStorage
.
getItem
(
'lifeCustomerInfo'
)).
practitionerBasicInfo
.
subordinateName
}
体系下,经纪人
${
JSON
.
parse
(
localStorage
.
getItem
(
'lifeCustomerInfo'
)).
practitionerBasicInfo
.
name
}
点击了【我自愿签订经纪人合同书】`
).
subscribe
(
res
=>
{
this
.
router
.
navigate
([
'/employee_submit'
],{
queryParams
:{
hiringBasicInfoId
:
this
.
hiringBasicInfoId
,
status
:
this
.
approveStatus
}});
})
}
}
}
}
...
@@ -85,6 +87,8 @@ export class SignatureComponent implements OnInit {
...
@@ -85,6 +87,8 @@ export class SignatureComponent implements OnInit {
}
}
})
})
}
else
if
(
this
.
type
==
'continuationRate'
){
}
else
if
(
this
.
type
==
'continuationRate'
){
this
.
myService
.
customerBehaviorTrackSave
(
`保单继续率承诺书 -
${
JSON
.
parse
(
localStorage
.
getItem
(
'lifeCustomerInfo'
)).
practitionerBasicInfo
.
insurerBranchName
}
、
${
JSON
.
parse
(
localStorage
.
getItem
(
'lifeCustomerInfo'
)).
practitionerBasicInfo
.
subordinateName
}
体系下,经纪人
${
JSON
.
parse
(
localStorage
.
getItem
(
'lifeCustomerInfo'
)).
practitionerBasicInfo
.
name
}
点击了【确认提交】`
).
subscribe
(
res
=>
{
})
console
.
log
(
'继续率承诺书'
);
console
.
log
(
'继续率承诺书'
);
const
param
=
{
const
param
=
{
practitionerId
:
localStorage
.
getItem
(
'lifeCustomerInfo'
)?
JSON
.
parse
(
localStorage
.
getItem
(
'lifeCustomerInfo'
))[
'practitionerId'
]:
null
,
practitionerId
:
localStorage
.
getItem
(
'lifeCustomerInfo'
)?
JSON
.
parse
(
localStorage
.
getItem
(
'lifeCustomerInfo'
))[
'practitionerId'
]:
null
,
...
...
src/app/my/e-notice/e-notice.component.ts
View file @
d6cc8c08
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
ActivatedRoute
}
from
"@angular/router"
;
import
{
ActivatedRoute
}
from
"@angular/router"
;
import
{
Router
}
from
'@angular/router'
;
import
{
Router
}
from
'@angular/router'
;
import
{
debug
}
from
'console'
;
import
{
MyService
}
from
'../my.service'
;
@
Component
({
@
Component
({
selector
:
'ydlife-e-notice'
,
selector
:
'ydlife-e-notice'
,
...
@@ -9,16 +11,17 @@ import { Router } from '@angular/router';
...
@@ -9,16 +11,17 @@ import { Router } from '@angular/router';
})
})
export
class
ENoticeComponent
implements
OnInit
{
export
class
ENoticeComponent
implements
OnInit
{
pageType
:
any
pageType
:
any
constructor
(
private
activatedRoute
:
ActivatedRoute
,
private
router
:
Router
)
{
constructor
(
private
activatedRoute
:
ActivatedRoute
,
private
router
:
Router
,
private
myService
:
MyService
)
{
}
}
ngOnInit
()
{
ngOnInit
()
{
this
.
pageType
=
this
.
activatedRoute
.
url
[
'value'
][
0
][
'path'
];
this
.
pageType
=
this
.
activatedRoute
.
url
[
'value'
][
0
][
'path'
];
console
.
log
(
this
.
pageType
)
}
}
agree
(){
agree
(){
this
.
router
.
navigate
([
'/eNoticeSignature'
],{
queryParams
:
{
type
:
'continuationRate'
}
})
this
.
myService
.
customerBehaviorTrackSave
(
`保单继续率承诺书 -
${
JSON
.
parse
(
localStorage
.
getItem
(
'lifeCustomerInfo'
)).
practitionerBasicInfo
.
insurerBranchName
}
、
${
JSON
.
parse
(
localStorage
.
getItem
(
'lifeCustomerInfo'
)).
practitionerBasicInfo
.
subordinateName
}
体系下,经纪人
${
JSON
.
parse
(
localStorage
.
getItem
(
'lifeCustomerInfo'
)).
practitionerBasicInfo
.
name
}
点击了【同意并签署】`
).
subscribe
(
res
=>
{
this
.
router
.
navigate
([
'/eNoticeSignature'
],{
queryParams
:
{
type
:
'continuationRate'
}
})
})
}
}
}
}
src/app/my/my.service.ts
View file @
d6cc8c08
import
{
Injectable
}
from
'@angular/core'
;
import
{
Injectable
}
from
'@angular/core'
;
import
{
HttpClient
}
from
'@angular/common/http'
;
import
{
HttpClient
}
from
'@angular/common/http'
;
import
{
environment
}
from
'../../environments/environment'
;
import
{
environment
}
from
'../../environments/environment'
;
import
{
parse
}
from
'querystring'
;
@
Injectable
({
@
Injectable
({
providedIn
:
'root'
providedIn
:
'root'
...
@@ -776,4 +775,20 @@ export class MyService {
...
@@ -776,4 +775,20 @@ export class MyService {
const
url
=
this
.
ydapi
+
"/practitioner/queryCommitmentByPractitionerId"
;
const
url
=
this
.
ydapi
+
"/practitioner/queryCommitmentByPractitionerId"
;
return
this
.
http
.
post
(
url
,
JSON
.
stringify
(
param
));
return
this
.
http
.
post
(
url
,
JSON
.
stringify
(
param
));
}
}
/**
* 用户行为跟踪
* @returns {Observable<A>}
*/
customerBehaviorTrackSave
(
processMemo
)
{
const
url
=
this
.
API
+
'/customerBehaviorTrackSave'
;
const
behaviorInfo
=
{
'serialsNo'
:
null
,
'customerId'
:
localStorage
.
getItem
(
'lifeCustomerInfo'
)
?
JSON
.
parse
(
localStorage
.
getItem
(
'lifeCustomerInfo'
)).
customerId
:
null
,
'orderId'
:
null
,
'processMemo'
:
processMemo
,
'mediaFrom'
:
'银盾保经'
};
return
this
.
http
.
post
(
url
,
JSON
.
stringify
(
behaviorInfo
));
}
}
}
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