From 4bbe28fa7ea0d59f84364813e1e5e8a2ead88afc Mon Sep 17 00:00:00 2001 From: xuhuajiao <13476289682@163.com> Date: Wed, 29 Nov 2023 11:25:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E4=B9=A6=E6=8E=A8=E8=8D=90api?= =?UTF-8?q?=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/api/{bookshelf.js => book.js} | 14 +- .../src/assets/styles/index.scss | 12 +- selfServiceMachine/src/main.js | 1 + .../src/views/bookRecommend.vue | 291 ++++++++++-------- .../src/views/onlineBookSelection.vue | 4 +- 5 files changed, 183 insertions(+), 139 deletions(-) rename selfServiceMachine/src/api/{bookshelf.js => book.js} (50%) 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 @@