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
8512f749
Commit
8512f749
authored
May 21, 2021
by
sunchao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://139.224.139.2:9091/Sweet/ydLife
into master
parents
4cc9f848
8385e9b7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
18 deletions
+19
-18
src/app/my/approval-comments/approval-comments.component.ts
+2
-2
src/app/my/article-detail/article-detail.component.ts
+15
-13
src/app/my/my.service.ts
+2
-3
No files found.
src/app/my/approval-comments/approval-comments.component.ts
View file @
8512f749
...
@@ -53,7 +53,7 @@ export class ApprovalCommentsComponent implements OnInit {
...
@@ -53,7 +53,7 @@ export class ApprovalCommentsComponent implements OnInit {
}
}
this
.
myService
.
hiringApprove
(
param
).
subscribe
((
res
)
=>
{
this
.
myService
.
hiringApprove
(
param
).
subscribe
((
res
)
=>
{
if
(
res
[
'success'
]){
if
(
res
[
'success'
]){
this
.
openPopInfo
(
'
保存
成功!'
);
this
.
openPopInfo
(
'
你的审批
成功!'
);
sessionStorage
.
setItem
(
'viewApprovalInfo'
,
'1'
)
sessionStorage
.
setItem
(
'viewApprovalInfo'
,
'1'
)
}
else
{
}
else
{
this
.
openPopInfo
(
res
[
'message'
]);
this
.
openPopInfo
(
res
[
'message'
]);
...
@@ -78,6 +78,6 @@ export class ApprovalCommentsComponent implements OnInit {
...
@@ -78,6 +78,6 @@ export class ApprovalCommentsComponent implements OnInit {
}
else
{
}
else
{
this
.
router
.
navigate
([
'/approval_list'
]);
this
.
router
.
navigate
([
'/approval_list'
]);
}
}
}
}
}
}
src/app/my/article-detail/article-detail.component.ts
View file @
8512f749
...
@@ -35,18 +35,18 @@ export class ArticleDetailComponent implements OnInit, OnDestroy {
...
@@ -35,18 +35,18 @@ export class ArticleDetailComponent implements OnInit, OnDestroy {
ngOnInit
()
{
ngOnInit
()
{
this
.
articleId
=
this
.
activatedRoute
.
snapshot
.
params
[
'id'
];
this
.
articleId
=
this
.
activatedRoute
.
snapshot
.
params
[
'id'
];
this
.
shareCode
=
this
.
activatedRoute
.
snapshot
.
queryParams
[
'shareCode'
];
this
.
shareCode
=
this
.
lifeCommonService
.
getQueryString
(
'shareCode'
);
this
.
state
=
this
.
lifeCommonService
.
getQueryString
(
'state'
)
this
.
state
=
this
.
lifeCommonService
.
getQueryString
(
'state'
);
// if (this.activatedRoute.snapshot.queryParams['shareCode'] && this.state) {
//检测浏览器刷新
// this.practitionerFileSharingList(null, this.shareCode);
window
.
onbeforeunload
=
()
=>
{
// } else if(this.activatedRoute.snapshot.queryParams['shareCode']){
//清除sessionStorage值
// this.articleTrackSave();
sessionStorage
.
removeItem
(
'articleTrackId'
)
// }else{this.practitionerFileSharingList(this.articleId, null);
}
// }
if
(
this
.
shareCode
)
{
if
(
this
.
activatedRoute
.
snapshot
.
queryParams
[
'shareCode'
])
{
this
.
practitionerFileSharingList
(
null
,
this
.
shareCode
);
this
.
practitionerFileSharingList
(
null
,
this
.
shareCode
);
this
.
articleTrackSave
();
if
(
!
this
.
state
){
this
.
articleTrackSave
();
}
}
else
{
}
else
{
this
.
practitionerFileSharingList
(
this
.
articleId
,
null
);
this
.
practitionerFileSharingList
(
this
.
articleId
,
null
);
}
}
...
@@ -67,8 +67,10 @@ export class ArticleDetailComponent implements OnInit, OnDestroy {
...
@@ -67,8 +67,10 @@ export class ArticleDetailComponent implements OnInit, OnDestroy {
}
}
ngOnDestroy
()
{
ngOnDestroy
()
{
this
.
articleTrackSave
();
if
(
this
.
shareCode
&&
this
.
state
==
'1'
){
sessionStorage
.
removeItem
(
'articleTrackId'
);
this
.
articleTrackSave
();
sessionStorage
.
removeItem
(
'articleTrackId'
);
}
}
}
// 从后台获取到获取微信code的URL
// 从后台获取到获取微信code的URL
...
...
src/app/my/my.service.ts
View file @
8512f749
...
@@ -611,9 +611,8 @@ export class MyService {
...
@@ -611,9 +611,8 @@ export class MyService {
* 获取微信用户的详细信息
* 获取微信用户的详细信息
*/
*/
getWxUserInfo
(
trackId
)
{
getWxUserInfo
(
trackId
)
{
const
url
=
this
.
API
+
'/getWxUserInfo'
;
const
url
=
this
.
API
+
'/getSnsApiUserInfo?trackId='
+
trackId
;
const
cs
=
{
trackId
:
trackId
};
return
this
.
http
.
get
(
url
).
pipe
((
res
)
=>
{
return
this
.
http
.
post
(
url
,
cs
).
pipe
((
res
)
=>
{
return
res
;
return
res
;
});
});
}
}
...
...
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