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 @@
出版社
@@ -35,43 +35,33 @@ height="200px" @change="carouselChange" > - -
-
- -
-
- -
+ +
+ +
-
+
-
AI超入门
+
{{ item.bookName }}
- 秋叶 刘进新 - 机械工业出版社 + {{ item.author }} + {{ item.publish }}

- 图书简介图书简介图书简介图书简介图书简介图书简介图书 + {{ item.introduce }}

- 100次 - 查看详情 + {{item.clickNum}}次 + 查看详情
@@ -97,9 +87,9 @@ placeholder="请输入关键词进行检索" style="width: 300px" > - 搜索 + 搜索 - 重置 + 重置

热门检索

@@ -109,31 +99,31 @@
-
检索结果:121
-
+
检索结果:{{ totalNum }}
+
- +

- {{item}}秒懂AI提问:秒懂AI提问:让人工智能成为你的效率神器 + {{item.bookName}}

- 秋叶 刘进新 姜梅 定秋枫 - 2023年07月 + {{item.author}} + {{item.createdDate}}
- 人民邮电出版社 - ISBN:950146556432 + {{item.publish}} + ISBN:{{item.isbn}}
- 精心提炼20种GPT提问方法及指令,从入到进阶再到精通,100个案例带你玩转100个案例带你玩转G + {{item.introduce}}
- 100次 + {{item.clickNum}}次
@@ -141,11 +131,11 @@
-
查看详情
+
查看详情
-
人家是有底线的
-
加载中...
+
暂无更多数据
+
加载中...
@@ -155,27 +145,27 @@
- +

- 秒懂AI提问:秒懂AI提问:让人工智能成为你的效率神器 + {{ detailData.bookName }}

- 秋叶 刘进新 姜梅 定秋枫 - 2023年07月 + {{ detailData.author }} + {{ detailData.createdDate }}
- 人民邮电出版社 - ISBN:950146556432 + {{ detailData.publish }} + ISBN:{{ detailData.isbn }}
- 精心提炼20种GPT提问方法及指令,从入到进阶再到精通,100个案例带你玩转100个案例带你玩转G + {{ detailData.introduce }}
- 100次 + {{ detailData.clickNum }}次
@@ -208,65 +198,59 @@