diff --git a/src/api/bookshelf.js b/src/api/bookshelf.js index c967408..c3de0aa 100644 --- a/src/api/bookshelf.js +++ b/src/api/bookshelf.js @@ -19,6 +19,15 @@ export function FetchNewBookRecommend(params) { }) } +// 热门图书 +export function FetchHotBookRecommend(params) { + return request({ + url: '/dxhtsg/hotBookRecommend', + method: 'get', + params: params + }) +} + // 通过isbn获取图书封面 export function FetchCoverByISBN(params) { return request({ @@ -56,11 +65,22 @@ export function FetchInitBookshelfDetails(params) { }) } +// 作者推荐 +export function FetchProposeAuthor(params) { + return request({ + url: '/dxhtsg/proposeAuthor', + method: 'get', + params: params + }) +} + export default { FetchNewBookRecommend, FetchCoverByISBN, initNumberResoures, getBookDetailsByISBN, initSmartBookshelf, - FetchInitBookshelfDetails + FetchInitBookshelfDetails, + FetchHotBookRecommend, + FetchProposeAuthor } diff --git a/src/views/authorRecommend.vue b/src/views/authorRecommend.vue index bf4b29e..335c5e1 100644 --- a/src/views/authorRecommend.vue +++ b/src/views/authorRecommend.vue @@ -10,8 +10,8 @@