|
@ -72,8 +72,9 @@ export default { |
|
|
getNewBookRecommend() { |
|
|
getNewBookRecommend() { |
|
|
FetchNewBookRecommend().then(res => { |
|
|
FetchNewBookRecommend().then(res => { |
|
|
if (res.errCode === 0) { |
|
|
if (res.errCode === 0) { |
|
|
this.rankingList = res.data |
|
|
|
|
|
this.rankingList.forEach(item => { |
|
|
|
|
|
|
|
|
let data = [] |
|
|
|
|
|
data = res.data |
|
|
|
|
|
data.forEach(item => { |
|
|
this.getCoverByISBN(item.isbn.replace(/\-/g, ''), item) |
|
|
this.getCoverByISBN(item.isbn.replace(/\-/g, ''), item) |
|
|
}) |
|
|
}) |
|
|
} else { |
|
|
} else { |
|
@ -88,6 +89,7 @@ export default { |
|
|
FetchCoverByISBN(params).then((res) => { |
|
|
FetchCoverByISBN(params).then((res) => { |
|
|
console.log(res) |
|
|
console.log(res) |
|
|
item.cover = window.URL.createObjectURL(res) |
|
|
item.cover = window.URL.createObjectURL(res) |
|
|
|
|
|
this.rankingList.push(item) |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|