From 42bf844647999af83362ca0691b94c7ec803e0a0 Mon Sep 17 00:00:00 2001
From: xuhuajiao <13476289682@163.com>
Date: Wed, 30 Aug 2023 16:13:08 +0800
Subject: [PATCH] 0830
---
.env.development | 34 ++--
src/api/library.js | 190 ++++++++++----------
src/views/accessToLibrary/index.vue | 3 +-
src/views/lengingRanking/index.vue | 197 +++++++++++----------
src/views/newBookRecommend/index.vue | 248 ++++++++++++++-------------
src/views/video/index.vue | 4 +-
6 files changed, 343 insertions(+), 333 deletions(-)
diff --git a/.env.development b/.env.development
index 652f2ca..038e4da 100644
--- a/.env.development
+++ b/.env.development
@@ -1,19 +1,15 @@
-ENV = 'development'
-
-# 接口地址
-
-#内网服务地址
-#VUE_APP_BASE_API = 'http://192.168.99.107:7070'
-#VUE_APP_WS_API = 'ws://192.168.99.107:7071'
-#VUE_APP_CAMERA_API = '192.168.99.107'
-
-# 刘力-本地服地址
-#VUE_APP_BASE_API = 'http://192.168.99.65:7070'
-#VUE_APP_WS_API = 'ws://192.168.99.65:7071'
-
-# 许镇-本地服地址
-VUE_APP_BASE_API = 'http://192.168.99.84:8080'
-VUE_APP_WS_API = 'ws://192.168.99.84:8081'
-
-# 是否启用 babel-plugin-dynamic-import-node插件
-VUE_CLI_BABEL_TRANSPILE_MODULES = true
+ENV = 'development'
+
+# 接口地址
+
+#内网服务地址
+#VUE_APP_BASE_API = 'http://192.168.99.107:7070'
+#VUE_APP_WS_API = 'ws://192.168.99.107:7071'
+#VUE_APP_CAMERA_API = '192.168.99.107'
+
+# 许镇-本地服地址
+VUE_APP_BASE_API = 'http://192.168.99.67:8080'
+VUE_APP_WS_API = 'ws://192.168.99.67:8081'
+
+# 是否启用 babel-plugin-dynamic-import-node插件
+VUE_CLI_BABEL_TRANSPILE_MODULES = true
diff --git a/src/api/library.js b/src/api/library.js
index af515fb..8c1b755 100644
--- a/src/api/library.js
+++ b/src/api/library.js
@@ -1,95 +1,95 @@
-import request from '@/utils/request'
-// import qs from 'qs'
-
-// 总借阅量
-export function FetchHalfYearBorrowNum(params) {
- return request({
- url: '/dxhtsg/getHalfYearBorrowNum',
- method: 'get',
- params: params
- })
-}
-
-// 借阅排行榜
-export function FetchBorrowRank(params) {
- return request({
- url: '/dxhtsg/borrowRank',
- method: 'get',
- params: params
- })
-}
-
-// 阅读之星
-export function FetchBorrowStar(params) {
- return request({
- url: '/dxhtsg/borrowStar',
- method: 'get',
- params: params
- })
-}
-
-// 新书推荐
-export function FetchNewBookRecommend(params) {
- return request({
- url: '/dxhtsg/newBookRecommend',
- method: 'get',
- params: params
- })
-}
-
-// 通知公告
-export function FetchInitNotice(params) {
- return request({
- url: '/dxhtsg/initNotice',
- method: 'get',
- params: params
- })
-}
-
-// 进馆人数
-export function FetchInitIntoNum(params) {
- return request({
- url: '/dxhtsg/initIntoNum',
- method: 'get',
- params: params
- })
-}
-
-// 24小时借还量
-export function FetchHalfYearBRNum(params) {
- return request({
- url: '/dxhtsg/getHalfYearBRNum',
- method: 'get',
- params: params
- })
-}
-
-// 大屏幕播放文件
-export function FetchShowFileList(params) {
- return request({
- url: '/dxhtsg/showFileList',
- method: 'get',
- params: params
- })
-}
-
-// 通过isbn获取图书封面
-export function FetchCoverByISBN(params) {
- return request({
- url: '/dxhtsg/getCoverByISBN',
- method: 'get',
- params: params,
- responseType: 'blob'
- })
-}
-
-export default {
- FetchHalfYearBorrowNum,
- FetchBorrowRank,
- FetchBorrowStar,
- FetchNewBookRecommend,
- FetchInitNotice,
- FetchInitIntoNum,
- FetchHalfYearBRNum,
- FetchShowFileList
-}
+import request from '@/utils/request'
+// import qs from 'qs'
+
+// 总借阅量
+export function FetchHalfYearBorrowNum(params) {
+ return request({
+ url: '/dxhtsg/getHalfYearBorrowNum',
+ method: 'get',
+ params: params
+ })
+}
+
+// 借阅排行榜
+export function FetchBorrowRank(params) {
+ return request({
+ url: '/dxhtsg/borrowRank',
+ method: 'get',
+ params: params
+ })
+}
+
+// 阅读之星
+export function FetchBorrowStar(params) {
+ return request({
+ url: '/dxhtsg/borrowStar',
+ method: 'get',
+ params: params
+ })
+}
+
+// 新书推荐
+export function FetchNewBookRecommend(params) {
+ return request({
+ url: '/dxhtsg/newBookRecommend',
+ method: 'get',
+ params: params
+ })
+}
+
+// 通知公告
+export function FetchInitNotice(params) {
+ return request({
+ url: '/dxhtsg/initNotice',
+ method: 'get',
+ params: params
+ })
+}
+
+// 进馆人数
+export function FetchInitIntoNum(params) {
+ return request({
+ url: '/dxhtsg/initIntoNum',
+ method: 'get',
+ params: params
+ })
+}
+
+// 24小时借还量
+export function FetchHalfYearBRNum(params) {
+ return request({
+ url: '/dxhtsg/getHalfYearBRNum',
+ method: 'get',
+ params: params
+ })
+}
+
+// 大屏幕播放文件
+export function FetchShowFileList(params) {
+ return request({
+ url: '/dxhtsg/showFileList',
+ method: 'get',
+ params: params
+ })
+}
+
+// 通过isbn获取图书封面
+export function FetchCoverByISBN(params) {
+ return request({
+ url: '/dxhtsg/getCoverByISBN',
+ method: 'get',
+ params: params
+ // responseType: 'blob'
+ })
+}
+
+export default {
+ FetchHalfYearBorrowNum,
+ FetchBorrowRank,
+ FetchBorrowStar,
+ FetchNewBookRecommend,
+ FetchInitNotice,
+ FetchInitIntoNum,
+ FetchHalfYearBRNum,
+ FetchShowFileList
+}
diff --git a/src/views/accessToLibrary/index.vue b/src/views/accessToLibrary/index.vue
index 00bce8e..7e09ea7 100644
--- a/src/views/accessToLibrary/index.vue
+++ b/src/views/accessToLibrary/index.vue
@@ -65,7 +65,8 @@ export default {
methods: {
getInitIntoNum() {
this.otherDoorOther = window.location.href.split('?')[1]?.split('=')[1]
- if (this.otherDoorOther !== '' && this.otherDoorOther.indexOf('&')) {
+ console.log(this.otherDoorOther)
+ if (this.otherDoorOther && this.otherDoorOther !== '' && this.otherDoorOther.indexOf('&')) {
this.otherDoorOther = this.otherDoorOther.replace(/\&/g, '、')
} else {
this.otherDoorOther = null
diff --git a/src/views/lengingRanking/index.vue b/src/views/lengingRanking/index.vue
index cf86503..7d155f2 100644
--- a/src/views/lengingRanking/index.vue
+++ b/src/views/lengingRanking/index.vue
@@ -1,95 +1,102 @@
-
-
-
-
借阅排行榜
-
-
-
-
![]()
-
-
-
{{ item.bookName }}
-
{{ item.author }}
-
-
-
-
-
-
NO.{{ index + 1 }}
-
-
-
-
-
-
-
-
-
+
+
+
+
借阅排行榜
+
+
+
+
![]()
+
+
+
{{ item.bookName }}
+
{{ item.author }}
+
+
+
+
+
+
NO.{{ index + 1 }}
+
+
+
+
+
+
+
+
+
diff --git a/src/views/newBookRecommend/index.vue b/src/views/newBookRecommend/index.vue
index 2228172..64fb3e9 100644
--- a/src/views/newBookRecommend/index.vue
+++ b/src/views/newBookRecommend/index.vue
@@ -1,121 +1,127 @@
-
-
-
-
新书推荐
-
-
-
-
-
-
![]()
-
-
-
{{ item.nbName }}
-
{{ item.nbAuthor }}
-
-
-
-
-
-
NO.{{ index+1 }}
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
新书推荐
+
+
+
+
+
+
![]()
+
+
+
{{ item.nbName }}
+
{{ item.nbAuthor }}
+
+
+
+
+
+
NO.{{ index+1 }}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/video/index.vue b/src/views/video/index.vue
index a1ac7cc..4c76ae7 100644
--- a/src/views/video/index.vue
+++ b/src/views/video/index.vue
@@ -3,7 +3,7 @@
-
+
@@ -38,7 +38,7 @@ export default {
FetchShowFileList(params).then(res => {
if (res.errCode === 0) {
// this.src = res.data[0].filePath.replace('D://', 'http://172.16.0.23:8888/')
- this.srcList = res.data.map(x => x.filePath.replace('D://', 'http://172.16.0.23:8888/'))
+ this.srcList = res.data.map(x => x.filePath.replace('D://', 'http://172.22.0.23:8888/'))
// this.srcList = res.data.map(x => x.filePath.replace('D://uploadFile', 'http://localhost:8080/static/'))
// console.log(22222, this.srcList)
// this.src = 'D://uploadFile/11503339-b829-4357-8379-d2b49106431f.mp4'.replace('D://', 'http://127.0.0.1:8888/')