Commit 66fc3d6f by Sweet Zhang

文章分享

parent 5bf0dc95
......@@ -42,7 +42,7 @@
</div>
</div>
</div>
<div class="shareCus" (click)="share()" *ngIf="this.lifeCommonService.checkDeviceType() == 3">
<div class="shareCus" (click)="share()">
<span>分享</span>
</div>
<!--分享引导页-->
......
......@@ -54,9 +54,9 @@ export class ArticleDetailComponent implements OnInit, OnDestroy {
} else {
this.customerId = null;
}
if (this.lifeCommonService.checkDeviceType() == '3' && !this.customerId) {
this.getWxUserInfo();
}
// if (this.lifeCommonService.checkDeviceType() == '3' && !this.customerId) {
// this.getWxUserInfo();
// }
}
ngOnDestroy() {
......@@ -112,13 +112,13 @@ export class ArticleDetailComponent implements OnInit, OnDestroy {
this.articleShareCodeSaveInfo = {
itemId: this.articleId,
shareCode: uuid.v4(),
practitionerId: this.lifeCustomerInfo.practitionerId ? this.lifeCustomerInfo.practitionerId : this.sharePractitionerInfo.practitionerId,
customerId: this.lifeCustomerInfo.customerId ? this.lifeCustomerInfo.customerId : this.sharePractitionerInfo.customerId,
practitionerId: this.lifeCustomerInfo ? this.lifeCustomerInfo.practitionerId : this.sharePractitionerInfo.practitionerId,
customerId: this.lifeCustomerInfo ? this.lifeCustomerInfo.customerId : this.sharePractitionerInfo.customerId,
os: this.lifeCommonService.checkOs(),
channel: 1,
url: window.location.href
};
this.lifeCommonService.wxShare(this.articleInfo.title, `来自银盾经纪人${this.lifeCustomerInfo.practitionerBasicInfo.name ? this.lifeCustomerInfo.practitionerBasicInfo.name : this.sharePractitionerInfo.name}的分享`, `${window.location.origin}${window.location.pathname}?shareCode=${this.articleShareCodeSaveInfo.shareCode}`, this.articleInfo.coverUrl);
this.lifeCommonService.wxShare(this.articleInfo.title, `来自银盾经纪人${this.lifeCustomerInfo ? this.lifeCustomerInfo.practitionerBasicInfo.name : this.sharePractitionerInfo.name}的分享`, `${window.location.origin}${window.location.pathname}?shareCode=${this.articleShareCodeSaveInfo.shareCode}`, this.articleInfo.coverUrl);
this.myService.articleShareCodeSave(this.articleShareCodeSaveInfo).subscribe(res => {
// console.log(res);
});
......
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