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
a172956f
Commit
a172956f
authored
May 24, 2021
by
sunchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文章分享获取头像
parent
e9e1936c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
14 deletions
+16
-14
src/app/my/approval-comments/approval-comments.component.ts
+1
-1
src/app/my/article-detail/article-detail.component.ts
+15
-13
No files found.
src/app/my/approval-comments/approval-comments.component.ts
View file @
a172956f
...
...
@@ -53,7 +53,7 @@ export class ApprovalCommentsComponent implements OnInit {
}
this
.
myService
.
hiringApprove
(
param
).
subscribe
((
res
)
=>
{
if
(
res
[
'success'
]){
this
.
openPopInfo
(
'你的审批成功'
);
this
.
openPopInfo
(
'你的审批成功
!
'
);
sessionStorage
.
setItem
(
'viewApprovalInfo'
,
'1'
)
}
else
{
this
.
openPopInfo
(
res
[
'message'
]);
...
...
src/app/my/article-detail/article-detail.component.ts
View file @
a172956f
...
...
@@ -35,18 +35,18 @@ export class ArticleDetailComponent implements OnInit, OnDestroy {
ngOnInit
()
{
this
.
articleId
=
this
.
activatedRoute
.
snapshot
.
params
[
'id'
];
this
.
shareCode
=
this
.
activatedRoute
.
snapshot
.
queryParams
[
'shareCode'
];
this
.
state
=
this
.
lifeCommonService
.
getQueryString
(
'state'
)
// if (this.activatedRoute.snapshot.queryParams['shareCode'] && this.state) {
// this.practitionerFileSharingList(null, this.shareCode);
// } else if(this.activatedRoute.snapshot.queryParams['shareCode']){
// this.articleTrackSave();
// }else{this.practitionerFileSharingList(this.articleId, null);
// }
if
(
this
.
activatedRoute
.
snapshot
.
queryParams
[
'shareCode'
])
{
this
.
shareCode
=
this
.
lifeCommonService
.
getQueryString
(
'shareCode'
);
this
.
state
=
this
.
lifeCommonService
.
getQueryString
(
'state'
);
//检测浏览器刷新
window
.
onbeforeunload
=
()
=>
{
//清除sessionStorage值
sessionStorage
.
removeItem
(
'articleTrackId'
)
}
if
(
this
.
shareCode
)
{
this
.
practitionerFileSharingList
(
null
,
this
.
shareCode
);
this
.
articleTrackSave
();
if
(
!
this
.
state
){
this
.
articleTrackSave
();
}
}
else
{
this
.
practitionerFileSharingList
(
this
.
articleId
,
null
);
}
...
...
@@ -67,8 +67,10 @@ export class ArticleDetailComponent implements OnInit, OnDestroy {
}
ngOnDestroy
()
{
this
.
articleTrackSave
();
sessionStorage
.
removeItem
(
'articleTrackId'
);
if
(
this
.
shareCode
&&
this
.
state
==
'1'
){
this
.
articleTrackSave
();
sessionStorage
.
removeItem
(
'articleTrackId'
);
}
}
// 从后台获取到获取微信code的URL
...
...
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