Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
techbook
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
front-end-dev
techbook
Commits
8c137a6f
Commit
8c137a6f
authored
May 25, 2020
by
anxixi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文章发布修改
parent
ad17726a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
3 deletions
+21
-3
api.js
src/views/conmanagementpage/api/api.js
+4
-2
contentdetail.vue
src/views/conmanagementpage/contentdetail.vue
+17
-1
No files found.
src/views/conmanagementpage/api/api.js
View file @
8c137a6f
...
...
@@ -183,8 +183,10 @@ export default {
addOrSubtractHot
(
params
)
{
return
api
.
fetchLogin
(
'/business/content/addOrSubtractHot'
,
params
);
},
//个人用户信息
selectByEmpId
(
params
){
return
api
.
fetchPost
(
'/base/emp/selectByEmpId'
,
Qs
.
stringify
(
params
));
},
//获取域名
selectBasicParams
(
)
{
...
...
src/views/conmanagementpage/contentdetail.vue
View file @
8c137a6f
...
...
@@ -66,7 +66,7 @@
<p><span>
</span>
评论
<i>
(
{{
totalStrdto
.
totalStr
}}
)
</i></p>
<div
id=
"totaltop"
>
<div
style=
"width: 50px;"
>
<img
v-if=
"
contentData.contentCoverUrl"
:src=
"contentData.contentCoverUrl
"
>
<img
v-if=
"
publicFun.getCookie('userInfo')&&empuser.empLogo"
:src=
"empuser.empLogo
"
>
<img
v-else
src=
"../../assets/img/defaultlogo.png"
>
</div>
<div
style=
"width: 100%;margin-left: 20px;position: relative;"
>
...
...
@@ -182,6 +182,7 @@
urltext
:
''
,
positions
:
false
,
isaxios
:
true
,
empuser
:{}
}
},
methods
:{
...
...
@@ -474,6 +475,18 @@
this
.
$toast
(
err
);
})
},
getselectByEmpId
(){
let
params
=
{
empId
:
this
.
publicFun
.
getCookie
(
"userInfo"
)?
JSON
.
parse
(
this
.
Base64
.
decode
(
this
.
publicFun
.
getCookie
(
"userInfo"
))).
empId
:
undefined
,
};
api
.
selectByEmpId
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
0
){
this
.
empuser
=
res
.
result
;
}
}).
catch
((
err
)
=>
{
this
.
$toast
(
err
);
});
},
},
beforeDestroy
()
{
// 在组件生命周期结束的时候销毁。
window
.
removeEventListener
(
'scroll'
,
this
.
menu
);
...
...
@@ -493,6 +506,9 @@
globalMsg
.
$emit
(
'sendIndex'
,
3
);
}
this
.
getselectContentById
(
false
);
if
(
this
.
publicFun
.
getCookie
(
"userInfo"
)){
this
.
getselectByEmpId
();
}
api
.
selectBasicParams
().
then
(
response
=>
{
if
(
response
.
code
==
0
)
{
this
.
urltext
=
response
.
result
.
websitePrefix
+
'#/articleDetail?id='
;
...
...
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