news.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <template>
  2. <view>
  3. <u-navbar back-text="政策发布" back-icon-size="28" back-icon-color="#ffffff"
  4. :background="{backgroundColor: '#2795FD',}" :back-text-style="{color: '#ffffff'}"></u-navbar>
  5. <view class="main">
  6. <view class="news-item" v-for="item in 4">
  7. <view class="content">
  8. <view class="title">
  9. 荆州市发布“招硕引博”公告,高新区招录8人​!
  10. </view>
  11. <view class="tags">
  12. <view class="classify">
  13. 政策发布
  14. </view>
  15. <view class="date">
  16. 2023-06-10
  17. </view>
  18. </view>
  19. </view>
  20. <view class="picture">
  21. <img src="@/assets/img/newsPicture.png" alt="">
  22. </view>
  23. </view>
  24. </view>
  25. <u-divider bg-color="#fff" margin-top="20" border-color="#CFD2D5">已经到底了</u-divider>
  26. </view>
  27. </template>
  28. <script>
  29. export default {
  30. data() {
  31. return {
  32. }
  33. },
  34. methods: {
  35. }
  36. }
  37. </script>
  38. <style lang="scss" scoped>
  39. page{
  40. padding-bottom: 120px;
  41. }
  42. .main{
  43. padding: 24rpx 32rpx;
  44. .news-item{
  45. display: flex;
  46. height: auto;
  47. margin-bottom: 40rpx;
  48. .content{
  49. margin-right: 24rpx;
  50. display: flex;
  51. flex-direction: column;
  52. justify-content: space-between;
  53. .title{
  54. color: rgba(51, 51, 51, 1);
  55. font-size: 16px;
  56. text-align: justify;
  57. line-height: 48rpx;
  58. }
  59. .tags{
  60. display: flex;
  61. justify-content: space-between;
  62. .classify{
  63. color: rgba(39, 149, 253, 1);
  64. }
  65. .date{
  66. color: rgba(153, 153, 153, 1);
  67. font-size: 24rpx;
  68. }
  69. }
  70. }
  71. .picture{
  72. width: 224rpx;
  73. height: 172rpx;
  74. border-radius: 4px;
  75. img{
  76. width: 224rpx;
  77. height: 172rpx;
  78. }
  79. }
  80. }
  81. }
  82. </style>