|
@ -8,24 +8,71 @@ |
|
|
</router-link> |
|
|
</router-link> |
|
|
<h2>作者推荐</h2> |
|
|
<h2>作者推荐</h2> |
|
|
</div> |
|
|
</div> |
|
|
<div class="book-main"> |
|
|
|
|
|
<!-- --> |
|
|
|
|
|
|
|
|
<div class="main"> |
|
|
|
|
|
<div v-for="(item,index) in authorList" :key="index" class="book-rack"> |
|
|
|
|
|
<span class="author-index">{{ index+1 }}</span> |
|
|
|
|
|
<div class="author-brief"> |
|
|
|
|
|
<h3>{{ item.name }}</h3> |
|
|
|
|
|
<p>{{ item.brief }}</p> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import HeaderTop from '@/views/module/headerTop.vue' |
|
|
import HeaderTop from '@/views/module/headerTop.vue' |
|
|
|
|
|
|
|
|
|
|
|
import data1 from './data1.json' |
|
|
export default { |
|
|
export default { |
|
|
name: 'AuthorRecommend', |
|
|
name: 'AuthorRecommend', |
|
|
components: { |
|
|
components: { |
|
|
HeaderTop |
|
|
HeaderTop |
|
|
|
|
|
}, |
|
|
|
|
|
data() { |
|
|
|
|
|
return { |
|
|
|
|
|
authorList: [] |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
created() { |
|
|
|
|
|
this.authorList = data1.authors |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
<style lang="scss" scoped> |
|
|
@import "~@/assets/styles/index.scss"; |
|
|
@import "~@/assets/styles/index.scss"; |
|
|
|
|
|
.main{ |
|
|
|
|
|
padding-top: 40px; |
|
|
|
|
|
height: 100%; |
|
|
|
|
|
overflow: hidden; |
|
|
|
|
|
overflow-y:auto ; |
|
|
|
|
|
.book-rack{ |
|
|
|
|
|
height: 387px; |
|
|
|
|
|
margin-bottom: 40px; |
|
|
|
|
|
padding: 0; |
|
|
|
|
|
display: flex; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
color: #333; |
|
|
|
|
|
.author-index{ |
|
|
|
|
|
width: 120px; |
|
|
|
|
|
text-align: center; |
|
|
|
|
|
} |
|
|
|
|
|
.author-brief{ |
|
|
|
|
|
flex: 1; |
|
|
|
|
|
padding: 20px 50px 20px 0; |
|
|
|
|
|
h3{ |
|
|
|
|
|
font-size: 40px; |
|
|
|
|
|
margin-bottom: 20px; |
|
|
|
|
|
} |
|
|
|
|
|
p{ |
|
|
|
|
|
font-size: 30px; |
|
|
|
|
|
display: -webkit-box; |
|
|
|
|
|
-webkit-line-clamp: 4; |
|
|
|
|
|
line-clamp: 4; |
|
|
|
|
|
-webkit-box-orient: vertical; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |