@ -18,8 +18,8 @@ Vue.use(ElementUI)
import axios from 'axios'
Vue.prototype.$axios = axios
// 馆代码
// Vue.prototype.libcode = 'FTZN'
Vue.prototype.libcode = '1201'
Vue.prototype.libcode = 'FTZN'
// Vue.prototype.libcode = '1201'
import { parseTime } from '@/utils/index.js'
Vue.filter('parseTime', function(time, cFormat) {
@ -79,10 +79,15 @@ export default {
})
},
getBookList() {
FetchNewBookRecommend().then(res => {
console.log(res, 'res')
const params = {
libcode: this.libcode,
pageNo: 1,
pageSize: 10
}
FetchNewBookRecommend(params).then(res => {
console.log(res)
let data = []
data = res
data = res.newbookList
data.forEach(item => {
this.getCoverByISBN(item.isbn.replace(/\-/g, ''), item)