From 7f34045a822008e4df512f4c066c7dddd81c1f7c Mon Sep 17 00:00:00 2001 From: xiongxiaoyang <773861846@qq.com> Date: Sun, 29 May 2022 18:03:57 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E5=B0=8F=E8=AF=B4?= =?UTF-8?q?=E5=8F=91=E5=B8=83=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/author.js | 4 + src/router/index.js | 5 + src/views/author/BookAdd.vue | 822 ++++++++++++++++++++++++++++++++++ src/views/author/BookList.vue | 33 +- 4 files changed, 851 insertions(+), 13 deletions(-) create mode 100644 src/views/author/BookAdd.vue diff --git a/src/api/author.js b/src/api/author.js index 6759e56..27060f8 100644 --- a/src/api/author.js +++ b/src/api/author.js @@ -10,4 +10,8 @@ export function register(params) { export function listBooks() { return request.get('/author/books'); +} + +export function publishBook(params) { + return request.post('/author/book', params); } \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index 0b3abb6..8b645bf 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -78,6 +78,11 @@ const router = createRouter({ name: 'authorBookList', component: () => import('@/views/author/BookList') }, + { + path: '/author/book_add', + name: 'authorBookAdd', + component: () => import('@/views/author/BookAdd') + } ] }) diff --git a/src/views/author/BookAdd.vue b/src/views/author/BookAdd.vue new file mode 100644 index 0000000..1b22c81 --- /dev/null +++ b/src/views/author/BookAdd.vue @@ -0,0 +1,822 @@ + + + + + + + diff --git a/src/views/author/BookList.vue b/src/views/author/BookList.vue index 02bc8db..eef5ba1 100644 --- a/src/views/author/BookList.vue +++ b/src/views/author/BookList.vue @@ -10,14 +10,18 @@
- 创建作品 + 创建作品

小说列表

- 发布小说 + 发布小说
@@ -35,25 +39,27 @@ - - + +
- {{item.bookName}} + {{ item.bookName }} + + {{ item.categoryName }} + + {{ item.visitCount }} - {{item.categoryName}} - {{item.visitCount}} 0 - {{item.lastChapterUpdateTime}} 更新 + {{ item.updateTime }} 更新 0