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

99 lines
1.8 KiB
Vue

<template>
<view class="commBookLeftRigth_content">
<view class="commBookLeftRigth_content_left">
<image class="is_image" :src="bookImage"></image>
</view>
<view class="commBookLeftRigth_content_right">
<view class="_content_right_title">{{bookName}}</view>
<view class="_content_right_tips">{{bookTips}}</view>
<view class="_content_right_introduction">{{bookIntroduction}}</view>
</view>
</view>
</template>
<script>
export default {
props: {
bookTips: {
type: String,
default: ''
},
bookName: {
type: String,
default: ''
},
bookImage: {
type: String,
default: ''
},
bookIntroduction: {
type: String,
default: ''
}
},
data() {
return {
}
},
methods: {
}
}
</script>
<style lang="scss">
.is_image {
display: block;
width: 100%;
height: 100%;
border-radius: 12rpx;
}
.commBookLeftRigth_content {
width: 100%;
display: flex;
.commBookLeftRigth_content_left {
width: 200rpx;
height: 266rpx;
flex: 0 0 auto;
border-radius: 12rpx;
}
.commBookLeftRigth_content_right {
flex: 1;
flex-shrink: 0;
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 10rpx 0 10rpx 20rpx;
overflow: hidden;
._content_right_title {
font-size: 34rpx;
color: #1A1A1A;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
._content_right_tips {
font-size: 30rpx;
color: #999999;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
._content_right_introduction {
font-size: 30rpx;
color: #999999;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
}
}
</style>