diff --git a/src/assets/images/list-title.png b/src/assets/images/list-title.png new file mode 100644 index 0000000..0124410 Binary files /dev/null and b/src/assets/images/list-title.png differ diff --git a/src/main.js b/src/main.js index 5b64155..9a5e6b5 100644 --- a/src/main.js +++ b/src/main.js @@ -11,6 +11,10 @@ import './assets/styles/style.scss' import './assets/iconfont/iconfont.js' import './assets/fonts/fonts.css' +import ElementUI from 'element-ui' +import 'element-ui/lib/theme-chalk/index.css' +Vue.use(ElementUI) + import axios from 'axios' Vue.prototype.$axios = axios // 馆代码 diff --git a/src/views/module/bookDetails.vue b/src/views/module/bookDetails.vue new file mode 100644 index 0000000..6e847d5 --- /dev/null +++ b/src/views/module/bookDetails.vue @@ -0,0 +1,147 @@ + + + + + diff --git a/src/views/newBookRecommend.vue b/src/views/newBookRecommend.vue index 43d2ed1..0a2a906 100644 --- a/src/views/newBookRecommend.vue +++ b/src/views/newBookRecommend.vue @@ -3,7 +3,7 @@
-
+
@@ -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 } } }