Commit 4da27f73 by Sweet Zhang

续保客户不需要登录判断

parent 8e72ce58
...@@ -156,7 +156,7 @@ const myRoutes: Routes = [ ...@@ -156,7 +156,7 @@ const myRoutes: Routes = [
{ path: 'eNoticeSign',component:ENoticeComponent,canActivate:[AuthGuard],data:{type:1,title: '客户告知书和保险经纪服务委托协议'}}, { path: 'eNoticeSign',component:ENoticeComponent,canActivate:[AuthGuard],data:{type:1,title: '客户告知书和保险经纪服务委托协议'}},
{ path: 'renewal_reminder',component:RenewalReminderComponent,canActivate:[AuthGuard],data:{type:1,title: '续期提醒'}}, { path: 'renewal_reminder',component:RenewalReminderComponent,canActivate:[AuthGuard],data:{type:1,title: '续期提醒'}},
{ path: 'renewal_reminder_detail/:orderPayId',component:RenewalReminderDetailComponent,canActivate:[AuthGuard],data:{type:1,title: '续期订单提醒'}}, { path: 'renewal_reminder_detail/:orderPayId',component:RenewalReminderDetailComponent,canActivate:[AuthGuard],data:{type:1,title: '续期订单提醒'}},
{ path: 'reminder_detail/:orderPayId',component:RenewalReminderDetailComponent,canActivate:[AuthGuard],data:{type:2,title: '续期订单详情信息'}}, { path: 'reminder_detail/:orderPayId',component:RenewalReminderDetailComponent,data:{type:2,title: '续期订单详情信息'}},
{ path: 'joint_sales',component:JointSalesComponent,canActivate:[AuthGuard],data:{title: '联合销售列表'}}, { path: 'joint_sales',component:JointSalesComponent,canActivate:[AuthGuard],data:{title: '联合销售列表'}},
{ path: 'joint_sales_detail/:unionSalesId',component:JointSaleDetailComponent,canActivate:[AuthGuard],data:{ttitle: '联合销售签署'}} { path: 'joint_sales_detail/:unionSalesId',component:JointSaleDetailComponent,canActivate:[AuthGuard],data:{ttitle: '联合销售签署'}}
......
...@@ -25,8 +25,15 @@ export class RenewalReminderDetailComponent implements OnInit { ...@@ -25,8 +25,15 @@ export class RenewalReminderDetailComponent implements OnInit {
shareSelect(type){ shareSelect(type){
this.noticeType = type; this.noticeType = type;
this.dialogDisabled = true; this.dialogDisabled = true;
if(this.noticeType===1){
this.content = ` 尊敬的${this.orderPayDetail.policyholderName}您好,你在${this.orderPayDetail.insurerName}公司投保的${this.orderPayDetail.productName}产品,快到第${this.orderPayDetail.payPeriod}期续交保费了,当期保费${this.orderPayDetail.annualizedPremium}元,请在预留的银行卡准备好相应金额,避免保单失效和造成损失。谢谢!任何问题可以随时联络您的经纪人提供帮助。`
}
if(this.noticeType===2){ if(this.noticeType===2){
this.wxShare() this.wxShare();
this.addNotice()
}
if(this.noticeType===3){
this.addNotice();
} }
} }
close = (e)=>{ close = (e)=>{
...@@ -46,7 +53,6 @@ export class RenewalReminderDetailComponent implements OnInit { ...@@ -46,7 +53,6 @@ export class RenewalReminderDetailComponent implements OnInit {
this.myService.queryNoticeDetail({orderPayId:this.orderPayId}).subscribe(res=>{ this.myService.queryNoticeDetail({orderPayId:this.orderPayId}).subscribe(res=>{
if(res['success']){ if(res['success']){
this.orderPayDetail = res['data']['orderPayDetail']; this.orderPayDetail = res['data']['orderPayDetail'];
this.content = ` 尊敬的${this.orderPayDetail.policyholderName}您好,你在${this.orderPayDetail.insurerName}公司投保的${this.orderPayDetail.productName}产品,快到第${this.orderPayDetail.payPeriod}期续交保费了,当期保费${this.orderPayDetail.annualizedPremium}元,请在预留的银行卡准备好相应金额,避免保单失效和造成损失。谢谢!任何问题可以随时联络您的经纪人提供帮助。`
}else{ }else{
this.openPopInfo(res['message']); this.openPopInfo(res['message']);
} }
...@@ -55,12 +61,14 @@ export class RenewalReminderDetailComponent implements OnInit { ...@@ -55,12 +61,14 @@ export class RenewalReminderDetailComponent implements OnInit {
addNotice(){ addNotice(){
this.myService.addNotice({practitionerId:this.practitionerId,orderPayId:this.orderPayId,noticeType:this.noticeType,content:this.content,remark:this.remark}).subscribe(res=>{ this.myService.addNotice({practitionerId:this.practitionerId,orderPayId:this.orderPayId,noticeType:this.noticeType,content:this.content,remark:this.remark}).subscribe(res=>{
this.openPopInfo(res['message']); if(this.noticeType===1){
this.openPopInfo(res['message']);
}
}) })
} }
wxShare(){ wxShare(){
this.lifeCommonService.wxShare('保单续期提醒','来自经纪人的温馨提醒,您有保单快到续期交费日期,点击看看以免忘记,避免损失。',`${window.location.origin}/ydLife/reminder_detail/${this.orderPayId}`,`${window.location.origin}/ydLife/assets/images/productData/protect.png`); this.lifeCommonService.wxShare('保单续期提醒','来自经纪人的温馨提醒,您有保单快到续期交费日期,点击看看以免忘记,避免损失。',`${window.location.origin}/ydLife/reminder_detail/${this.orderPayId}`,`${window.location.origin}/ydLife/assets/images/renewalReminderIcon.png`);
} }
// 打开弹窗 // 打开弹窗
......
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