diff --git a/src/main.js b/src/main.js index 9a5e6b5..404b702 100644 --- a/src/main.js +++ b/src/main.js @@ -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) { diff --git a/src/views/newBookRecommend.vue b/src/views/newBookRecommend.vue index 28d005b..8773d9e 100644 --- a/src/views/newBookRecommend.vue +++ b/src/views/newBookRecommend.vue @@ -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) })