From bc51195cede7ba5cd742dbc21e55badcef31f64c Mon Sep 17 00:00:00 2001 From: z_yu <1534695664@qq.com> Date: Fri, 23 Sep 2022 15:25:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E5=AD=97=E8=B5=84=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/inquiryMachine.js | 39 +++++--------------------- src/views/activityFeed.vue | 12 -------- src/views/digitalResource.vue | 25 +++++++++++++++-- src/views/digitalResourceJson.json | 4 +++ src/views/libraryIntroduction.vue | 13 +-------- src/views/libraryIntroductionData.json | 3 -- 6 files changed, 34 insertions(+), 62 deletions(-) delete mode 100644 src/views/libraryIntroductionData.json diff --git a/src/api/inquiryMachine.js b/src/api/inquiryMachine.js index c3fcef6..fc65952 100644 --- a/src/api/inquiryMachine.js +++ b/src/api/inquiryMachine.js @@ -19,12 +19,13 @@ export function libraryIntro(params) { }) } -// 阅读之星 -export function FetchBorrowStar(params) { +// 数字资源 +export function initNumberResoures(params) { return request({ - url: '/txhtsg/borrowStar', + url: '/dxhtsg/initNumberResoures', method: 'get', - params: params + params: params, + responseType: blob }) } @@ -46,37 +47,11 @@ export function FetchCoverByISBN(params) { responseType: 'blob' }) } -// 通知公告 -export function FetchInitNotice(params) { - return request({ - url: '/txhtsg/initNotice', - method: 'get', - params: params - }) -} - -// 进馆人数 -export function FetchInitIntoNum(params) { - return request({ - url: '/txhtsg/initIntoNum', - method: 'get', - params: params - }) -} - -// 24小时借还量 -export function FetchHalfYearBRNum(params) { - return request({ - url: '/txhtsg/getHalfYearBRNum', - method: 'get', - params: params - }) -} export default { activityInquiry, libraryIntro, - FetchBorrowStar, FetchNewBookRecommend, - FetchCoverByISBN + FetchCoverByISBN, + initNumberResoures } diff --git a/src/views/activityFeed.vue b/src/views/activityFeed.vue index 5af5fd1..cb01b8f 100644 --- a/src/views/activityFeed.vue +++ b/src/views/activityFeed.vue @@ -88,18 +88,6 @@ export default { background: #ffffff; width: 1510px; overflow-y: auto; - .info-title { - height: 100px; - text-align: center; - font-size: 38px; - font-family: Source Han Sans CN-Regular, Source Han Sans CN; - font-weight: 400; - color: #333333; - line-height: 100px; - } - .info-img { - background: url("~@/assets/images/top.png") no-repeat center -5px; - } } } .activity-list li { diff --git a/src/views/digitalResource.vue b/src/views/digitalResource.vue index 87ba324..6bcf721 100644 --- a/src/views/digitalResource.vue +++ b/src/views/digitalResource.vue @@ -4,10 +4,10 @@
-
- +
+
- {{ cell.title }} + {{ cell.nrsTitle }}
@@ -20,6 +20,7 @@ import data from './digitalResourceJson' import { Swiper } from 'vue-awesome-swiper' import 'swiper/swiper-bundle.css' +import { initNumberResoures } from '@/api/inquiryMachine' export default { name: 'DigitalResource', @@ -46,6 +47,7 @@ export default { } }, created() { + this.getInfo() this.rankingList = data.srcList1 }, mounted() { @@ -56,6 +58,23 @@ export default { this.$nextTick(() => { new Swiper('.swiper', {}) }) + }, + getInfo() { + initNumberResoures({ libcode: this.libcode }).then(data => { + this.rankingList = data + }) + }, + jump(url) { + window.location.href = url + }, + arrayBufferToBase64(buffer) { + var binary = '' + var bytes = new Uint8Array(buffer) + var len = bytes.byteLength + for (var i = 0; i < len; i++) { + binary += String.fromCharCode(bytes[i]) + } + return window.btoa(binary) } } } diff --git a/src/views/digitalResourceJson.json b/src/views/digitalResourceJson.json index b4b8bca..edf64fa 100644 --- a/src/views/digitalResourceJson.json +++ b/src/views/digitalResourceJson.json @@ -102,6 +102,10 @@ "title":"武汉微刊", "bgImg":"http://192.168.99.84:8080/numresurces/getImgFromByte.do?nrsId=4028e3d48354830301835a1b1d9e0002" }, + { + "title":"图书馆公开课", + "bgImg":"http://192.168.99.84:8080/numresurces/getImgFromByte.do?nrsId=4028e3d48354830301835a1bf2870003" + }, { "title":"图书馆公开课", "bgImg":"http://192.168.99.84:8080/numresurces/getImgFromByte.do?nrsId=4028e3d48354830301835a1bf2870003" diff --git a/src/views/libraryIntroduction.vue b/src/views/libraryIntroduction.vue index cea8e28..16fa355 100644 --- a/src/views/libraryIntroduction.vue +++ b/src/views/libraryIntroduction.vue @@ -88,18 +88,7 @@ export default { margin-left: 30px; background: #ffffff; width: 1510px; - .info-title { - height: 100px; - text-align: center; - font-size: 38px; - font-family: Source Han Sans CN-Regular, Source Han Sans CN; - font-weight: 400; - color: #333333; - line-height: 100px; - } - .info-img { - background: url("~@/assets/images/top.png") no-repeat center -5px; - } + overflow-y: auto; } } diff --git a/src/views/libraryIntroductionData.json b/src/views/libraryIntroductionData.json deleted file mode 100644 index 8b60ca4..0000000 --- a/src/views/libraryIntroductionData.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "html": "<pre>经区政府批准,区人力资源和社会保障局人事工作综合事务中心协助组织符合政府安排工作条件退役士兵安排考试。综合成绩由量化评分和笔试成绩合并计算,</pre>\r\n<pre>量化评分占总成绩的60%,笔试成绩占总成绩的40%。服役期间量化评分由通州区退役军人事务局依据退役军人事务部、中央军委政治工作部2018年12月14日下发的《符合政府安排工作条件退役士兵服役表现量化评分办法(试行)》进行认定。\r\n经区政府批准,区人力资源和社会保障局人事工作综合事务中心协助组织符合政府安排工作条件退役士兵安排考试。综合成绩由量化评分和笔试成绩合并计算,量化评分占总成绩的60%,笔试成绩占总成绩的40%。服役期间量化评分由通州区退役军人事务局依据退役军人事务部、中央军委政治工作部2018年12月14日下发的《符合政府安排工作条件退役士兵服役表现量化评分办法(试行)》进行认定。</pre>" -} \ No newline at end of file