t-o-news-tab-3.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <template>
  2. <view>
  3. <view class="list">
  4. <view class="item" v-for="item in 4">
  5. <view class="left">
  6. <image
  7. src="https://cdn.colorhub.me/139XSdzUuzRcgRk1ghrmwbWetE762tokLPfgdsEoE94/rs:auto:280:0:0/g:ce/bG9jYWw6Ly8vOWYv/ZTQvMzE3OTEzMzcy/ZWU5ODI4OTU5MDgw/MmVjMjViNWI2YjQy/MzNkOWZlNC5qcGVn.jpg"
  8. mode="aspectFill"></image>
  9. </view>
  10. <view class="right">
  11. <view class="title">
  12. <view class="name">梅花井煤矿</view>
  13. <view class="tip">拼图</view>
  14. </view>
  15. <view class="text">标题标题标题标题标题标题标题标题标题标题标题</view>
  16. <view class="content">
  17. <view class="time">2021.12.03</view>
  18. <view class="box">
  19. <view class="line">
  20. <view class="line_box"></view>
  21. </view>
  22. <view class="num">36%</view>
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. </view>
  28. </view>
  29. </template>
  30. <script>
  31. export default {
  32. name: "t-o-news-tab-3",
  33. data() {
  34. return {
  35. };
  36. }
  37. }
  38. </script>
  39. <style lang="scss">
  40. .list {
  41. box-sizing: border-box;
  42. padding: 0 25rpx;
  43. .item {
  44. width: 700rpx;
  45. margin-bottom: 20rpx;
  46. box-sizing: border-box;
  47. padding: 20rpx;
  48. padding-top: 24rpx;
  49. background-color: #FFFFFF;
  50. display: flex;
  51. .left {
  52. width: 180rpx;
  53. image {
  54. width: 180rpx;
  55. height: 180rpx;
  56. border-radius: 10rpx;
  57. }
  58. }
  59. .right {
  60. width: 450rpx;
  61. margin-left: 20rpx;
  62. .title {
  63. display: flex;
  64. justify-content: space-between;
  65. align-items: center;
  66. .name {
  67. font-size: 26rpx;
  68. color: #f39800;
  69. overflow: hidden;
  70. white-space: nowrap;
  71. text-overflow: ellipsis;
  72. }
  73. .tip {
  74. width: 75rpx;
  75. text-align: center;
  76. font-size: 24rpx;
  77. color: #f39800;
  78. border: 1rpx solid #f39800;
  79. border-radius: 10rpx;
  80. }
  81. }
  82. .text {
  83. height: 80rpx;
  84. margin-top: 8rpx;
  85. font-size: 28rpx;
  86. text-overflow: -o-ellipsis-lastline;
  87. overflow: hidden;
  88. text-overflow: ellipsis;
  89. display: -webkit-box;
  90. -webkit-line-clamp: 2;
  91. line-clamp: 2;
  92. -webkit-box-orient: vertical;
  93. }
  94. .content {
  95. .time {
  96. margin-right: 60rpx;
  97. text-align: right;
  98. font-size: 24rpx;
  99. color: #999999;
  100. }
  101. .box {
  102. display: flex;
  103. align-items: center;
  104. .line {
  105. width: 400rpx;
  106. height: 6rpx;
  107. background-color: #E4E4E4;
  108. border-radius: 10rpx;
  109. .line_box {
  110. width: 36%;
  111. height: 6rpx;
  112. background-color: #009FE8;
  113. border-radius: 10rpx;
  114. }
  115. }
  116. .num {
  117. margin-left: 10rpx;
  118. font-size: 24rpx;
  119. color: #009FE8;
  120. }
  121. }
  122. }
  123. }
  124. }
  125. }
  126. </style>