78 lines
1.1 KiB
Vue
78 lines
1.1 KiB
Vue
<template>
|
|
<view class="_book_content">
|
|
<view class="book_box">
|
|
<view class="book_box_image">
|
|
<image class="is_image" :src="bookImage"></image>
|
|
</view>
|
|
<view class="book_box_title">
|
|
{{bookName}}
|
|
</view>
|
|
<view class="book_box_tips">
|
|
{{bookTips}}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
props: {
|
|
bookTips: {
|
|
type: String,
|
|
default: ''
|
|
},
|
|
bookName: {
|
|
type: String,
|
|
default: ''
|
|
},
|
|
bookImage: {
|
|
type: String,
|
|
default: ''
|
|
}
|
|
},
|
|
data() {
|
|
return {
|
|
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.is_image {
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 8rpx;
|
|
}
|
|
|
|
._book_content {
|
|
width: 100%;
|
|
|
|
.book_box {
|
|
width: 100%;
|
|
|
|
.book_box_image {
|
|
width: 100%;
|
|
height: 266rpx;
|
|
}
|
|
|
|
.book_box_title {
|
|
width: 100%;
|
|
font-size: 34rpx;
|
|
color: #1A1A1A;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
font-weight: 600;
|
|
line-height: 1;
|
|
margin-top: 16rpx;
|
|
}
|
|
.book_box_tips {
|
|
font-size: 26rpx;
|
|
color: #999999;
|
|
line-height: 1;
|
|
margin-top: 16rpx;
|
|
}
|
|
}
|
|
}
|
|
</style> |