import { Component, OnInit } from '@angular/core';
import { LifeCommonService } from "../life-common.service";

@Component({
  selector: 'ydlife-guide-page',
  templateUrl: './guide-page.component.html',
  styleUrls: ['./guide-page.component.scss']
})
export class GuidePageComponent implements OnInit {
  eNoticeId:string;

  constructor(private lifeCommonService: LifeCommonService) {
  }

  ngOnInit() {
    // 判断是分享给客户还是分享给朋友
    this.eNoticeId = sessionStorage.getItem('eNoticeId');
    setTimeout(() => {
      this.closeGuidePage();
    }, 6000);
  }

  closeGuidePage() {
    this.lifeCommonService.shareStatusPublish(0);
  }

}
