Commit ed5438eb by Sweet Zhang

申请企业邮箱

parent 027fec29
<div class="businessCardContainer"> <div class="businessCardContainer">
<div style="text-align: right;padding-right: 20px;padding-top: 15px;">
<button class="applyEmailBtn" (click)="applyEmail()">申请公司邮箱</button>
</div>
<div class="brokerCardPositive"> <div class="brokerCardPositive">
<div class="qrcodeBox"> <div class="qrcodeBox">
<div> <div>
...@@ -44,3 +47,4 @@ ...@@ -44,3 +47,4 @@
<img src="assets/images/card_opposite.jpg" alt="" class="img-responsive"> <img src="assets/images/card_opposite.jpg" alt="" class="img-responsive">
</div> </div>
</div> </div>
<ydlife-alert *ngIf="isNeedAlert" [dialogInfo]="dialogInfo" (popInfo)="getPopInfo()"></ydlife-alert>
\ No newline at end of file
...@@ -4,6 +4,14 @@ ...@@ -4,6 +4,14 @@
color: #000; color: #000;
font-weight: 600; font-weight: 600;
letter-spacing: 1px; letter-spacing: 1px;
.applyEmailBtn{
border: 1px solid #0767bf;
background: transparent;
padding: 5px 10px;
border-radius: 5px;
color: #fff;
background: #0767bf;
}
.brokerCardPositive { .brokerCardPositive {
display: flex; display: flex;
padding-top: 7%; padding-top: 7%;
......
...@@ -9,7 +9,8 @@ import { MyService } from '../my.service'; ...@@ -9,7 +9,8 @@ import { MyService } from '../my.service';
export class BusinessCardComponent implements OnInit { export class BusinessCardComponent implements OnInit {
lifeCustomerInfo: any; lifeCustomerInfo: any;
practitionerInfo:any; practitionerInfo:any;
isNeedAlert: boolean;
dialogInfo: any;
constructor(private myService:MyService) { constructor(private myService:MyService) {
} }
...@@ -17,6 +18,19 @@ export class BusinessCardComponent implements OnInit { ...@@ -17,6 +18,19 @@ export class BusinessCardComponent implements OnInit {
this.lifeCustomerInfo = JSON.parse(localStorage.getItem('lifeCustomerInfo')); this.lifeCustomerInfo = JSON.parse(localStorage.getItem('lifeCustomerInfo'));
this.businessCard(); this.businessCard();
} }
// 申请企业邮箱
applyEmail(){
this.isNeedAlert = true;
this.dialogInfo = {
title: null,
content: { value: '您的银盾保险专属办公邮箱将在2个工作日内为您生成,欢迎使用!祝业绩长虹!', align: 'center' },
footer: [{ value: '确认', routerLink: '', className: 'weui-dialog__btn_primary' }],
};
}
getPopInfo() {
this.isNeedAlert = false;
}
businessCard(){ businessCard(){
this.myService.businessCard({practitionerId:this.lifeCustomerInfo.practitionerId}).subscribe(res=>{ this.myService.businessCard({practitionerId:this.lifeCustomerInfo.practitionerId}).subscribe(res=>{
if(res['success']){ if(res['success']){
......
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