Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
beyond-clouds-front
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
Administrator
beyond-clouds-front
Commits
48cbd61e
Commit
48cbd61e
authored
Feb 13, 2020
by
yanju
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'yoona' into 'master'
Yoona See merge request pigbigbig/beyond-clouds-front!64
parents
ae3d2f59
c302a7d2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
action/config.js
+1
-1
pages/blog/index.vue
+15
-3
No files found.
action/config.js
View file @
48cbd61e
...
...
@@ -43,7 +43,7 @@ export default {
otherFans
:
'/api/user/'
,
//获取ta的粉丝(列表) +{userId}/fans
otherFollowing
:
'/api/user/'
,
//获取ta的关注(列表) +{userId}/follower
blacklist
:
'/api/my/blacklist/'
,
//获取黑名单 +{userId}
hotBloggers
:
'/api/user/hotBloggers'
,
//热门博主
},
Authentication
:{
...
...
pages/blog/index.vue
View file @
48cbd61e
...
...
@@ -24,14 +24,13 @@
<div
class=
"blog-container__right"
>
<div
class=
"right__write-blog"
@
click=
"toRelease"
>
写文章
</div>
<card-container
v-if=
"false"
title=
"热门博主"
label=
"换一换"
more=
"更多"
width=
"302px"
style=
"margin-top: 16px;max-height: 446px;"
>
<user-card></user-card>
<user-card
v-for=
"(item, index) in hotBloggerList"
:key=
"item.userId"
:info=
"item"
></user-card>
</card-container>
<card-container
title=
"热门标签"
...
...
@@ -73,12 +72,13 @@ export default {
pages
:
1
,
hotBlogList
:
[],
hotTagsList
:
[],
hotBloggerList
:
[],
labelTitle
:
''
,
showPagination
:
true
,
showPaginationTimer
:
null
,
list
:
[
{
label
:
'全部
项目
'
,
label
:
'全部
博客
'
,
address
:
'/blog'
,
type
:
'all'
},
...
...
@@ -95,6 +95,7 @@ export default {
this
.
dataGetBlogCategory
();
this
.
getLabelTitle
();
this
.
dataGetHotTagsList
();
this
.
dataGetHotBloggersList
();
},
watch
:
{
$route
:
function
()
{
...
...
@@ -152,6 +153,17 @@ export default {
})
},
dataGetHotBloggersList
()
{
let
params
=
{
page
:
1
,
size
:
5
};
this
.
$axios
.
$get
(
config
.
api
.
get
.
User
.
hotBloggers
,{
params
:
params
})
.
then
((
response
)
=>
{
console
.
log
(
response
);
this
.
hotBloggerList
=
response
.
data
.
dataList
;
});
},
toRelease
(){
this
.
$router
.
push
(
'/blog/release'
)
...
...
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