|
@@ -1,15 +1,100 @@
|
|
|
<template>
|
|
|
<view class="bookInfo_content">
|
|
|
- 信息
|
|
|
+ <view class="container">
|
|
|
+ <view class="container__book-cover">
|
|
|
+ <image class="image" :src="book_data.book_cover" mode="aspectFit"></image>
|
|
|
+ </view>
|
|
|
+ <view class="container__info">
|
|
|
+ <view class="container__info__book-name">
|
|
|
+ {{ book_data.book_name }}
|
|
|
+ </view>
|
|
|
+ <view class="container__info__author-name">
|
|
|
+ {{ book_data.author_name }}
|
|
|
+ </view>
|
|
|
+ <view class="container__info__category-name">
|
|
|
+ {{book_data.category_name + ' · '}}{{category_string}}
|
|
|
+ </view>
|
|
|
+ <view class="container__info__bottom-info">
|
|
|
+ <view class="container__info__bottom-info__read-number">
|
|
|
+ {{util.convertUnit(book_data.book_read_num)}}人在读
|
|
|
+ </view>
|
|
|
+ <view class="container__info__bottom-info__score">
|
|
|
+
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
+ import { ref } from 'vue';
|
|
|
+ import { util } from '../../framework/util';
|
|
|
+ const props = defineProps({
|
|
|
+ book_data: Object,
|
|
|
+ })
|
|
|
+ let category_string = ref('')
|
|
|
+ category_string.value = props.book_data.book_is_action==2?`完结`:`连载至${props.book_data.chapter_count}章`
|
|
|
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|
|
|
.bookInfo_content{
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ background-color: $uni-theme-color;
|
|
|
+
|
|
|
+ .container{
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+ padding: 40rpx 20rpx 30rpx 20rpx;
|
|
|
+
|
|
|
+ &__book-cover{
|
|
|
+ flex-shrink: 0;
|
|
|
+ width: 200rpx;
|
|
|
+ height: 250rpx;
|
|
|
+ .image{
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ &__info {
|
|
|
+ display: flex;
|
|
|
+ width: 100%;
|
|
|
+ flex-direction: column;
|
|
|
+ margin-left: 20rpx;
|
|
|
+ // background-color: green;
|
|
|
+
|
|
|
+ &__book-name {
|
|
|
+ margin-top: 10rpx;
|
|
|
+ font-size: 20px;
|
|
|
+ }
|
|
|
+ &__author-name {
|
|
|
+ margin-top: 15rpx;
|
|
|
+ font-size: 16px;
|
|
|
+ color: #894D4D;
|
|
|
+ }
|
|
|
+ &__category-name {
|
|
|
+ margin-top: 15rpx;
|
|
|
+ font-size: 16px;
|
|
|
+ }
|
|
|
+ &__bottom-info{
|
|
|
+ margin-top: 15rpx;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+ justify-content: space-between;
|
|
|
+ &__read-number {
|
|
|
+ font-size: 16px;
|
|
|
+ }
|
|
|
+ &__score {
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
|
|
|
}
|
|
|
</style>
|