Commit 696dabff by Sweet Zhang

分享名片按钮的显示和隐藏

parent c4201a53
......@@ -8,7 +8,7 @@
<div class="brokerInfo">
<div class="brokerName">
<div style="letter-spacing: 2px"><span>{{lifeCustomerInfo?.practitionerBasicInfo?.name}}</span></div>
<div class="shareSelfInfoBtn" *ngIf="this.deviceType===3" (click)="shareIdCard()"><span>分享名片</span></div>
<div class="shareSelfInfoBtn" *ngIf="deviceType=='3'" (click)="shareIdCard()"><span>分享名片</span></div>
</div>
<div class="brokerTag">
......
import {Component, OnInit} from '@angular/core';
import {Router} from "@angular/router";
import {LifeCommonService} from "../../common/life-common.service";
import {environment} from "../../../environments/environment";
declare var wx: any;
@Component({
selector: 'ydlife-my-center-home',
......@@ -71,12 +72,13 @@ export class MyCenterHomeComponent implements OnInit {
// 分享名片
shareIdCard() {
const imgUrl = this.lifeCustomerInfo.practitionerBasicInfo.headImagePath ? this.lifeCustomerInfo.practitionerBasicInfo.headImagePath : `${environment.ORIGINNAME}/ydLife/assets/images/icons/meng.png`;
this.lifeCommonService.shareStatusPublish(1);
this.lifeCommonService.wxShare(
`银盾保险经纪 ${this.lifeCustomerInfo.practitionerBasicInfo.name}`,
'银盾保险经纪,家庭健康保险专家',
`https://m.zuihuibi.cn/brokerQry/#/brokerDetail/${this.lifeCustomerInfo.practitionerId}`,
'imgUrl');
imgUrl);
}
}
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