diff --git a/selfServiceMachine/src/api/bookshelf.js b/selfServiceMachine/src/api/book.js similarity index 50% rename from selfServiceMachine/src/api/bookshelf.js rename to selfServiceMachine/src/api/book.js index c60a1c7..4c760e3 100644 --- a/selfServiceMachine/src/api/bookshelf.js +++ b/selfServiceMachine/src/api/book.js @@ -4,16 +4,18 @@ import request from '@/utils/request' // 书单推荐二级页面 export function FetchBookRecommendList(params) { return request({ - url: '/frontDemoApi/bookRecommendList', + url: 'frontDemoApi/bookRecommendList', method: 'get', params: params }) } -export function FetchbookOnlineList(params) { + +//书单推荐-书籍详情 +export function FetchBookRecommendDetails(parameter) { return request({ - url: '/frontDemoApi/bookOnlineList', - method: 'get', - params: params + url: 'frontDemoApi/bookRecommendDetails', + method: 'post', + data: parameter }) } @@ -22,5 +24,5 @@ export function FetchbookOnlineList(params) { export default { FetchBookRecommendList, - FetchbookOnlineList + FetchBookRecommendDetails } diff --git a/selfServiceMachine/src/assets/styles/index.scss b/selfServiceMachine/src/assets/styles/index.scss index 32002f8..67de27f 100644 --- a/selfServiceMachine/src/assets/styles/index.scss +++ b/selfServiceMachine/src/assets/styles/index.scss @@ -154,8 +154,12 @@ .ranking-img{ width: 140px; height: 200px; - background-color: red; + background-color: #f1f1f1; overflow: hidden; + img{ + display: block; + width: 100%; + } } .ranking-book-detail{ margin-top: 10px; @@ -339,6 +343,7 @@ background-color: #fff; border-radius: 8px; height: calc(100vh - 698px); + // height: calc(100vh - 20px); overflow: hidden; overflow-y: scroll; .result{ @@ -532,3 +537,8 @@ height: 40px; line-height: 40px; } + +.load-data{ + padding: 15px 0; + text-align: center; +} \ No newline at end of file diff --git a/selfServiceMachine/src/main.js b/selfServiceMachine/src/main.js index 0ea23e8..9e4556e 100644 --- a/selfServiceMachine/src/main.js +++ b/selfServiceMachine/src/main.js @@ -20,6 +20,7 @@ Vue.prototype.$axios = axios import echarts from 'echarts' Vue.prototype.$echarts = echarts +Vue.prototype.coverUrl = 'http://192.168.99.67:8080' Vue.config.productionTip = false new Vue({ diff --git a/selfServiceMachine/src/views/bookRecommend.vue b/selfServiceMachine/src/views/bookRecommend.vue index a24f497..70b747e 100644 --- a/selfServiceMachine/src/views/bookRecommend.vue +++ b/selfServiceMachine/src/views/bookRecommend.vue @@ -13,7 +13,7 @@
{{ item.name }}
+{{ item.publish }}
{{ item.num }}- 图书简介图书简介图书简介图书简介图书简介图书简介图书 + {{ item.introduce }}
秒懂AI写作
-- ChatGPT:AI革命AI革命AI革命 -
+{{ item.bookName }}
热门检索
@@ -109,31 +99,31 @@