Commit f85411d8 by wenyang

优化分享链接(邀请经纪人报聘)

parent 0b5a1721
......@@ -133,14 +133,19 @@ export class LifeCommonService {
link: link, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
imgUrl: imgUrl, // 分享图标
success: () => {
console.log('试试');
},
fail:(res) =>{
//alert(res.errMsg);
}
};
wx.ready(() => { // 需在用户可能点击分享按钮前就先调用
wx.updateAppMessageShareData(shareData);
wx.updateTimelineShareData(shareData);
});
wx.error(function(res) {
//alert(res.errMsg);
});
}
// 根据开始时间设置结束时间,天数应减1,当日~当日是一天
......
......@@ -6,7 +6,7 @@
<p>您将邀请{{inviteeName}}</p>
<p>加入银盾保险经纪</p>
</div>
<footer (click)="sandInvitation()">
<footer (click)="sandInvitation(1)">
发出邀请
</footer>
</div>
......
......@@ -32,18 +32,21 @@ export class InvitationComponent implements OnInit {
this.invitatorName = this.activatedRoute.snapshot.queryParams.invitatorName?this.activatedRoute.snapshot.queryParams.invitatorName:null;
this.inviteeName = this.activatedRoute.snapshot.queryParams.inviteeName?this.activatedRoute.snapshot.queryParams.inviteeName:null;
this.deviceType = this.lifeCommonService.checkDeviceType();
this.sandInvitation(2);
}
//分享邀请
sandInvitation() {
sandInvitation(type) {
if(this.deviceType == 3){
const imgUrl = this.lifeCustomerInfo.practitionerBasicInfo.headImagePath ? this.lifeCustomerInfo.practitionerBasicInfo.headImagePath : `${environment.DOMAINNAME}/ydLife/assets/images/icons/meng.png`;
this.lifeCommonService.shareStatusPublish(1);
const imgUrl = this.lifeCustomerInfo.practitionerBasicInfo.headImagePath ? this.lifeCustomerInfo.practitionerBasicInfo.headImagePath : `${environment.DOMAINNAME}ydLife/assets/images/icons/meng.png`;
this.lifeCommonService.wxShare(
'银盾保险经纪电子报聘邀请函',
`${this.lifeCustomerInfo.practitionerBasicInfo.name}邀请您报聘银盾保险经纪。加入靠谱的团队、一起做靠谱的事。`,
`https://${window.location.host}/ydLife/invitees?hiringBasicInfoId=${this.hiringBasicInfoId}&invitatorName=${this.invitatorName}`,
imgUrl);
if(type==1){
this.lifeCommonService.shareStatusPublish(1);
}
}else{
alert('请在微信公众号中发送邀请');
}
......
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