Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ydLife
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sweet Zhang
ydLife
Commits
f85411d8
Commit
f85411d8
authored
Dec 07, 2023
by
wenyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化分享链接(邀请经纪人报聘)
parent
0b5a1721
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
5 deletions
+13
-5
src/app/common/life-common.service.ts
+6
-1
src/app/my/application-process/invitation/invitation.component.html
+1
-1
src/app/my/application-process/invitation/invitation.component.ts
+6
-3
No files found.
src/app/common/life-common.service.ts
View file @
f85411d8
...
@@ -133,14 +133,19 @@ export class LifeCommonService {
...
@@ -133,14 +133,19 @@ export class LifeCommonService {
link
:
link
,
// 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
link
:
link
,
// 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
imgUrl
:
imgUrl
,
// 分享图标
imgUrl
:
imgUrl
,
// 分享图标
success
:
()
=>
{
success
:
()
=>
{
console
.
log
(
'试试'
);
},
fail
:(
res
)
=>
{
//alert(res.errMsg);
}
}
};
};
wx
.
ready
(()
=>
{
// 需在用户可能点击分享按钮前就先调用
wx
.
ready
(()
=>
{
// 需在用户可能点击分享按钮前就先调用
wx
.
updateAppMessageShareData
(
shareData
);
wx
.
updateAppMessageShareData
(
shareData
);
wx
.
updateTimelineShareData
(
shareData
);
wx
.
updateTimelineShareData
(
shareData
);
});
});
wx
.
error
(
function
(
res
)
{
//alert(res.errMsg);
});
}
}
// 根据开始时间设置结束时间,天数应减1,当日~当日是一天
// 根据开始时间设置结束时间,天数应减1,当日~当日是一天
...
...
src/app/my/application-process/invitation/invitation.component.html
View file @
f85411d8
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<p>
您将邀请{{inviteeName}}
</p>
<p>
您将邀请{{inviteeName}}
</p>
<p>
加入银盾保险经纪
</p>
<p>
加入银盾保险经纪
</p>
</div>
</div>
<footer
(
click
)="
sandInvitation
()"
>
<footer
(
click
)="
sandInvitation
(
1
)"
>
发出邀请
发出邀请
</footer>
</footer>
</div>
</div>
...
...
src/app/my/application-process/invitation/invitation.component.ts
View file @
f85411d8
...
@@ -32,18 +32,21 @@ export class InvitationComponent implements OnInit {
...
@@ -32,18 +32,21 @@ export class InvitationComponent implements OnInit {
this
.
invitatorName
=
this
.
activatedRoute
.
snapshot
.
queryParams
.
invitatorName
?
this
.
activatedRoute
.
snapshot
.
queryParams
.
invitatorName
:
null
;
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
.
inviteeName
=
this
.
activatedRoute
.
snapshot
.
queryParams
.
inviteeName
?
this
.
activatedRoute
.
snapshot
.
queryParams
.
inviteeName
:
null
;
this
.
deviceType
=
this
.
lifeCommonService
.
checkDeviceType
();
this
.
deviceType
=
this
.
lifeCommonService
.
checkDeviceType
();
this
.
sandInvitation
(
2
);
}
}
//分享邀请
//分享邀请
sandInvitation
()
{
sandInvitation
(
type
)
{
if
(
this
.
deviceType
==
3
){
if
(
this
.
deviceType
==
3
){
const
imgUrl
=
this
.
lifeCustomerInfo
.
practitionerBasicInfo
.
headImagePath
?
this
.
lifeCustomerInfo
.
practitionerBasicInfo
.
headImagePath
:
`
${
environment
.
DOMAINNAME
}
/ydLife/assets/images/icons/meng.png`
;
const
imgUrl
=
this
.
lifeCustomerInfo
.
practitionerBasicInfo
.
headImagePath
?
this
.
lifeCustomerInfo
.
practitionerBasicInfo
.
headImagePath
:
`
${
environment
.
DOMAINNAME
}
ydLife/assets/images/icons/meng.png`
;
this
.
lifeCommonService
.
shareStatusPublish
(
1
);
this
.
lifeCommonService
.
wxShare
(
this
.
lifeCommonService
.
wxShare
(
'银盾保险经纪电子报聘邀请函'
,
'银盾保险经纪电子报聘邀请函'
,
`
${
this
.
lifeCustomerInfo
.
practitionerBasicInfo
.
name
}
邀请您报聘银盾保险经纪。加入靠谱的团队、一起做靠谱的事。`
,
`
${
this
.
lifeCustomerInfo
.
practitionerBasicInfo
.
name
}
邀请您报聘银盾保险经纪。加入靠谱的团队、一起做靠谱的事。`
,
`https://
${
window
.
location
.
host
}
/ydLife/invitees?hiringBasicInfoId=
${
this
.
hiringBasicInfoId
}
&invitatorName=
${
this
.
invitatorName
}
`
,
`https://
${
window
.
location
.
host
}
/ydLife/invitees?hiringBasicInfoId=
${
this
.
hiringBasicInfoId
}
&invitatorName=
${
this
.
invitatorName
}
`
,
imgUrl
);
imgUrl
);
if
(
type
==
1
){
this
.
lifeCommonService
.
shareStatusPublish
(
1
);
}
}
else
{
}
else
{
alert
(
'请在微信公众号中发送邀请'
);
alert
(
'请在微信公众号中发送邀请'
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment