Commit d6cc8c08 by Sweet Zhang

增加跟踪信息

parent 8d11e921
...@@ -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,
......
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'} })
})
} }
} }
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));
}
} }
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