Browse Source

数字资源

master
z_yu 2 years ago
parent
commit
bc51195ced
  1. 39
      src/api/inquiryMachine.js
  2. 12
      src/views/activityFeed.vue
  3. 25
      src/views/digitalResource.vue
  4. 4
      src/views/digitalResourceJson.json
  5. 13
      src/views/libraryIntroduction.vue
  6. 3
      src/views/libraryIntroductionData.json

39
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
}

12
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 {

25
src/views/digitalResource.vue

@ -4,10 +4,10 @@
<div class="swiper mySwiper">
<div class="swiper-wrapper">
<div v-for="(item,index) in swiperListTemp" :key="index" class="swiper-slide img-module">
<div v-for="(cell,i) in item" :key="i" :class="{'item-big': i % 4 === 0 || i % 4 === 3, 'item-small': i % 4 === 1 || i % 4 === 2, 'main-item': true}">
<img :src="cell.bgImg">
<div v-for="(cell,i) in item" :key="i" :class="{'item-big': i % 4 === 0 || i % 4 === 3, 'item-small': i % 4 === 1 || i % 4 === 2, 'main-item': true}" @click="jump(cell.nrsUrl)">
<img :src="'data:image/png;base64,' + cell.nrsImages">
<div class="title">
{{ cell.title }}
{{ cell.nrsTitle }}
</div>
</div>
</div>
@ -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)
}
}
}

4
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"

13
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;
}
}
</style>

3
src/views/libraryIntroductionData.json

@ -1,3 +0,0 @@
{
"html": "&lt;pre&gt;经区政府批准,区人力资源和社会保障局人事工作综合事务中心协助组织符合政府安排工作条件退役士兵安排考试。综合成绩由量化评分和笔试成绩合并计算,&lt;/pre&gt;\r\n&lt;pre&gt;量化评分占总成绩的60%,笔试成绩占总成绩的40%。服役期间量化评分由通州区退役军人事务局依据退役军人事务部、中央军委政治工作部2018年12月14日下发的《符合政府安排工作条件退役士兵服役表现量化评分办法(试行)》进行认定。\r\n经区政府批准,区人力资源和社会保障局人事工作综合事务中心协助组织符合政府安排工作条件退役士兵安排考试。综合成绩由量化评分和笔试成绩合并计算,量化评分占总成绩的60%,笔试成绩占总成绩的40%。服役期间量化评分由通州区退役军人事务局依据退役军人事务部、中央军委政治工作部2018年12月14日下发的《符合政府安排工作条件退役士兵服役表现量化评分办法(试行)》进行认定。&lt;/pre&gt;"
}
Loading…
Cancel
Save