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