reportItem.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <template>
  2. <view class="container-report-item">
  3. <view class="item-title text-Line">{{ list.Title }}</view>
  4. <view class="item-content">
  5. <text>核心观点:</text>
  6. <rich-text class="text-Line rich-text-item" v-if="list.Annotation" :nodes="list.Annotation"></rich-text>
  7. </view>
  8. <view class="item-abstract text-Line" v-if="list.Abstract"> 摘要:{{ list.Abstract }} </view>
  9. <view class="item-time">
  10. <text>{{ list.PublishDate }}</text>
  11. <view class="item-examine" v-if="list.IsResearch">
  12. <image src="https://hzchart.oss-cn-shanghai.aliyuncs.com/cygx/czbk/examine_icon.png"></image>
  13. <text>{{ list.Pv }}</text>
  14. </view>
  15. </view>
  16. </view>
  17. </template>
  18. <script>
  19. import mpHtml from "@/uni_modules/mp-html/components/mp-html/mp-html.vue";
  20. export default {
  21. name: "",
  22. components: { mpHtml },
  23. props: {
  24. list: {
  25. type: Object,
  26. default: {},
  27. required: true,
  28. },
  29. },
  30. data() {
  31. return {};
  32. },
  33. computed: {},
  34. watch: {},
  35. created() {},
  36. mounted() {},
  37. methods: {},
  38. };
  39. </script>
  40. <style scoped lang="scss">
  41. .container-report-item {
  42. width: 350rpx;
  43. background: #ffffff;
  44. box-shadow: 0rpx 3rpx 8rpx 0rpx rgba(0, 0, 0, 0.16);
  45. border-radius: 8rpx;
  46. padding: 20rpx;
  47. margin-bottom: 20rpx;
  48. .item-title {
  49. position: relative;
  50. font-size: 32rpx;
  51. font-weight: 500;
  52. color: #333333;
  53. line-height: 38rpx;
  54. -webkit-line-clamp: 3;
  55. line-clamp: 3;
  56. text-indent: 0.5em;
  57. &::before {
  58. content: "";
  59. position: absolute;
  60. top: 5rpx;
  61. left: 0;
  62. width: 6rpx;
  63. height: 31rpx;
  64. background-color: #3385ff;
  65. }
  66. }
  67. .item-content {
  68. min-height: 140rpx;
  69. font-size: 26rpx;
  70. font-weight: 400;
  71. color: #666666;
  72. line-height: 30rpx;
  73. margin: 10rpx 0;
  74. .rich-text-item {
  75. line-height: 30rpx;
  76. overflow: hidden;
  77. -webkit-line-clamp: 7;
  78. line-clamp: 7;
  79. }
  80. }
  81. .item-abstract {
  82. font-size: 28rpx;
  83. font-weight: 400;
  84. color: #333333;
  85. line-height: 33rpx;
  86. -webkit-line-clamp: 3;
  87. line-clamp: 3;
  88. margin-bottom: 20rpx;
  89. }
  90. .text-Line {
  91. text-overflow: -o-ellipsis-lastline;
  92. overflow: hidden;
  93. text-overflow: ellipsis;
  94. display: -webkit-box;
  95. -webkit-box-orient: vertical;
  96. }
  97. .item-time {
  98. display: flex;
  99. align-items: center;
  100. justify-content: space-between;
  101. color: #acacac;
  102. font-size: 24rpx;
  103. line-height: 28rpx;
  104. .item-examine {
  105. display: flex;
  106. align-items: center;
  107. image {
  108. width: 30rpx;
  109. height: 24rpx;
  110. margin: 0 10rpx 0 15rpx;
  111. }
  112. }
  113. }
  114. }
  115. </style>