Commit 669b566d by Sweet Zhang

被邀请经纪人注册增加customerId

parent de877614
...@@ -159,7 +159,14 @@ export class RegisterComponent implements OnInit { ...@@ -159,7 +159,14 @@ export class RegisterComponent implements OnInit {
if(this.type=='identify'){ if(this.type=='identify'){
this.queryInformedSheetList(); this.queryInformedSheetList();
}else{ }else{
this.myService.queryWholeInfo({hiringBasicInfoId:this.hiringBasicInfoId}).subscribe((resp)=>{
if(resp['success']){
sessionStorage.setItem('inviteeCustomerId',resp['data']['customerId']);
this.router.navigate(['/employee_info'],{ queryParams: { hiringBasicInfoId:this.hiringBasicInfoId,mobileNo:this.userInfo.mobileNo} }); this.router.navigate(['/employee_info'],{ queryParams: { hiringBasicInfoId:this.hiringBasicInfoId,mobileNo:this.userInfo.mobileNo} });
}else{
this.openPopInfo(resp['message']);
}
})
} }
}else{ }else{
this.openPopInfo(res['message']); this.openPopInfo(res['message']);
......
...@@ -116,7 +116,7 @@ export class SignatureComponent implements OnInit { ...@@ -116,7 +116,7 @@ export class SignatureComponent implements OnInit {
this.saveRecord(); this.saveRecord();
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.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,
practitionerName: localStorage.getItem('lifeCustomerInfo')?JSON.parse(localStorage.getItem('lifeCustomerInfo'))['practitionerBasicInfo']['name']:null, practitionerName: localStorage.getItem('lifeCustomerInfo')?JSON.parse(localStorage.getItem('lifeCustomerInfo'))['practitionerBasicInfo']['name']:null,
......
...@@ -798,9 +798,11 @@ export class MyService { ...@@ -798,9 +798,11 @@ export class MyService {
*/ */
rrwebInfo(events,pageInfo){ rrwebInfo(events,pageInfo){
if (!sessionStorage.getItem('lifeSerialsNo')) sessionStorage.setItem('lifeSerialsNo',uuid.v4()); if (!sessionStorage.getItem('lifeSerialsNo')) sessionStorage.setItem('lifeSerialsNo',uuid.v4());
let csId = JSON.parse(localStorage.getItem('lifeCustomerInfo')) ? JSON.parse(localStorage.getItem('lifeCustomerInfo')).customerId : '';
if(sessionStorage.getItem('inviteeCustomerId')) csId = sessionStorage.getItem('inviteeCustomerId');
const param = { const param = {
serialsNo:sessionStorage.getItem('lifeSerialsNo'), serialsNo:sessionStorage.getItem('lifeSerialsNo'),
customerId:JSON.parse(localStorage.getItem('lifeCustomerInfo')) ? JSON.parse(localStorage.getItem('lifeCustomerInfo')).customerId : '', customerId:csId,
token:localStorage.getItem('lifeToken'), token:localStorage.getItem('lifeToken'),
pageType:pageInfo.type, pageType:pageInfo.type,
pageName:pageInfo.name, pageName:pageInfo.name,
...@@ -810,4 +812,10 @@ export class MyService { ...@@ -810,4 +812,10 @@ export class MyService {
const url = this.ydapi + "/customerTrackVideo/rrwebInfo" const url = this.ydapi + "/customerTrackVideo/rrwebInfo"
return this.http.post(url,JSON.stringify(param)) return this.http.post(url,JSON.stringify(param))
} }
// 跟踪登录接口查询customerId
login(params){
const url = this.API + "/login"
return this.http.post(url,JSON.stringify(params))
}
} }
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