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
c268350c
Commit
c268350c
authored
Feb 05, 2020
by
高浩杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
finish config
parent
5068cfb9
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
134 additions
and
6 deletions
+134
-6
action/config.js
+119
-2
pages/answer/index.vue
+4
-1
pages/blog/index.vue
+4
-1
pages/news/index.vue
+7
-2
No files found.
action/config.js
View file @
c268350c
...
...
@@ -85,11 +85,128 @@ export default {
},
post
:{
Post
:{
release
:
'/api/post'
,
//发布动态
},
PostComment
:{
release
:
'/api/post/'
,
//发布动态评论 +{postId}/comment
},
Blog
:{
release
:
'/api/blog'
//发布博客
},
BlogComment
:{
release
:
'/api/blog/'
,
//发布博客评论 +{blogId}/comment
},
Tag
:{
create
:
'/api/tag'
//创建标签
},
User
:{
shielding
:
'/api/my/blacklist/'
,
//拉黑 +{userId}
follow
:
'/api/user/'
,
//关注 +{userId}/follower
register
:
'/api/user/register/mobile'
//用户注册
},
Authentication
:{
accountAuth
:
'/api/auth/password'
,
//账号密码认证
smsAuth
:
'/api/auth/sms'
//短信验证登录
},
Topic
:{
release
:
'/api/topic'
,
//创建话题
follow
:
'/api/topic/'
,
//关注话题 +{topicId}/follower
},
Resource
:{
file
:
'/api/resource/file'
//文件上传
},
Question
:{
release
:
'/api/question'
//发布问题
},
QuestionReply
:{
release
:
'/api/question/'
,
//发布回复 +{questionId}/reply
},
QuestionReplyComment
:{
release
:
'/api/question/reply/'
,
//发表评论 +{replyId}/comment
},
Project
:{
release
:
'/api/project'
,
//发布项目
},
ProjectComment
:{
list
:
'/api/project/'
,
//项目发表评论 +{projectId}/comment
},
},
delete
:{
Post
:{
delete
:
'/api/post/'
,
//删除动态 +{postId}
},
PostComment
:{
delete
:
'/api/post/comment/'
,
//删除动态评论 +{commentId}
},
Blog
:{
delete
:
'/api/blog/'
//删除博客 +{blogId}
},
BlogComment
:{
delete
:
'/api/blog/comment/'
,
//删除博客评论 +{commentId}
},
User
:{
unfollow
:
'/api/user/'
,
//取消关注 +{userId}/follower
},
delete
:{},
put
:{},
Question
:{
delete
:
'/api/question/'
//删除问题 +{questionId}
},
QuestionReply
:{
delete
:
'/api/question/reply/'
,
//删除问题回复 +{replyId}
},
QuestionReplyComment
:{
delete
:
'/api/question/reply/comment/'
,
//删除评论 +{commentId}
},
Project
:{
delete
:
'/api/project/'
,
//删除项目 +{projectId}
},
ProjectComment
:{
delete
:
'/api/project/comment/'
,
//删除项目评论 +{commentId}
},
},
put
:{
Blog
:{
revise
:
'/api/blog/'
//修改博客 +{blogId}
},
User
:{
reviseInfo
:
'/api/my/baseinfo'
,
//修改个人资料
revisePassword
:
'/api/my/password'
//修改密码
},
Question
:{
revise
:
'/api/question/'
//修改问题 +{questionId}
},
QuestionReply
:{
adopt
:
'/api/question/reply/'
,
//采纳问题回复 +{replyId}/adoption
},
Project
:{
revise
:
'/api/project/'
,
//修改项目 +{projectId}
},
},
},
event
:{
...
...
pages/answer/index.vue
View file @
c268350c
...
...
@@ -16,7 +16,7 @@
<answer-card
card-type=
"2"
></answer-card>
</card-container>
<div
class=
"pagination"
>
<pagination
style=
"margin: 0 auto;"
></pagination>
<pagination
style=
"margin: 0 auto;"
pages=
"13"
v-on:listenPageChange=
"changePage"
></pagination>
</div>
</div>
<div
class=
"answer-container__right"
>
...
...
@@ -114,6 +114,9 @@ export default {
},
search
(){
this
.
$router
.
push
(
'/search/answer'
);
},
changePage
(
currentPage
){
//返回页数 请求新的数据
}
}
}
...
...
pages/blog/index.vue
View file @
c268350c
...
...
@@ -19,7 +19,7 @@
<project-card></project-card>
</card-container>
<div
class=
"pagination"
>
<pagination
style=
"margin: 0 auto;"
></pagination>
<pagination
style=
"margin: 0 auto;"
pages=
"13"
v-on:listenPageChange=
"changePage"
></pagination>
</div>
</div>
<div
class=
"blog-container__right"
>
...
...
@@ -97,6 +97,9 @@ export default {
methods
:
{
toRelease
(){
this
.
$router
.
push
(
'/blog/release'
)
},
changePage
(
currentPage
){
//返回页数 请求新的数据
}
}
}
...
...
pages/news/index.vue
View file @
c268350c
...
...
@@ -11,7 +11,7 @@
<project-card></project-card>
</card-container>
<div
class=
"pagination"
>
<pagination
style=
"margin: 0 auto;"
></pagination>
<pagination
style=
"margin: 0 auto;"
pages=
"13"
v-on:listenPageChange=
"changePage"
></pagination>
</div>
</div>
<div
class=
"news-container__r"
>
...
...
@@ -62,7 +62,12 @@ import ProjectCard from "../../components/pc/projectCard";
import
Pagination
from
"../../components/pc/pagination"
;
export
default
{
components
:
{
ProjectCard
,
CardContainer
,
Pagination
}
components
:
{
ProjectCard
,
CardContainer
,
Pagination
},
methods
:
{
changePage
(
currentPage
){
//返回页数 请求新的数据
}
}
}
</
script
>
...
...
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