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
b71d750b
Commit
b71d750b
authored
May 21, 2020
by
anxixi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文章发布修改
parent
13d45e52
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
23 deletions
+33
-23
contentall.vue
src/views/conmanagementpage/contentall.vue
+10
-7
contentdetail.vue
src/views/conmanagementpage/contentdetail.vue
+17
-10
hotarticlepage.vue
src/views/conmanagementpage/hotarticlepage.vue
+6
-6
No files found.
src/views/conmanagementpage/contentall.vue
View file @
b71d750b
...
...
@@ -195,7 +195,7 @@
this
.
expertVisible
=
false
;
this
.
cur_page
=
1
;
this
.
getselectContentList
();
if
(
index
>
8
){
if
(
index
>
=
8
){
this
.
channelListmax
.
splice
(
this
.
channelListmax
.
length
-
1
,
1
);
this
.
channelListmax
.
push
(
row
);
}
...
...
@@ -206,6 +206,7 @@
this
.
search
.
channelId
=
row
.
name
;
this
.
cur_page
=
1
;
this
.
getselectContentList
();
this
.
contentList
=
[];
if
(
this
.
positions
){
window
.
scrollTo
(
0
,
220
);
}
...
...
@@ -272,11 +273,6 @@
this
.
loading
=
true
;
api
.
selectContentList
(
searchurl
,
params
).
then
(
response
=>
{
if
(
response
.
code
==
0
)
{
//右侧推荐
let
paramsd
=
{
contentId
:
null
};
this
.
$refs
.
hotstate
.
selectProfessorRecommendedContent
(
paramsd
);
if
(
this
.
cur_page
==
1
){
this
.
contentList
=
response
.
result
.
records
;
}
else
{
...
...
@@ -325,11 +321,18 @@
},
mounted
()
{
this
.
selectContentChannelList
();
if
(
this
.
$route
.
query
.
classifyId
){
let
params
=
[{
classifyId
:
this
.
$route
.
query
.
classifyId
,
classifyName
:
this
.
$route
.
query
.
classifyName
}];
this
.
classifyclk
(
params
);
}
//右侧推荐
let
paramsd
=
{
contentId
:
null
};
this
.
$refs
.
hotstate
.
selectProfessorRecommendedContent
(
paramsd
);
//右侧热门
let
params
=
{};
this
.
$refs
.
hotstate
.
getselectHotContent
(
params
);
api
.
selectBasicParams
().
then
(
response
=>
{
if
(
response
.
code
==
0
)
{
this
.
urltext
=
response
.
result
.
websitePrefix
+
'#/articleDetail?id='
;
...
...
src/views/conmanagementpage/contentdetail.vue
View file @
b71d750b
...
...
@@ -181,6 +181,7 @@
dictData
:{},
urltext
:
''
,
positions
:
false
,
isaxios
:
true
,
}
},
methods
:{
...
...
@@ -296,6 +297,7 @@
},
//评论
getselectContentCommentsList
(){
this
.
isaxios
=
false
;
let
params
=
{
pagination
:
{
number
:
this
.
numberData
,
...
...
@@ -415,6 +417,7 @@
},
//举报
dictdialog
(
item
){
this
.
selectDictListaxios
();
if
(
!
this
.
publicFun
.
getCookie
(
"userInfo"
)){
this
.
$refs
.
login
.
isexpertVisible
();
return
...
...
@@ -448,6 +451,9 @@
let
scroll
=
document
.
documentElement
.
scrollTop
||
document
.
body
.
scrollTop
;
if
(
scroll
>
200
){
this
.
positions
=
true
;
if
(
this
.
isaxios
==
true
){
this
.
getselectContentCommentsList
();
}
}
else
{
this
.
positions
=
false
;
}
...
...
@@ -457,6 +463,17 @@
globalMsg
.
$emit
(
'topShowpage'
,
false
);
}
},
selectDictListaxios
(){
api
.
getselectDictList
().
then
((
res
)
=>
{
if
(
res
.
code
==
0
){
this
.
reportTypeList
=
res
.
result
;
}
else
{
this
.
$message
.
error
(
res
.
msgCode
);
}
}).
catch
((
err
)
=>
{
this
.
$toast
(
err
);
})
},
},
beforeDestroy
()
{
// 在组件生命周期结束的时候销毁。
window
.
removeEventListener
(
'scroll'
,
this
.
menu
);
...
...
@@ -476,16 +493,6 @@
globalMsg
.
$emit
(
'sendIndex'
,
3
);
}
this
.
getselectContentById
(
false
);
this
.
getselectContentCommentsList
();
api
.
getselectDictList
().
then
((
res
)
=>
{
if
(
res
.
code
==
0
){
this
.
reportTypeList
=
res
.
result
;
}
else
{
this
.
$message
.
error
(
res
.
msgCode
);
}
}).
catch
((
err
)
=>
{
this
.
$toast
(
err
);
})
api
.
selectBasicParams
().
then
(
response
=>
{
if
(
response
.
code
==
0
)
{
this
.
urltext
=
response
.
result
.
websitePrefix
+
'#/articleDetail?id='
;
...
...
src/views/conmanagementpage/hotarticlepage.vue
View file @
b71d750b
...
...
@@ -117,12 +117,12 @@
},
},
mounted
()
{
let
params
=
{
hotContentChangeDTO
:{
}
};
this
.
getselectHotContent
(
params
);
//
let params = {
//
hotContentChangeDTO:{
//
//
}
//
};
//
this.getselectHotContent(params);
globalMsg
.
$on
(
"topShowpage"
,(
data
)
=>
{
this
.
istopShow
=
data
;
})
...
...
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