bookParticulars.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. <template>
  2. <view>
  3. <view class="box_particular">
  4. <image class="img_book" mode="scaleToFill" src="/static/mh-BsqlF_P3.png"></image>
  5. <view style="display: flex;flex-direction: column;margin-left: 20rpx;overflow: hidden;width: 100%;">
  6. <view class="book_title">
  7. 《奇门遁甲入门基础》
  8. </view>
  9. <view class="author_title">[未知]紫武真人</view>
  10. </view>
  11. </view>
  12. <view class="card_brief">
  13. <view class="box_brief">
  14. <view class="title_brief">阅读进度</view>
  15. <view class="quantity_num"><span class="num_title">78%</span>进度</view>
  16. </view>
  17. <view class="box_brief">
  18. <view class="title_brief">阅读人数</view>
  19. <view class="quantity_num"><span class="num_title">1000+</span>人</view>
  20. </view>
  21. <view class="box_brief">
  22. <view class="title_brief">本书字书</view>
  23. <view class="quantity_num"><span class="num_title">2.29</span>万字</view>
  24. </view>
  25. </view>
  26. <view class="card_synopsis">
  27. <view class="synopsis_title">书籍简介</view>
  28. <view class="synopsis">{{bookIntroduction}}</view>
  29. </view>
  30. <view style="width: 100%;height: 180rpx;" class="subside"></view>
  31. <view class="bottom_menu">
  32. <!-- <view class="menu_btn center_in">加入书架</view> -->
  33. <view class="menu_btnil center_in">已加入书架</view>
  34. <view class="menu_btn center_in">目录</view>
  35. <view class="menu_btn_orange center_in" @click="goRead">阅读</view>
  36. </view>
  37. </view>
  38. </template>
  39. <script>
  40. export default {
  41. data() {
  42. return {
  43. bookIntroduction: '初学命理,晦涩难懂的古籍令诸多习命者不得其门,深感命学之深奥。本系列基础知识,通过简单通俗地论述,将命理古籍的基础通俗表述,其内容涵盖了五行阴阳、生克制化、十神含义等重点,更有利于习命者对命理的全面掌握。'
  44. }
  45. },
  46. methods: {
  47. goRead() {
  48. uni.navigateTo({
  49. url: '/pages/school/reader'
  50. })
  51. }
  52. }
  53. }
  54. </script>
  55. <style lang="scss">
  56. page {
  57. background-color: #fff;
  58. }
  59. .box_particular {
  60. display: flex;
  61. padding: 0rpx 20rpx;
  62. border-bottom: 1rpx solid #e4e7ed;
  63. }
  64. .img_book {
  65. flex: none;
  66. width: 260rpx;
  67. height: 320rpx;
  68. border-radius: 20rpx;
  69. margin-bottom: 60rpx;
  70. }
  71. .book_title {
  72. width: 100%;
  73. font-size: 46rpx;
  74. font-weight: bold;
  75. white-space: nowrap;
  76. text-overflow: ellipsis;
  77. overflow: hidden;
  78. }
  79. .author_title {
  80. margin-top: 30rpx;
  81. margin-left: 20rpx;
  82. font-size: 30rpx;
  83. color: #999999;
  84. }
  85. .card_brief {
  86. display: flex;
  87. align-items: center;
  88. padding: 30rpx 0rpx;
  89. border-bottom: 20rpx solid #F8F8F8;
  90. }
  91. .box_brief {
  92. flex: 1;
  93. display: flex;
  94. flex-direction: column;
  95. align-items: center;
  96. }
  97. .box_brief:nth-child(-n + 2) {
  98. border-right: 1rpx solid #e4e7ed;
  99. }
  100. .title_brief {
  101. font-size: 28rpx;
  102. color: #999999;
  103. }
  104. .quantity_num {
  105. margin-top: 10rpx;
  106. font-size: 28rpx;
  107. color: #555555;
  108. .num_title {
  109. font-size: 40rpx;
  110. font-weight: bold;
  111. }
  112. }
  113. .card_synopsis {
  114. padding: 30rpx;
  115. }
  116. .synopsis_title {
  117. font-size: 36rpx;
  118. font-weight: bold;
  119. margin-bottom: 10rpx;
  120. }
  121. .synopsis {
  122. font-size: 32rpx;
  123. line-height: 48rpx;
  124. }
  125. .bottom_menu {
  126. position: fixed;
  127. bottom: 0;
  128. left: 0;
  129. right: 0;
  130. border-top: 1rpx solid #e4e7ed;
  131. display: flex;
  132. align-items: center;
  133. padding: 20rpx 30rpx;
  134. // #ifdef APP-PLUS || MP-WEIXIN
  135. padding-bottom: 0 !important;
  136. padding-bottom: constant(safe-area-inset-bottom) !important;
  137. padding-bottom: env(safe-area-inset-bottom) !important;
  138. // #endif
  139. }
  140. .subside {
  141. padding-bottom: 0 !important;
  142. padding-bottom: constant(safe-area-inset-bottom) !important;
  143. padding-bottom: env(safe-area-inset-bottom) !important;
  144. }
  145. .menu_btn {
  146. font-size: 30rpx;
  147. flex: 1;
  148. padding: 26rpx;
  149. border-radius: 20rpx;
  150. background-color: #eeeeee;
  151. margin: 0rpx 10rpx;
  152. border: 1rpx solid #eeeeee;
  153. }
  154. .menu_btnil {
  155. font-size: 30rpx;
  156. flex: 1;
  157. padding: 26rpx;
  158. border-radius: 20rpx;
  159. background-color: #ffffff;
  160. margin: 0rpx 10rpx;
  161. color: #b2955d;
  162. border: 1rpx solid #b2955d;
  163. }
  164. .menu_btn_orange {
  165. font-size: 30rpx;
  166. flex: 1;
  167. padding: 26rpx;
  168. border-radius: 20rpx;
  169. background-color: #cea872;
  170. margin: 0rpx 10rpx;
  171. color: #fff;
  172. border: 1rpx solid #cea872;
  173. }
  174. </style>