Commit 4de97899 by Sweet Zhang

分享

parent 16ff06a5
<div class="guidePageContainer" (click)="closeGuidePage()">
<div class="guideTips">
<p>请点击右上角菜单</p>
<p>{{tips ? tips :'分享给朋友'}}</p>
<p>{{eNoticeId ? '分享给客户' :'分享给朋友'}}</p>
</div>
<i class="iconfont icon-yindaojiantou"></i>
</div>
import { Component, Input, OnInit } from '@angular/core';
import { Component, OnInit } from '@angular/core';
import { LifeCommonService } from "../life-common.service";
@Component({
......@@ -7,12 +7,14 @@ import { LifeCommonService } from "../life-common.service";
styleUrls: ['./guide-page.component.scss']
})
export class GuidePageComponent implements OnInit {
@Input() tips:string;
eNoticeId:string;
constructor(private lifeCommonService: LifeCommonService) {
}
ngOnInit() {
// 判断是分享给客户还是分享给朋友
this.eNoticeId = sessionStorage.getItem('eNoticeId');
setTimeout(() => {
this.closeGuidePage();
}, 6000);
......
......@@ -293,4 +293,3 @@
</div>
<ydlife-toast *ngIf="toastDialog" [toastInfo]="toastInfo"></ydlife-toast>
<ydlife-alert *ngIf="isNeedAlert" [dialogInfo]="dialogInfo" (popInfo)="getPopInfo()"></ydlife-alert>
<ydlife-guide-page *ngIf="shareENotice" [tips]="'分享给客户'"></ydlife-guide-page>
......@@ -66,8 +66,6 @@ export class MyBusinessDetailComponent implements OnInit {
practitionerId:any;
// 电子告知书弹窗显示
eNoticeState:boolean = false;
// 分享
shareENotice:boolean = false;
deviceType:number;
// 获取经纪人信息
lifeCustomerInfo:any;
......@@ -615,6 +613,7 @@ export class MyBusinessDetailComponent implements OnInit {
// 发送电子客户告知书,opportunityIdID = CustomerId
sendENotice(){
event.stopPropagation();
const param = {
 practitionerId:this.lifeCustomerInfo['practitionerId'],
     leadsAssignedId:this.leadsAssignedId,
......@@ -626,7 +625,6 @@ export class MyBusinessDetailComponent implements OnInit {
this.myService.saveInformedSheet(param).subscribe(res=>{
if(res['success']){
if(this.deviceType == 3){
this.shareENotice = true;
this.eNoticeState = false;
const imgUrl = this.lifeCustomerInfo.practitionerBasicInfo.headImagePath ? this.lifeCustomerInfo.practitionerBasicInfo.headImagePath : `${environment.ORIGINNAME}/ydLife/assets/images/icons/meng.png`;
this.lifeCommonService.shareStatusPublish(1);
......
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