news.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <template>
  2. <view>
  3. <u-navbar title="新闻资讯">
  4. <view class="slot-wrap">
  5. <u-icon name="search" size="48" color="#777777"></u-icon>
  6. </view>
  7. </u-navbar>
  8. <view class="news">
  9. <view class="news-item" v-for="item in 4">
  10. <view class="content">
  11. <view class="news-title">
  12. 李春华带队到岳阳港考察学习
  13. </view>
  14. <view class="information">
  15. <view class="classify">
  16. 行业资讯
  17. </view>
  18. <view class="date">
  19. 2020-12-30
  20. </view>
  21. </view>
  22. </view>
  23. <view class="img">
  24. <img src="../../assets/img/newsPic.png" alt="">
  25. </view>
  26. </view>
  27. </view>
  28. <u-divider border-color="#CFD2D5">已经到底了</u-divider>
  29. </view>
  30. </template>
  31. <script>
  32. export default {
  33. data() {
  34. return {
  35. }
  36. },
  37. methods: {
  38. }
  39. }
  40. </script>
  41. <style lang="scss" scoped>
  42. page{
  43. background-color: #ffffff;
  44. font-family: 'Regular';
  45. }
  46. /deep/.u-slot-content {
  47. display: block;
  48. text-align: right !important;
  49. margin-right: 16px;
  50. color: #333333;
  51. }
  52. .news{
  53. padding: 40rpx 32rpx;
  54. .news-item{
  55. display: flex;
  56. justify-content: space-between;
  57. margin-bottom: 40rpx;
  58. .content{
  59. display: flex;
  60. flex-direction: column;
  61. justify-content: space-between;
  62. .news-title{
  63. color: rgba(51, 51, 51, 1);
  64. font-size: 16px;
  65. text-align: justify;
  66. width: 438rpx;
  67. white-space: nowrap;
  68. overflow: hidden;
  69. text-overflow: ellipsis;
  70. }
  71. .information{
  72. margin-top: 44rpx;
  73. display: flex;
  74. justify-content: space-between;
  75. color: #777777;
  76. }
  77. }
  78. }
  79. .img{
  80. width: 224rpx;
  81. border-radius: 5px;
  82. overflow: hidden;
  83. img{
  84. width: 100%;
  85. height: 100%;
  86. }
  87. }
  88. }
  89. /deep/.u-divider{
  90. background-color: #ffffff !important;
  91. color: rgba(182, 189, 195, 1);
  92. font-size: 12px;
  93. font-weight: bold;
  94. }
  95. </style>