|
|
@ -6,17 +6,17 @@ |
|
|
|
</div> |
|
|
|
<div class="most-book-txt book-rack"> |
|
|
|
<div class="txt"> |
|
|
|
<h3>书名:{{ bookdata[0].nbName }}</h3> |
|
|
|
<p>作者:{{ bookdata[0].nbAuthor }}</p> |
|
|
|
<p>出版社:{{ bookdata[0].nbAuthor }}</p> |
|
|
|
<p>出版时间:{{ bookdata[0].nbPublisherdate }}</p> |
|
|
|
<h3>书名:{{ bookdata[0].nbName || bookdata[0].hbName }}</h3> |
|
|
|
<p>作者:{{ bookdata[0].nbAuthor || bookdata[0].hbAuthor }}</p> |
|
|
|
<p>出版社:{{ bookdata[0].nbAuthor || bookdata[0].hbAuthor }}</p> |
|
|
|
<p>出版时间:{{ bookdata[0].nbPublisherdate || bookdata[0].hbPublisherdate }}</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<ul class="hotbook-list"> |
|
|
|
<li v-for="(item,index) in bookList" :key="index" @click="handleDetails(index+1)"> |
|
|
|
<img :src="item.cover ? item.cover : ''" :onerror="defaultImg"> |
|
|
|
<p class="book-name">{{ item.nbName }}</p> |
|
|
|
<p class="book-name">{{ item.nbName || item.hbName }}</p> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
<BookDetails ref="detailDom" /> |
|
|
@ -54,6 +54,7 @@ export default { |
|
|
|
isbn: this.bookdata[index].isbn.replace(/\-/g, '') |
|
|
|
} |
|
|
|
getBookDetailsByISBN(params).then(res => { |
|
|
|
console.log(res) |
|
|
|
this.$refs.detailDom.bookData = res |
|
|
|
this.$refs.detailDom.dialogVisible = true |
|
|
|
}) |
|
|
@ -126,6 +127,7 @@ export default { |
|
|
|
} |
|
|
|
.book-name{ |
|
|
|
width: 100%; |
|
|
|
text-align: center; |
|
|
|
overflow: hidden; |
|
|
|
text-overflow:ellipsis; |
|
|
|
white-space: nowrap; |
|
|
|