Commit 4de97899 by Sweet Zhang

分享

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