diff --git a/src/api/bookshelf.js b/src/api/bookshelf.js index be46191..7b90504 100644 --- a/src/api/bookshelf.js +++ b/src/api/bookshelf.js @@ -38,9 +38,19 @@ export function getBookDetailsByISBN(params) { }) } +// 获取首页书架基本信息 +export function initSmartBookshelf(params) { + return request({ + url: '/dxhtsg/initSmartBookshelf', + method: 'get', + params + }) +} + export default { FetchNewBookRecommend, FetchCoverByISBN, initNumberResoures, - getBookDetailsByISBN + getBookDetailsByISBN, + initSmartBookshelf } diff --git a/src/assets/styles/index.scss b/src/assets/styles/index.scss index 378adeb..2ca23b8 100644 --- a/src/assets/styles/index.scss +++ b/src/assets/styles/index.scss @@ -35,7 +35,7 @@ position: absolute; top: 30px; right: 40px; - width: 134px; + width: 180px; height: 58px; line-height: 60px; background: linear-gradient(90deg, #ACDAFF 0%, #9BCEFF 100%); diff --git a/src/views/index.vue b/src/views/index.vue index 37b6b52..e5c6d76 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -2,12 +2,12 @@
近代文学类
-古代文学类
+{{ leftShelfMsg }}
+{{ rightShelfMsg }}