大数据展示系统-前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

247 lines
6.5 KiB

<template>
<div>
<el-dialog
title="图书详情"
:visible.sync="dialogVisible"
width="80%"
>
<!-- :before-close="handleClose" -->
<div class="dialog-setting">
<div v-if="bookData" class="book-details-box">
<div class="book-details">
<div class="book-cover">
<img :src="bookData.srcUrl ? bookData.srcUrl : ''" :onerror="defaultImg">
</div>
<div class="book-desc">
<h3>{{ bookData.bookName }}</h3>
<p class="book-from">作者{{ bookData.bookAuthor }}</p>
<p v-if="bookData.Publish" class="book-from">出版社:{{ bookData.Publish }}</p>
<p class="book-brief"> 简介:{{ bookData.gist ? bookData.gist : '暂无简介' }}</p>
</div>
</div>
<div class="book-local">
<!-- <span v-if="bookData.bookPlace">所在位置:{{ bookData.bookPlace }}</span> -->
<!-- 待定:热门图书/新书推荐跳转到 场馆导航操作 -->
<!-- <span v-else>所在位置</span> -->
<div class="local-title" @click="test">
所在位置
</div>
<ul class="local-list">
<li>
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#icon-weizhi" />
</svg>
<span>一楼西区......</span>
</li>
<!-- -->
<li>
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#icon-weizhi" />
</svg>
<span>一楼西区......</span>
</li>
<li>
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#icon-weizhi" />
</svg>
<span>一楼西区......</span>
</li>
<li>
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#icon-weizhi" />
</svg>
<span>一楼西区......</span>
</li>
<li>
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#icon-weizhi" />
</svg>
<span>一楼西区......</span>
</li>
<li>
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#icon-weizhi" />
</svg>
<span>一楼西区......</span>
</li>
<li>
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#icon-weizhi" />
</svg>
<span>一楼西区......</span>
</li>
</ul>
</div>
</div>
</div>
</el-dialog>
</div>
</template>
<script>
export default {
name: 'BookDetails',
data() {
return {
dialogVisible: false,
bookData: null,
defaultImg: 'this.src="' + require('@/assets/images/default-img.png') + '"'
}
},
created() {
},
methods: {
test() {
console.log(this.bookData)
}
}
}
</script>
<style lang="scss" scoped>
::v-deep .el-dialog{
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
border-radius: 24px;
margin-top: 0 !important;
.el-dialog__body{
padding: 0 40px 40px 40px ;
}
}
::v-deep .el-dialog__header{
text-align: center;
padding-top:0 ;
padding-bottom:4px ;
.el-dialog__title{
display: inline-block;
font-family: "ZhenyanGB";
font-size: 40px;
width: 494px;
height: 76px;
line-height: 76px;
background: url('~@/assets/images/list/list-title.png') no-repeat 0 0;
}
}
::v-deep .el-dialog__headerbtn{
background-color: #3F92F6;
width: 40px;
height: 40px;
border-radius: 50%;
.el-dialog__close{
color: #fff;
font-size: 30px;
}
}
.book-details-box{
.book-details{
display: flex;
justify-content: space-between;
padding: 30px 0;
.book-cover{
display: flex;
align-items: center;
width: 318px;
height: 382px;
margin-right: 40px;
overflow: hidden;
img{
display: block;
width: 100%;
max-height: calc(100%);
object-fit: contain;
}
}
.book-desc{
flex: 1;
color: #333;
overflow: hidden;
h3{
font-size: 40px;
font-weight: normal;
}
.book-from{
width: 100%;
font-size: 30px;
}
h3,.book-from{
text-overflow: -o-ellipsis-lastline;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
margin-bottom: 20px;
}
.book-brief{
font-size: 24px;
margin-bottom: 20px;
text-overflow: -o-ellipsis-lastline;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 4;
line-clamp: 4;
-webkit-box-orient: vertical;
}
}
}
.book-local{
height: 343px;
color: #333;
display: flex;
// border-radius: 52px;
// line-height: 64px;
// text-align: center;
// font-size: 30px;
// overflow: hidden;
// white-space: nowrap;
// text-overflow: ellipsis;
.local-title{
width: 83px;
height: 100%;
background: url('~@/assets/images/local-bg.png') no-repeat;
writing-mode:vertical-rl;
text-align: center;
line-height: 83px;
font-size: 30px;
color: #fff;
}
.local-list{
flex: 1;
border: 1px solid #3F92F6;
border-left: none;
background: #D0E0F9;
overflow: hidden;
overflow-y: auto;
li{
height: 56px;
line-height: 56px;
background-color: #fff;
// margin-right: 8px;
margin-bottom: 15px;
padding-left: 13px;
font-size: 26px;
span{
margin-left: 19px;
}
}
}
}
}
/**滚动条的宽度*/
::-webkit-scrollbar {
width: 8px;
height: 4px;
}
//滚动条的滑块
::-webkit-scrollbar-thumb {
background-color: #3F92F6;
border-radius: 4px;
}
</style>