Commit a5f573a7 by Chao Sun

登录缓存和ydLife区分开

parent 6e99e8f6
...@@ -31,8 +31,8 @@ export class AuthGuard implements CanActivate, CanActivateChild, CanLoad { ...@@ -31,8 +31,8 @@ export class AuthGuard implements CanActivate, CanActivateChild, CanLoad {
} }
checkLogin(url: string): boolean { checkLogin(url: string): boolean {
const lifeCustomerInfo = localStorage.getItem('lifeCustomerInfo') ? JSON.parse(localStorage.getItem('lifeCustomerInfo')) : null; const ydgiCustomerInfo = localStorage.getItem('ydgiCustomerInfo') ? JSON.parse(localStorage.getItem('ydgiCustomerInfo')) : null;
if (this.authService.isLoggedIn || (lifeCustomerInfo && lifeCustomerInfo['customerId'] && lifeCustomerInfo['practitionerId'])) { if (this.authService.isLoggedIn || (ydgiCustomerInfo && ydgiCustomerInfo['customerId'] && ydgiCustomerInfo['practitionerId'])) {
return true; return true;
} }
// Store the attempted URL for redirecting // Store the attempted URL for redirecting
......
...@@ -48,9 +48,10 @@ export class LoginComponent implements OnInit, OnDestroy { ...@@ -48,9 +48,10 @@ export class LoginComponent implements OnInit, OnDestroy {
this.authService.login({ mobileNo: this.userInfo.mobileNo }).subscribe((response) => { this.authService.login({ mobileNo: this.userInfo.mobileNo }).subscribe((response) => {
if (response['success']) { if (response['success']) {
this.authService.isLoggedIn = true; this.authService.isLoggedIn = true;
const lifeCustomerInfo = { ...response.data, mobileNo: this.userInfo.mobileNo, commonResult: null }; const ydgiCustomerInfo = { ...response.data, mobileNo: this.userInfo.mobileNo, commonResult: null };
if (lifeCustomerInfo['customerId'] && lifeCustomerInfo['practitionerId']) { if (ydgiCustomerInfo['customerId'] && ydgiCustomerInfo['practitionerId']) {
localStorage.setItem('lifeCustomerInfo', JSON.stringify(lifeCustomerInfo)); if (response['data']['practitionerTypeId'] == 27) {
localStorage.setItem('ydgiCustomerInfo', JSON.stringify(ydgiCustomerInfo));
//如果有openId跳页由后端判断,没有的话根据登录次数前端判断跳页 //如果有openId跳页由后端判断,没有的话根据登录次数前端判断跳页
if (response['data']['getOpenIdUrl']) { if (response['data']['getOpenIdUrl']) {
const deviceType = this.lifeCommonService.checkDeviceType() const deviceType = this.lifeCommonService.checkDeviceType()
...@@ -74,23 +75,10 @@ export class LoginComponent implements OnInit, OnDestroy { ...@@ -74,23 +75,10 @@ export class LoginComponent implements OnInit, OnDestroy {
this.router.navigateByUrl(this.redirect); this.router.navigateByUrl(this.redirect);
} }
} }
// if (response['data']['loginTimes'] > 0) { } else {
// this.redirect = this.authService.redirectUrl ? this.router.parseUrl(this.authService.redirectUrl) : '/my'; this.openPopInfo('仅供产险经纪人登录!');
// this.router.navigateByUrl(this.redirect); return;
// // if (response['data']['getOpenIdUrl']) { }
// // window.location.href = response['data']['getOpenIdUrl'];
// // } else {
// // this.redirect = this.authService.redirectUrl ? this.router.parseUrl(this.authService.redirectUrl) : '/my';
// // this.router.navigateByUrl(this.redirect);
// // }
// } else {
// this.router.navigateByUrl('/thanks')
// // if (response['data']['getOpenIdUrl']) {
// // window.location.href = response['data']['getOpenIdUrl'];
// // } else {
// // this.router.navigateByUrl('/thanks')
// // }
// }
} else { } else {
this.openPopInfo('暂无查询资格'); this.openPopInfo('暂无查询资格');
} }
......
...@@ -15,11 +15,11 @@ ...@@ -15,11 +15,11 @@
<div class="brokerInfo"> <div class="brokerInfo">
<div class="brokerBasicInfo"> <div class="brokerBasicInfo">
<div class="brokerName"> <div class="brokerName">
<div>{{lifeCustomerInfo.practitionerBasicInfo.name}}</div> <div>{{ydgiCustomerInfo.practitionerBasicInfo.name}}</div>
<div>Neo Zheng</div> <div>Neo Zheng</div>
</div> </div>
<div class="brokerTitle"> <div class="brokerTitle">
<div>{{lifeCustomerInfo.practitionerBasicInfo.levelName}}</div> <div>{{ydgiCustomerInfo.practitionerBasicInfo.levelName}}</div>
<div>Sales Director</div> <div>Sales Director</div>
</div> </div>
</div> </div>
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
<div class="brokerContactInfo"> <div class="brokerContactInfo">
<div> <div>
<i class="iconfont icon-dianhua"></i> <i class="iconfont icon-dianhua"></i>
<span>M: {{lifeCustomerInfo.mobileNo}}</span> <span>M: {{ydgiCustomerInfo.mobileNo}}</span>
</div> </div>
<div> <div>
<i class="iconfont icon-youxiang"></i> <i class="iconfont icon-youxiang"></i>
......
import {Component, OnInit} from '@angular/core'; import { Component, OnInit } from '@angular/core';
@Component({ @Component({
selector: 'ydlife-business-card', selector: 'ydlife-business-card',
...@@ -6,13 +6,13 @@ import {Component, OnInit} from '@angular/core'; ...@@ -6,13 +6,13 @@ import {Component, OnInit} from '@angular/core';
styleUrls: ['./business-card.component.scss'] styleUrls: ['./business-card.component.scss']
}) })
export class BusinessCardComponent implements OnInit { export class BusinessCardComponent implements OnInit {
lifeCustomerInfo: any; ydgiCustomerInfo: any;
constructor() { constructor() {
} }
ngOnInit() { ngOnInit() {
this.lifeCustomerInfo = JSON.parse(localStorage.getItem('lifeCustomerInfo')); this.ydgiCustomerInfo = JSON.parse(localStorage.getItem('ydgiCustomerInfo'));
} }
} }
...@@ -20,7 +20,7 @@ export class MkMaterialDetailComponent implements OnInit { ...@@ -20,7 +20,7 @@ export class MkMaterialDetailComponent implements OnInit {
materialItemType: string; materialItemType: string;
// 海报图 // 海报图
productPosterPath: string; productPosterPath: string;
lifeCustomerInfo: any; ydgiCustomerInfo: any;
shareInfo: any; shareInfo: any;
// 自定义内容部分高度 // 自定义内容部分高度
contentHeight: number = 90; contentHeight: number = 90;
...@@ -42,7 +42,7 @@ export class MkMaterialDetailComponent implements OnInit { ...@@ -42,7 +42,7 @@ export class MkMaterialDetailComponent implements OnInit {
ngOnInit() { ngOnInit() {
this.materialItemId = this.activateRoute.snapshot.paramMap.get('itemId'); this.materialItemId = this.activateRoute.snapshot.paramMap.get('itemId');
this.materialItemType = this.activateRoute.snapshot.queryParams['itemType']; this.materialItemType = this.activateRoute.snapshot.queryParams['itemType'];
this.lifeCustomerInfo = localStorage.getItem('lifeCustomerInfo') ? JSON.parse(localStorage.getItem('lifeCustomerInfo')) : null; this.ydgiCustomerInfo = localStorage.getItem('ydgiCustomerInfo') ? JSON.parse(localStorage.getItem('ydgiCustomerInfo')) : null;
this.posterType = this.activateRoute.snapshot.queryParams['posterType']; this.posterType = this.activateRoute.snapshot.queryParams['posterType'];
this.posterQuery(this.posterType, this.materialItemType); this.posterQuery(this.posterType, this.materialItemType);
} }
...@@ -68,8 +68,8 @@ export class MkMaterialDetailComponent implements OnInit { ...@@ -68,8 +68,8 @@ export class MkMaterialDetailComponent implements OnInit {
const avatarurlY = this.canvas.nativeElement.height - (this.contentHeight + 50) / 2 * ratio; // 绘制的头像在画布上的位置 const avatarurlY = this.canvas.nativeElement.height - (this.contentHeight + 50) / 2 * ratio; // 绘制的头像在画布上的位置
const avatarImg = new Image(); const avatarImg = new Image();
avatarImg.setAttribute('crossOrigin', 'anonymous'); avatarImg.setAttribute('crossOrigin', 'anonymous');
if (this.lifeCustomerInfo.practitionerBasicInfo.headImagePath) { if (this.ydgiCustomerInfo.practitionerBasicInfo.headImagePath) {
avatarImg.src = this.lifeCustomerInfo.practitionerBasicInfo.headImagePath + '?v=' + new Date().getTime(); avatarImg.src = this.ydgiCustomerInfo.practitionerBasicInfo.headImagePath + '?v=' + new Date().getTime();
} else { } else {
avatarImg.src = `${environment.DOMAINNAME}/assets/img/meng.png?v=${new Date().getTime()}`; avatarImg.src = `${environment.DOMAINNAME}/assets/img/meng.png?v=${new Date().getTime()}`;
} }
...@@ -118,11 +118,11 @@ export class MkMaterialDetailComponent implements OnInit { ...@@ -118,11 +118,11 @@ export class MkMaterialDetailComponent implements OnInit {
ctx.font = `${12 * ratio}px 微软雅黑`; ctx.font = `${12 * ratio}px 微软雅黑`;
if (this.isNameShow == 1) { if (this.isNameShow == 1) {
ctx.fillText(`${this.lifeCustomerInfo.practitionerBasicInfo.name}`, 75 * ratio, avatarurlY + 15 * ratio); // Y指的是文字底部的位置 ctx.fillText(`${this.ydgiCustomerInfo.practitionerBasicInfo.name}`, 75 * ratio, avatarurlY + 15 * ratio); // Y指的是文字底部的位置
} }
ctx.fillText(`银盾保险经纪`, 75 * ratio, avatarurlY + 30 * ratio); // Y指的是文字底部的位置 ctx.fillText(`银盾保险经纪`, 75 * ratio, avatarurlY + 30 * ratio); // Y指的是文字底部的位置
if (this.isMobileShow == 1) { if (this.isMobileShow == 1) {
ctx.fillText(`${this.lifeCustomerInfo.mobileNo}`, 75 * ratio, avatarurlY + 45 * ratio); ctx.fillText(`${this.ydgiCustomerInfo.mobileNo}`, 75 * ratio, avatarurlY + 45 * ratio);
} }
ctx.scale(ratio, ratio); ctx.scale(ratio, ratio);
}; };
...@@ -208,7 +208,7 @@ export class MkMaterialDetailComponent implements OnInit { ...@@ -208,7 +208,7 @@ export class MkMaterialDetailComponent implements OnInit {
posterQuery(itemId, itemType) { posterQuery(itemId, itemType) {
this.myService.posterQuery({ this.myService.posterQuery({
id: this.posterType, id: this.posterType,
practitionerId: JSON.parse(localStorage.getItem('lifeCustomerInfo'))['practitionerId'], practitionerId: JSON.parse(localStorage.getItem('ydgiCustomerInfo'))['practitionerId'],
paginationInfo: { paginationInfo: {
noLimitFlag: 'CONFIRM' noLimitFlag: 'CONFIRM'
} }
...@@ -224,7 +224,7 @@ export class MkMaterialDetailComponent implements OnInit { ...@@ -224,7 +224,7 @@ export class MkMaterialDetailComponent implements OnInit {
this.shareInfo = { this.shareInfo = {
...this.lifeCommonService.generateShareCode(), ...this.lifeCommonService.generateShareCode(),
shareCode: shareCodeUuid, shareCode: shareCodeUuid,
customerId: this.lifeCustomerInfo.customerId, customerId: this.ydgiCustomerInfo.customerId,
productId: this.materialItemId, productId: this.materialItemId,
url: `${environment.DOMAINNAME}/life/${this.materialItemId}?shareCode=${shareCodeUuid}` url: `${environment.DOMAINNAME}/life/${this.materialItemId}?shareCode=${shareCodeUuid}`
}; };
......
...@@ -22,7 +22,7 @@ export class MkMaterialComponent implements OnInit { ...@@ -22,7 +22,7 @@ export class MkMaterialComponent implements OnInit {
posterQuery() { posterQuery() {
const param = { const param = {
practitionerId: JSON.parse(localStorage.getItem('lifeCustomerInfo'))['practitionerId'], practitionerId: JSON.parse(localStorage.getItem('ydgiCustomerInfo'))['practitionerId'],
mdDropOptionId: this.selectedCategoryId, mdDropOptionId: this.selectedCategoryId,
paginationInfo: { noLimitFlag: 'CONFIRM' } paginationInfo: { noLimitFlag: 'CONFIRM' }
} }
......
...@@ -62,9 +62,9 @@ export class MyBusinessDetailComponent implements OnInit { ...@@ -62,9 +62,9 @@ export class MyBusinessDetailComponent implements OnInit {
status: any; status: any;
isNeedAlert: boolean; isNeedAlert: boolean;
dialogInfo: any; dialogInfo: any;
practitionerId:any; practitionerId: any;
constructor(private activateRoute: ActivatedRoute, private myService: MyService, constructor(private activateRoute: ActivatedRoute, private myService: MyService,
public lifeCommonService: LifeCommonService, private router: Router, ) { public lifeCommonService: LifeCommonService, private router: Router,) {
this.titleList = [ this.titleList = [
{ id: 1, name: '基本信息' }, { id: 1, name: '基本信息' },
{ id: 3, name: '商机跟进' }, { id: 3, name: '商机跟进' },
...@@ -80,7 +80,7 @@ export class MyBusinessDetailComponent implements OnInit { ...@@ -80,7 +80,7 @@ export class MyBusinessDetailComponent implements OnInit {
//商机id //商机id
this.leadsAssignedId = this.activateRoute.snapshot.queryParams['leadsAssignedId']; this.leadsAssignedId = this.activateRoute.snapshot.queryParams['leadsAssignedId'];
this.opportunityRecordId = null; this.opportunityRecordId = null;
this.practitionerId = JSON.parse(localStorage.getItem('lifeCustomerInfo'))['practitionerId'] this.practitionerId = JSON.parse(localStorage.getItem('ydgiCustomerInfo'))['practitionerId']
this.tagQuery(); this.tagQuery();
//商机状态 //商机状态
this.dropOptionsQuery('bizchance_promotion_action'); this.dropOptionsQuery('bizchance_promotion_action');
...@@ -549,8 +549,8 @@ export class MyBusinessDetailComponent implements OnInit { ...@@ -549,8 +549,8 @@ export class MyBusinessDetailComponent implements OnInit {
} }
openPopInfo(message) { openPopInfo(message) {
this.myService.applyForExpertSupport({leadsAssignedId:this.leadsAssignedId,practitionerId:this.practitionerId,opportunityId:this.opportunityId}).subscribe((res)=>{ this.myService.applyForExpertSupport({ leadsAssignedId: this.leadsAssignedId, practitionerId: this.practitionerId, opportunityId: this.opportunityId }).subscribe((res) => {
if(res['success']){ if (res['success']) {
this.ownOpportunityDetailQuery(); this.ownOpportunityDetailQuery();
this.isNeedAlert = true; this.isNeedAlert = true;
this.dialogInfo = { this.dialogInfo = {
...@@ -558,7 +558,7 @@ export class MyBusinessDetailComponent implements OnInit { ...@@ -558,7 +558,7 @@ export class MyBusinessDetailComponent implements OnInit {
content: { value: message, align: 'center' }, content: { value: message, align: 'center' },
footer: [{ value: '确认离开', routerLink: '', className: 'weui-dialog__btn_primary' }], footer: [{ value: '确认离开', routerLink: '', className: 'weui-dialog__btn_primary' }],
}; };
}else{ } else {
this.toastDialog = true; this.toastDialog = true;
this.toastInfo = { this.toastInfo = {
status: 1, status: 1,
......
...@@ -16,8 +16,8 @@ export class MyBusinessComponent implements OnInit { ...@@ -16,8 +16,8 @@ export class MyBusinessComponent implements OnInit {
} }
ownOpportunityQuery() { ownOpportunityQuery() {
const brokerCustomerId = JSON.parse(localStorage.getItem('lifeCustomerInfo'))['customerId']; const brokerCustomerId = JSON.parse(localStorage.getItem('ydgiCustomerInfo'))['customerId'];
const brokerPractitionerId = JSON.parse(localStorage.getItem('lifeCustomerInfo'))['practitionerId']; const brokerPractitionerId = JSON.parse(localStorage.getItem('ydgiCustomerInfo'))['practitionerId'];
this.myService.ownOpportunityQuery({ customerId: brokerCustomerId, practitionerId: brokerPractitionerId }).subscribe((res) => { this.myService.ownOpportunityQuery({ customerId: brokerCustomerId, practitionerId: brokerPractitionerId }).subscribe((res) => {
if (res['data']['ownOpportunityInfos']) { if (res['data']['ownOpportunityInfos']) {
this.businessList = res['data']['ownOpportunityInfos']; this.businessList = res['data']['ownOpportunityInfos'];
......
...@@ -3,24 +3,24 @@ ...@@ -3,24 +3,24 @@
<!--头部经纪人信息START--> <!--头部经纪人信息START-->
<div class="avatar" routerLink="setting"> <div class="avatar" routerLink="setting">
<img <img
src="{{lifeCustomerInfo?.practitionerBasicInfo?.headImagePath ? lifeCustomerInfo?.practitionerBasicInfo?.headImagePath : './assets/images/icons/meng.png'}}" src="{{ydgiCustomerInfo?.practitionerBasicInfo?.headImagePath ? ydgiCustomerInfo?.practitionerBasicInfo?.headImagePath : './assets/images/icons/meng.png'}}"
alt="头像"> alt="头像">
</div> </div>
<div class="brokerInfo"> <div class="brokerInfo">
<div class="brokerName"> <div class="brokerName">
<div style="letter-spacing: 2px"><span>{{lifeCustomerInfo?.practitionerBasicInfo?.name}}</span></div> <div style="letter-spacing: 2px"><span>{{ydgiCustomerInfo?.practitionerBasicInfo?.name}}</span></div>
<span i class="iconfont icon-ar-r" style="font-size:18px;" routerLink="setting"></span> <span i class="iconfont icon-ar-r" style="font-size:18px;" routerLink="setting"></span>
</div> </div>
<div class="brokerTag"> <div class="brokerTag">
<div> <div>
<p>{{lifeCustomerInfo?.practitionerBasicInfo?.insurerBranchName ? <p>{{ydgiCustomerInfo?.practitionerBasicInfo?.insurerBranchName ?
lifeCustomerInfo?.practitionerBasicInfo?.insurerBranchName : '银盾保险'}}</p> ydgiCustomerInfo?.practitionerBasicInfo?.insurerBranchName : '银盾保险'}}</p>
</div> </div>
<div>·</div> <div>·</div>
<div>{{lifeCustomerInfo?.practitionerBasicInfo?.subordinateName}}</div> <div>{{ydgiCustomerInfo?.practitionerBasicInfo?.subordinateName}}</div>
<div>·</div> <div>·</div>
<div><span class="ydTitle">{{lifeCustomerInfo?.practitionerBasicInfo?.levelName}}</span></div> <div><span class="ydTitle">{{ydgiCustomerInfo?.practitionerBasicInfo?.levelName}}</span></div>
</div> </div>
</div> </div>
<!--头部经纪人信息END--> <!--头部经纪人信息END-->
......
...@@ -18,7 +18,7 @@ export class MyCenterHomeComponent implements OnInit, AfterViewInit { ...@@ -18,7 +18,7 @@ export class MyCenterHomeComponent implements OnInit, AfterViewInit {
menuLists: Array<any>; menuLists: Array<any>;
isNeedAlert: boolean; isNeedAlert: boolean;
dialogInfo: any; dialogInfo: any;
lifeCustomerInfo: any; ydgiCustomerInfo: any;
deviceType: number; deviceType: number;
announcementLists: Array<any>; announcementLists: Array<any>;
firstAnnouncement: string; firstAnnouncement: string;
...@@ -48,7 +48,7 @@ export class MyCenterHomeComponent implements OnInit, AfterViewInit { ...@@ -48,7 +48,7 @@ export class MyCenterHomeComponent implements OnInit, AfterViewInit {
const title = this.activatedRoute.snapshot.data[0]['title']; const title = this.activatedRoute.snapshot.data[0]['title'];
this.lifeCommonService.setTitle(title); this.lifeCommonService.setTitle(title);
this.deviceType = this.lifeCommonService.checkDeviceType(); this.deviceType = this.lifeCommonService.checkDeviceType();
this.lifeCustomerInfo = JSON.parse(localStorage.getItem('lifeCustomerInfo')) ? JSON.parse(localStorage.getItem('lifeCustomerInfo')) : null; this.ydgiCustomerInfo = JSON.parse(localStorage.getItem('ydgiCustomerInfo')) ? JSON.parse(localStorage.getItem('ydgiCustomerInfo')) : null;
this.announcementQuery(); this.announcementQuery();
this.performanceList = [ this.performanceList = [
{ name: '本月', time: 1 }, { name: '本月', time: 1 },
...@@ -71,11 +71,11 @@ export class MyCenterHomeComponent implements OnInit, AfterViewInit { ...@@ -71,11 +71,11 @@ export class MyCenterHomeComponent implements OnInit, AfterViewInit {
{ {
title: '营销工具', title: '营销工具',
content: [ content: [
{ no: 2, subtitle: 'AI保险医生', icon: 'icon-AI', path: `https://${window.location.host}/questionnaire/#/index?campaign=AIRobot&task=AItask1&customerId=${this.lifeCustomerInfo.customerId}`, routerLink: '' }, { no: 2, subtitle: 'AI保险医生', icon: 'icon-AI', path: `https://${window.location.host}/questionnaire/#/index?campaign=AIRobot&task=AItask1&customerId=${this.ydgiCustomerInfo.customerId}`, routerLink: '' },
{ no: 1, subtitle: '獴哥保险诊所', icon: 'icon-zhensuozhongxin', path: `https://${window.location.host}/consulting`, routerLink: '' }, { no: 1, subtitle: '獴哥保险诊所', icon: 'icon-zhensuozhongxin', path: `https://${window.location.host}/consulting`, routerLink: '' },
{ no: 4, subtitle: '线上投保', icon: 'icon-yidonghulianwang2', path: `https://${window.location.host}/index?source=dyd`, routerLink: '' }, { no: 4, subtitle: '线上投保', icon: 'icon-yidonghulianwang2', path: `https://${window.location.host}/index?source=dyd`, routerLink: '' },
{ no: 13, subtitle: '我的商机', icon: 'icon-xiansuo1', path: '', routerLink: 'business' }, { no: 13, subtitle: '我的商机', icon: 'icon-xiansuo1', path: '', routerLink: 'business' },
{ no: 9, subtitle: '我的名片', icon: 'icon-zhiyezhenghao', path: `https://${window.location.host}/brokerQry/#/brokerDetail/${this.lifeCustomerInfo.practitionerId}?source=0`, routerLink: '' }, { no: 9, subtitle: '我的名片', icon: 'icon-zhiyezhenghao', path: `https://${window.location.host}/brokerQry/#/brokerDetail/${this.ydgiCustomerInfo.practitionerId}?source=0`, routerLink: '' },
{ no: 10, subtitle: '职业类别', icon: 'icon-zhiye', path: 'https://www.ydinsurance.cn/occupationQry/', routerLink: '' }, { no: 10, subtitle: '职业类别', icon: 'icon-zhiye', path: 'https://www.ydinsurance.cn/occupationQry/', routerLink: '' },
{ no: 7, subtitle: '文章分享', icon: 'icon-fenxiangwenzhang', path: `https://${window.location.host}/discovery`, routerLink: '' }, { no: 7, subtitle: '文章分享', icon: 'icon-fenxiangwenzhang', path: `https://${window.location.host}/discovery`, routerLink: '' },
{ no: 3, subtitle: '产品海报', icon: 'icon-haibao-1', path: '/salesDetail', routerLink: 'material' }, { no: 3, subtitle: '产品海报', icon: 'icon-haibao-1', path: '/salesDetail', routerLink: 'material' },
...@@ -153,12 +153,12 @@ export class MyCenterHomeComponent implements OnInit, AfterViewInit { ...@@ -153,12 +153,12 @@ export class MyCenterHomeComponent implements OnInit, AfterViewInit {
// 分享名片 // 分享名片
shareIdCard() { shareIdCard() {
const imgUrl = this.lifeCustomerInfo.practitionerBasicInfo.headImagePath ? this.lifeCustomerInfo.practitionerBasicInfo.headImagePath : `${environment.ORIGINNAME}/ydLife/assets/images/icons/meng.png`; const imgUrl = this.ydgiCustomerInfo.practitionerBasicInfo.headImagePath ? this.ydgiCustomerInfo.practitionerBasicInfo.headImagePath : `${environment.ORIGINNAME}/ydLife/assets/images/icons/meng.png`;
this.lifeCommonService.shareStatusPublish(1); this.lifeCommonService.shareStatusPublish(1);
this.lifeCommonService.wxShare( this.lifeCommonService.wxShare(
`银盾保险经纪 ${this.lifeCustomerInfo.practitionerBasicInfo.name}`, `银盾保险经纪 ${this.ydgiCustomerInfo.practitionerBasicInfo.name}`,
'您的家庭保险专家、财务策划师。规划成就人生。', '您的家庭保险专家、财务策划师。规划成就人生。',
`https://${window.location.host}/brokerQry/#/brokerDetail/${this.lifeCustomerInfo.practitionerId}`, `https://${window.location.host}/brokerQry/#/brokerDetail/${this.ydgiCustomerInfo.practitionerId}`,
imgUrl); imgUrl);
} }
...@@ -172,7 +172,7 @@ export class MyCenterHomeComponent implements OnInit, AfterViewInit { ...@@ -172,7 +172,7 @@ export class MyCenterHomeComponent implements OnInit, AfterViewInit {
} }
getOut() { getOut() {
localStorage.removeItem('lifeCustomerInfo'); localStorage.removeItem('ydgiCustomerInfo');
this.router.navigate(['/login']); this.router.navigate(['/login']);
} }
...@@ -184,7 +184,7 @@ export class MyCenterHomeComponent implements OnInit, AfterViewInit { ...@@ -184,7 +184,7 @@ export class MyCenterHomeComponent implements OnInit, AfterViewInit {
rank(time, platform, type) { rank(time, platform, type) {
this.performanceSelectedFlag = time; this.performanceSelectedFlag = time;
const param = { const param = {
mobileNo: JSON.parse(localStorage.getItem('lifeCustomerInfo'))['mobileNo'], mobileNo: JSON.parse(localStorage.getItem('ydgiCustomerInfo'))['mobileNo'],
time: time, time: time,
platform: platform, platform: platform,
type: type type: type
...@@ -280,7 +280,7 @@ export class MyCenterHomeComponent implements OnInit, AfterViewInit { ...@@ -280,7 +280,7 @@ export class MyCenterHomeComponent implements OnInit, AfterViewInit {
//查询是否团队长 //查询是否团队长
subordinateSystemMemberQuery() { subordinateSystemMemberQuery() {
const practitionerId = JSON.parse(localStorage.getItem('lifeCustomerInfo'))['practitionerId']; const practitionerId = JSON.parse(localStorage.getItem('ydgiCustomerInfo'))['practitionerId'];
this.myService.subordinateSystemMemberQuery({ practitionerId: practitionerId, time: 1 }).subscribe((res) => { this.myService.subordinateSystemMemberQuery({ practitionerId: practitionerId, time: 1 }).subscribe((res) => {
if (res['success']) { if (res['success']) {
this.isShow = true; this.isShow = true;
...@@ -297,7 +297,7 @@ export class MyCenterHomeComponent implements OnInit, AfterViewInit { ...@@ -297,7 +297,7 @@ export class MyCenterHomeComponent implements OnInit, AfterViewInit {
//经纪人商机分数统计 //经纪人商机分数统计
opportunityStatistics() { opportunityStatistics() {
const practitionerId = JSON.parse(localStorage.getItem('lifeCustomerInfo'))['practitionerId']; const practitionerId = JSON.parse(localStorage.getItem('ydgiCustomerInfo'))['practitionerId'];
this.myService.opportunityStatistics({ practitionerId: practitionerId }).subscribe((res) => { this.myService.opportunityStatistics({ practitionerId: practitionerId }).subscribe((res) => {
if (res['success']) { if (res['success']) {
this.activities_grade = res['data']; this.activities_grade = res['data'];
......
...@@ -38,7 +38,7 @@ export class MySettingDetailComponent implements OnInit { ...@@ -38,7 +38,7 @@ export class MySettingDetailComponent implements OnInit {
//查询详情 //查询详情
mySettingQuery() { mySettingQuery() {
const practitionerId = JSON.parse(localStorage.getItem('lifeCustomerInfo'))['practitionerId']; const practitionerId = JSON.parse(localStorage.getItem('ydgiCustomerInfo'))['practitionerId'];
this.myService.mySettingQuery({ practitionerId: practitionerId }).subscribe((res) => { this.myService.mySettingQuery({ practitionerId: practitionerId }).subscribe((res) => {
if (res['success']) { if (res['success']) {
this.settingInfo = res['data']; this.settingInfo = res['data'];
...@@ -133,7 +133,7 @@ export class MySettingDetailComponent implements OnInit { ...@@ -133,7 +133,7 @@ export class MySettingDetailComponent implements OnInit {
myImgDelete(picId, index?: any, deletePic?: any) { myImgDelete(picId, index?: any, deletePic?: any) {
if (picId) { if (picId) {
const param = { const param = {
practitionerId: JSON.parse(localStorage.getItem('lifeCustomerInfo'))['practitionerId'], practitionerId: JSON.parse(localStorage.getItem('ydgiCustomerInfo'))['practitionerId'],
fileId: Number(picId) fileId: Number(picId)
} }
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
...@@ -170,14 +170,14 @@ export class MySettingDetailComponent implements OnInit { ...@@ -170,14 +170,14 @@ export class MySettingDetailComponent implements OnInit {
param = { param = {
settingSave: 'img', settingSave: 'img',
headImgUrl: this.settingInfo.headImgUrl, headImgUrl: this.settingInfo.headImgUrl,
practitionerId: JSON.parse(localStorage.getItem('lifeCustomerInfo'))['practitionerId'], practitionerId: JSON.parse(localStorage.getItem('ydgiCustomerInfo'))['practitionerId'],
lifeImgUrls: [] lifeImgUrls: []
} }
} else { } else {
param = { param = {
settingSave: 'img', settingSave: 'img',
headImgUrl: undefined, headImgUrl: undefined,
practitionerId: JSON.parse(localStorage.getItem('lifeCustomerInfo'))['practitionerId'], practitionerId: JSON.parse(localStorage.getItem('ydgiCustomerInfo'))['practitionerId'],
lifeImgUrls: [] lifeImgUrls: []
} }
} }
...@@ -187,14 +187,14 @@ export class MySettingDetailComponent implements OnInit { ...@@ -187,14 +187,14 @@ export class MySettingDetailComponent implements OnInit {
param = { param = {
settingSave: 'img', settingSave: 'img',
wxQRImgUrl: this.settingInfo.wxQRImgUrl, wxQRImgUrl: this.settingInfo.wxQRImgUrl,
practitionerId: JSON.parse(localStorage.getItem('lifeCustomerInfo'))['practitionerId'], practitionerId: JSON.parse(localStorage.getItem('ydgiCustomerInfo'))['practitionerId'],
lifeImgUrls: [] lifeImgUrls: []
} }
} else { } else {
param = { param = {
settingSave: 'img', settingSave: 'img',
wxQRImgUrl: undefined, wxQRImgUrl: undefined,
practitionerId: JSON.parse(localStorage.getItem('lifeCustomerInfo'))['practitionerId'], practitionerId: JSON.parse(localStorage.getItem('ydgiCustomerInfo'))['practitionerId'],
lifeImgUrls: [] lifeImgUrls: []
} }
} }
...@@ -215,13 +215,13 @@ export class MySettingDetailComponent implements OnInit { ...@@ -215,13 +215,13 @@ export class MySettingDetailComponent implements OnInit {
param = { param = {
settingSave: 'img', settingSave: 'img',
lifeImgUrls: lifeImgUrlsParam, lifeImgUrls: lifeImgUrlsParam,
practitionerId: JSON.parse(localStorage.getItem('lifeCustomerInfo'))['practitionerId'], practitionerId: JSON.parse(localStorage.getItem('ydgiCustomerInfo'))['practitionerId'],
} }
} }
if (this.uploadType == 'introduction') { if (this.uploadType == 'introduction') {
param = { param = {
settingSave: 'intro', settingSave: 'intro',
practitionerId: JSON.parse(localStorage.getItem('lifeCustomerInfo'))['practitionerId'], practitionerId: JSON.parse(localStorage.getItem('ydgiCustomerInfo'))['practitionerId'],
bioIntro: this.settingInfo.bioIntro bioIntro: this.settingInfo.bioIntro
} }
} }
...@@ -230,7 +230,7 @@ export class MySettingDetailComponent implements OnInit { ...@@ -230,7 +230,7 @@ export class MySettingDetailComponent implements OnInit {
settingSave: 'isShow', settingSave: 'isShow',
isNameShow: this.settingInfo.isNameShow, isNameShow: this.settingInfo.isNameShow,
isMobileShow: this.settingInfo.isMobileShow, isMobileShow: this.settingInfo.isMobileShow,
practitionerId: JSON.parse(localStorage.getItem('lifeCustomerInfo'))['practitionerId'], practitionerId: JSON.parse(localStorage.getItem('ydgiCustomerInfo'))['practitionerId'],
} }
} }
// alert(JSON.stringify(param)) // alert(JSON.stringify(param))
...@@ -240,9 +240,9 @@ export class MySettingDetailComponent implements OnInit { ...@@ -240,9 +240,9 @@ export class MySettingDetailComponent implements OnInit {
this.mySettingQuery(); this.mySettingQuery();
setTimeout(() => { setTimeout(() => {
if (this.uploadType == 'headUrl') { if (this.uploadType == 'headUrl') {
const lifeCustomerInfo = JSON.parse(localStorage.getItem('lifeCustomerInfo')) ? JSON.parse(localStorage.getItem('lifeCustomerInfo')) : null; const ydgiCustomerInfo = JSON.parse(localStorage.getItem('ydgiCustomerInfo')) ? JSON.parse(localStorage.getItem('ydgiCustomerInfo')) : null;
lifeCustomerInfo.practitionerBasicInfo.headImagePath = this.settingInfo.headImgUrl; ydgiCustomerInfo.practitionerBasicInfo.headImagePath = this.settingInfo.headImgUrl;
localStorage.setItem('lifeCustomerInfo', JSON.stringify(lifeCustomerInfo)) localStorage.setItem('ydgiCustomerInfo', JSON.stringify(ydgiCustomerInfo))
} }
}, 300) }, 300)
} else { } else {
......
...@@ -20,7 +20,7 @@ export class MySettingComponent implements OnInit { ...@@ -20,7 +20,7 @@ export class MySettingComponent implements OnInit {
} }
mySettingQuery() { mySettingQuery() {
const practitionerId = JSON.parse(localStorage.getItem('lifeCustomerInfo'))['practitionerId']; const practitionerId = JSON.parse(localStorage.getItem('ydgiCustomerInfo'))['practitionerId'];
this.myService.mySettingQuery({ practitionerId: practitionerId }).subscribe((res) => { this.myService.mySettingQuery({ practitionerId: practitionerId }).subscribe((res) => {
if (res['success']) { if (res['success']) {
this.settingInfo = res['data']; this.settingInfo = res['data'];
...@@ -29,7 +29,7 @@ export class MySettingComponent implements OnInit { ...@@ -29,7 +29,7 @@ export class MySettingComponent implements OnInit {
} }
getOut() { getOut() {
localStorage.removeItem('lifeCustomerInfo'); localStorage.removeItem('ydgiCustomerInfo');
this.router.navigate(['/login']); this.router.navigate(['/login']);
} }
......
...@@ -45,7 +45,7 @@ export class MyTargetComponent implements OnInit { ...@@ -45,7 +45,7 @@ export class MyTargetComponent implements OnInit {
ngOnInit() { ngOnInit() {
this.searchType = 1; this.searchType = 1;
this.isTeamleader = sessionStorage.getItem('isTeamleader'); this.isTeamleader = sessionStorage.getItem('isTeamleader');
this.practitionerId = JSON.parse(localStorage.getItem('lifeCustomerInfo'))['practitionerId']; this.practitionerId = JSON.parse(localStorage.getItem('ydgiCustomerInfo'))['practitionerId'];
//初始化查个人销售目标 //初始化查个人销售目标
this.salesTargetQuery(1); this.salesTargetQuery(1);
} }
...@@ -144,7 +144,7 @@ export class MyTargetComponent implements OnInit { ...@@ -144,7 +144,7 @@ export class MyTargetComponent implements OnInit {
} }
//修改平均值获取新的年度目标 //修改平均值获取新的年度目标
changePremium(idx,type) { changePremium(idx, type) {
let premium = 0; let premium = 0;
let commission = 0; let commission = 0;
for (let i = 0; i < this.salesTargetMonths.length; i++) { for (let i = 0; i < this.salesTargetMonths.length; i++) {
...@@ -156,10 +156,10 @@ export class MyTargetComponent implements OnInit { ...@@ -156,10 +156,10 @@ export class MyTargetComponent implements OnInit {
if (this.premium && this.pieceAveragePremium) { if (this.premium && this.pieceAveragePremium) {
this.pieces = Math.ceil(this.premium / this.pieceAveragePremium); this.pieces = Math.ceil(this.premium / this.pieceAveragePremium);
} }
if(type=='FYP' || type=='FYC'){ if (type == 'FYP' || type == 'FYC') {
let totalPiece = 0; let totalPiece = 0;
for(let j=0;j<this.salesTargetMonths.length;j++){ for (let j = 0; j < this.salesTargetMonths.length; j++) {
this.salesTargetMonths[idx]['pieces'] = Math.ceil(Number(this.salesTargetMonths[idx]['premium'])/Number(this.salesTargetMonths[idx]['pieceAveragePremium'])); this.salesTargetMonths[idx]['pieces'] = Math.ceil(Number(this.salesTargetMonths[idx]['premium']) / Number(this.salesTargetMonths[idx]['pieceAveragePremium']));
totalPiece += Number(this.salesTargetMonths[j]['pieces']); totalPiece += Number(this.salesTargetMonths[j]['pieces']);
} }
this.pieces = totalPiece; this.pieces = totalPiece;
...@@ -178,7 +178,7 @@ export class MyTargetComponent implements OnInit { ...@@ -178,7 +178,7 @@ export class MyTargetComponent implements OnInit {
if (type === 'pieceAveragePremium') { if (type === 'pieceAveragePremium') {
item.pieceAveragePremium = this.pieceAveragePremium; item.pieceAveragePremium = this.pieceAveragePremium;
} }
if(type!='commission'){ if (type != 'commission') {
if (item.premium && Number(item.pieceAveragePremium)) { if (item.premium && Number(item.pieceAveragePremium)) {
item.pieces = Math.ceil((this.premium / this.pieceAveragePremium) / 12); item.pieces = Math.ceil((this.premium / this.pieceAveragePremium) / 12);
} else { } else {
...@@ -186,7 +186,7 @@ export class MyTargetComponent implements OnInit { ...@@ -186,7 +186,7 @@ export class MyTargetComponent implements OnInit {
} }
} }
}); });
if(type!='commission'){ if (type != 'commission') {
if (this.premium && Number(this.pieceAveragePremium)) { if (this.premium && Number(this.pieceAveragePremium)) {
this.pieces = Math.ceil(this.premium / this.pieceAveragePremium); this.pieces = Math.ceil(this.premium / this.pieceAveragePremium);
} else { } else {
......
...@@ -113,7 +113,7 @@ export class RecruitingDetailComponent implements OnInit { ...@@ -113,7 +113,7 @@ export class RecruitingDetailComponent implements OnInit {
recruitTrackQuery() { recruitTrackQuery() {
const param = { const param = {
potentialId: this.potentialId ? this.potentialId : null, potentialId: this.potentialId ? this.potentialId : null,
practitionerId: JSON.parse(localStorage.getItem('lifeCustomerInfo'))['practitionerId'] practitionerId: JSON.parse(localStorage.getItem('ydgiCustomerInfo'))['practitionerId']
} }
this.myService.recruitTrackQuery(param).subscribe((res) => { this.myService.recruitTrackQuery(param).subscribe((res) => {
if (res['success']) { if (res['success']) {
...@@ -159,7 +159,7 @@ export class RecruitingDetailComponent implements OnInit { ...@@ -159,7 +159,7 @@ export class RecruitingDetailComponent implements OnInit {
saveInfo() { saveInfo() {
this.editRecruiting = { this.editRecruiting = {
...this.editRecruiting, ...this.editRecruiting,
practitionerId: JSON.parse(localStorage.getItem('lifeCustomerInfo'))['practitionerId'], practitionerId: JSON.parse(localStorage.getItem('ydgiCustomerInfo'))['practitionerId'],
potentialId: this.potentialId ? this.potentialId : null potentialId: this.potentialId ? this.potentialId : null
} }
if (!this.editRecruiting.name) { if (!this.editRecruiting.name) {
...@@ -321,7 +321,7 @@ export class RecruitingDetailComponent implements OnInit { ...@@ -321,7 +321,7 @@ export class RecruitingDetailComponent implements OnInit {
} }
param = { param = {
potentialId: this.potentialId, potentialId: this.potentialId,
practitionerId: JSON.parse(localStorage.getItem('lifeCustomerInfo'))['practitionerId'], practitionerId: JSON.parse(localStorage.getItem('ydgiCustomerInfo'))['practitionerId'],
notice: this.notice, notice: this.notice,
trackStatusId: this.trackStatusId, trackStatusId: this.trackStatusId,
trackTime: this.trackTime trackTime: this.trackTime
...@@ -329,7 +329,7 @@ export class RecruitingDetailComponent implements OnInit { ...@@ -329,7 +329,7 @@ export class RecruitingDetailComponent implements OnInit {
} else { } else {
param = recruitTrackInfoItem; param = recruitTrackInfoItem;
param.potentialId = this.potentialId; param.potentialId = this.potentialId;
param.practitionerId = JSON.parse(localStorage.getItem('lifeCustomerInfo'))['practitionerId']; param.practitionerId = JSON.parse(localStorage.getItem('ydgiCustomerInfo'))['practitionerId'];
} }
this.myService.addRecruitTrack(param).subscribe((res) => { this.myService.addRecruitTrack(param).subscribe((res) => {
if (res['success']) { if (res['success']) {
...@@ -358,7 +358,7 @@ export class RecruitingDetailComponent implements OnInit { ...@@ -358,7 +358,7 @@ export class RecruitingDetailComponent implements OnInit {
recruitListQuery() { recruitListQuery() {
const listParam = { const listParam = {
status: null, status: null,
practitionerId: JSON.parse(localStorage.getItem('lifeCustomerInfo')).practitionerId practitionerId: JSON.parse(localStorage.getItem('ydgiCustomerInfo')).practitionerId
} }
this.myService.recruitListQuery(listParam).subscribe((res) => { this.myService.recruitListQuery(listParam).subscribe((res) => {
if (res['success']) { if (res['success']) {
......
...@@ -34,7 +34,7 @@ export class RecruitingComponent implements OnInit { ...@@ -34,7 +34,7 @@ export class RecruitingComponent implements OnInit {
recruitListQuery(type) { recruitListQuery(type) {
const listParam = { const listParam = {
status: type, status: type,
practitionerId: JSON.parse(localStorage.getItem('lifeCustomerInfo')).practitionerId practitionerId: JSON.parse(localStorage.getItem('ydgiCustomerInfo')).practitionerId
} }
this.myService.recruitListQuery(listParam).subscribe((res) => { this.myService.recruitListQuery(listParam).subscribe((res) => {
if (res['success']) { if (res['success']) {
......
...@@ -17,8 +17,8 @@ export class SalaryComponent implements OnInit { ...@@ -17,8 +17,8 @@ export class SalaryComponent implements OnInit {
constructor(private myService: MyService, public lifeCommonService: LifeCommonService) { } constructor(private myService: MyService, public lifeCommonService: LifeCommonService) { }
ngOnInit() { ngOnInit() {
this.practitionerIdEG = JSON.parse(localStorage.getItem('lifeCustomerInfo'))['practitionerIdEG']; this.practitionerIdEG = JSON.parse(localStorage.getItem('ydgiCustomerInfo'))['practitionerIdEG'];
this.practitionerId = JSON.parse(localStorage.getItem('lifeCustomerInfo'))['practitionerId'] this.practitionerId = JSON.parse(localStorage.getItem('ydgiCustomerInfo'))['practitionerId']
this.payScaleListQuery(); this.payScaleListQuery();
} }
......
...@@ -30,7 +30,7 @@ export class SalesDetailComponent implements OnInit { ...@@ -30,7 +30,7 @@ export class SalesDetailComponent implements OnInit {
//查询保单 //查询保单
practitionerPolicyListQuery(platform?: any) { practitionerPolicyListQuery(platform?: any) {
const practitionerId = JSON.parse(localStorage.getItem('lifeCustomerInfo'))['practitionerId']; const practitionerId = JSON.parse(localStorage.getItem('ydgiCustomerInfo'))['practitionerId'];
this.myService.policyListQuery({ practitionerId: practitionerId, time: this.searchType }).subscribe((res) => { this.myService.policyListQuery({ practitionerId: practitionerId, time: this.searchType }).subscribe((res) => {
if (res['success']) { if (res['success']) {
this.salesDetailList = res['data']['policyInfoList']; this.salesDetailList = res['data']['policyInfoList'];
...@@ -58,7 +58,7 @@ export class SalesDetailComponent implements OnInit { ...@@ -58,7 +58,7 @@ export class SalesDetailComponent implements OnInit {
jumpToOrderdetail(orderNo, platform, fortuneId) { jumpToOrderdetail(orderNo, platform, fortuneId) {
if (platform === 1) { if (platform === 1) {
const customerId = JSON.parse(localStorage.getItem('lifeCustomerInfo')).customerId; const customerId = JSON.parse(localStorage.getItem('ydgiCustomerInfo')).customerId;
window.location.href = `https://${window.location.host}/mine/orderdetail/${orderNo}?customerId=${customerId}&isReferral=true&paid=true&fortuneId=${fortuneId}`; window.location.href = `https://${window.location.host}/mine/orderdetail/${orderNo}?customerId=${customerId}&isReferral=true&paid=true&fortuneId=${fortuneId}`;
} else { } else {
this.router.navigate(['/orderDetail'], { queryParams: { orderNo: orderNo } }); this.router.navigate(['/orderDetail'], { queryParams: { orderNo: orderNo } });
......
...@@ -35,7 +35,7 @@ export class SalesRankComponent implements OnInit { ...@@ -35,7 +35,7 @@ export class SalesRankComponent implements OnInit {
} }
ngOnInit() { ngOnInit() {
this.practitionerBasicInfo = JSON.parse(localStorage.getItem("lifeCustomerInfo"))['practitionerBasicInfo']; this.practitionerBasicInfo = JSON.parse(localStorage.getItem("ydgiCustomerInfo"))['practitionerBasicInfo'];
this.time = this.activatedRoute.snapshot.queryParams.time ? Number(this.activatedRoute.snapshot.queryParams.time) : null; this.time = this.activatedRoute.snapshot.queryParams.time ? Number(this.activatedRoute.snapshot.queryParams.time) : null;
//初始化查线上保费 //初始化查线上保费
this.rank(this.time, 1, 1) this.rank(this.time, 1, 1)
...@@ -51,7 +51,7 @@ export class SalesRankComponent implements OnInit { ...@@ -51,7 +51,7 @@ export class SalesRankComponent implements OnInit {
this.isOnlineType = platform; this.isOnlineType = platform;
this.searchType = type; this.searchType = type;
const param = { const param = {
mobileNo: JSON.parse(localStorage.getItem('lifeCustomerInfo'))['mobileNo'], mobileNo: JSON.parse(localStorage.getItem('ydgiCustomerInfo'))['mobileNo'],
time: time, time: time,
platform: platform, platform: platform,
type: type type: type
......
...@@ -17,7 +17,7 @@ export class ScoreDetailsComponent implements OnInit { ...@@ -17,7 +17,7 @@ export class ScoreDetailsComponent implements OnInit {
//销售活动量详情D-天 W-周 M-月 //销售活动量详情D-天 W-周 M-月
salesScoreDetailQuery(time) { salesScoreDetailQuery(time) {
this.selectedTime = time; this.selectedTime = time;
const practitionerId = JSON.parse(localStorage.getItem('lifeCustomerInfo'))['practitionerId']; const practitionerId = JSON.parse(localStorage.getItem('ydgiCustomerInfo'))['practitionerId'];
this.myService.salesScoreDetailQuery({ practitionerId: practitionerId, time: this.selectedTime }).subscribe((res) => { this.myService.salesScoreDetailQuery({ practitionerId: practitionerId, time: this.selectedTime }).subscribe((res) => {
if (res['success']) { if (res['success']) {
this.salesScoreDetails = res['data']['salesScoreDetails']; this.salesScoreDetails = res['data']['salesScoreDetails'];
......
...@@ -26,7 +26,7 @@ export class TeamPanelComponent implements OnInit { ...@@ -26,7 +26,7 @@ export class TeamPanelComponent implements OnInit {
statisticInfo: any; statisticInfo: any;
constructor(private myService: MyService, public lifeCommonService: LifeCommonService) { } constructor(private myService: MyService, public lifeCommonService: LifeCommonService) { }
ngOnInit() { ngOnInit() {
this.practitionerId = JSON.parse(localStorage.getItem('lifeCustomerInfo'))['practitionerId']; this.practitionerId = JSON.parse(localStorage.getItem('ydgiCustomerInfo'))['practitionerId'];
this.subordinateSystemName = sessionStorage.getItem('subordinateSystemName'); this.subordinateSystemName = sessionStorage.getItem('subordinateSystemName');
this.teamActionsAverageQuery(); this.teamActionsAverageQuery();
this.potentialActivityQuery(); this.potentialActivityQuery();
......
...@@ -35,7 +35,7 @@ export class TeamRankComponent implements OnInit { ...@@ -35,7 +35,7 @@ export class TeamRankComponent implements OnInit {
subordinateSystemMemberQuery(time, online?: any) { subordinateSystemMemberQuery(time, online?: any) {
this.time = time; this.time = time;
this.lineType = online; this.lineType = online;
const practitionerId = JSON.parse(localStorage.getItem('lifeCustomerInfo'))['practitionerId']; const practitionerId = JSON.parse(localStorage.getItem('ydgiCustomerInfo'))['practitionerId'];
//如果是寿险不显示 //如果是寿险不显示
if (online == 'underLine') { if (online == 'underLine') {
this.allPerformanceInfo = null this.allPerformanceInfo = null
......
...@@ -19,7 +19,7 @@ export class TeamSalesScoreComponent implements OnInit { ...@@ -19,7 +19,7 @@ export class TeamSalesScoreComponent implements OnInit {
private myService: MyService, public lifeCommonService: LifeCommonService) { } private myService: MyService, public lifeCommonService: LifeCommonService) { }
ngOnInit() { ngOnInit() {
this.practitionerId = JSON.parse(localStorage.getItem('lifeCustomerInfo'))['practitionerId']; this.practitionerId = JSON.parse(localStorage.getItem('ydgiCustomerInfo'))['practitionerId'];
this.subordinateSystemName = sessionStorage.getItem('subordinateSystemName'); this.subordinateSystemName = sessionStorage.getItem('subordinateSystemName');
//判断显示销售得分还是销售预测 //判断显示销售得分还是销售预测
this.showType = this.activateRoute.snapshot.paramMap.get('type'); this.showType = this.activateRoute.snapshot.paramMap.get('type');
......
...@@ -20,7 +20,7 @@ export class ThanksComponent implements OnInit, AfterViewInit { ...@@ -20,7 +20,7 @@ export class ThanksComponent implements OnInit, AfterViewInit {
brokerInfo: any; brokerInfo: any;
constructor(private router: Router) { } constructor(private router: Router) { }
ngOnInit() { ngOnInit() {
this.brokerInfo = JSON.parse(localStorage.getItem('lifeCustomerInfo'))['practitionerBasicInfo'] this.brokerInfo = JSON.parse(localStorage.getItem('ydgiCustomerInfo'))['practitionerBasicInfo']
} }
ngAfterViewInit() { ngAfterViewInit() {
......
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