2023-09-19 19:31:19 +08:00

82 lines
1.2 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 {
name: 'originalBoolItem',
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: 204rpx;
}
.book_box_title {
width: 100%;
font-size: 32rpx;
color: #1A1A1A;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
font-weight: 600;
// line-height: 1;
margin-top: 16rpx;
}
.book_box_tips {
font-size: 26rpx;
color: #999999;
line-height: 1;
margin-top: 16rpx;
}
}
}
</style>