1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <template>
- <div class="book-card">
- <div class="thumb">
- <img :src="book.image" class="img" mode="aspectFit">
- </div>
- <div class="detail">
- <div class="row text-primary">
- <div class="right">
- {{book.rate}}
- </div>
- <div class="left">
- {{book.title}}
- </div>
- </div>
- <div class="row">
- <div class="right text-primary">
- 浏览量:
- </div>
- <div class="left">
- {{book.author}}
- </div>
- </div>
- <div class="row">
- <div class="right">
- 姓名
- <!-- {{book.user_info.nickName}} -->
- </div>
- <div class="left">
- {{book.publisher}}
- </div>
- </div>
- </div>
- </div>
- </template>
- <script>
- export default {
- props: ['book'],
-
- }
- </script>
- <style lang='scss' scoped>
- .book-card{
- padding:5px;
- overflow: hidden;
- margin-top:5px;
- margin-bottom:5px;
- font-size:14px;
- .thumb{
- width:90px;
- height:90px;
- float: left;
- margin:0 auto;
- overflow:hidden;
- .img{
- max-width: 100%;
- max-height: 100%;
- }
- }
- .detail{
- margin-left: 100px;
- .row{
- line-height:20px;
- margin-bottom:3px;
- }
- .right{
- float: right;
-
- }
- .left{
- margin-right:80px;
- }
- }
-
- }
- </style>
|