-
+
@@ -28,6 +28,7 @@
+
@@ -35,8 +36,12 @@
import { Swiper } from 'vue-awesome-swiper'
import 'swiper/swiper-bundle.css'
import { FetchNewBookRecommend, FetchCoverByISBN } from '@/api/inquiryMachine'
+import BookDetails from './module/bookDetails.vue'
export default {
name: 'NewBookRecommend',
+ components: {
+ BookDetails
+ },
data() {
return {
defaultImg: 'this.src="' + require('@/assets/images/default-img.png') + '"',
@@ -89,6 +94,12 @@ export default {
this.rankingList.push(item)
this.initSwiper()
})
+ },
+ // 详情
+ handleDetails(index) {
+ console.log(index)
+ this.$refs.detailDom.bookData = this.rankingList[index]
+ this.$refs.detailDom.dialogVisible = true
}
}
}