SecondaryHeading.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <template>
  2. <!-- 一级标题页导航 -->
  3. <div class="sannongzhichuang">
  4. <div class="inner">
  5. <h2>
  6. <!-- 三农之窗 -->
  7. {{ titleName }}
  8. <em class="iconfont icon-xingzhuang-zhijiaosanjiaoxing-copy"></em>
  9. </h2>
  10. <p class="introduction">
  11. <strong>频道介绍</strong>
  12. <div v-for="(item,index) in titleData">
  13. <span v-if="index<=7">
  14. <NuxtLink :to="`/newsList/${item.id}`" target="_blank">{{ item.name }}</NuxtLink>
  15. </span>
  16. </div>
  17. </p>
  18. </div>
  19. </div>
  20. </template>
  21. <script setup>
  22. //let ChannelList = ['理论前沿', '典型经验', '魅力乡村', '农民之家', '农业天地', '农村建设', '高端资讯', '实践探索']
  23. const props = defineProps({
  24. titleName: String,
  25. titleData:Array
  26. });
  27. </script>
  28. <style lang="less" scoped>
  29. // 三农之窗
  30. .sannongzhichuang {
  31. margin: 30px 0 40px;
  32. .inner {
  33. width: 1200px;
  34. height: 67px;
  35. position: relative;
  36. }
  37. h2 {
  38. display: inline-block;
  39. background-image: url("../../static/images/bg1.png");
  40. width: 156px;
  41. height: 43px;
  42. padding: 14px 31px 10px 25px;
  43. font-family: STXingkai, STXingkai;
  44. font-weight: 400;
  45. font-size: 39px;
  46. color: #FFFFFF;
  47. line-height: 46px;
  48. text-align: center;
  49. font-style: normal;
  50. text-transform: none;
  51. -webkit-text-stroke: 1px #3C6C47;
  52. position: absolute;
  53. top: 0;
  54. left: 0;
  55. z-index: 99;
  56. em {
  57. position: absolute;
  58. top: -16px;
  59. right: -12px;
  60. color: #185410;
  61. display: inline-block;
  62. width: 13px;
  63. height: 13px;
  64. }
  65. }
  66. p.introduction {
  67. display: inline-block;
  68. width: 1003px;
  69. height: 56px;
  70. line-height: 56px;
  71. background-color: #fafafa;
  72. position: absolute;
  73. bottom: 0;
  74. right: 0;
  75. display: flex;
  76. >strong:first-child {
  77. margin-left: 40px;
  78. display: inline-block;
  79. vertical-align: middle;
  80. width: 28px;
  81. height: 36px;
  82. padding: 3px 7px;
  83. border: 0.5px solid #129502;
  84. font-family: Microsoft YaHei, Microsoft YaHei;
  85. font-weight: bold;
  86. font-size: 14px;
  87. color: #139602;
  88. line-height: 18px;
  89. text-align: center;
  90. font-style: normal;
  91. text-transform: none;
  92. }
  93. div {
  94. >span {
  95. width: 64px;
  96. height: 21px;
  97. font-family: Microsoft YaHei, Microsoft YaHei;
  98. font-weight: 400;
  99. font-size: 16px;
  100. color: #000000;
  101. line-height: 21px;
  102. text-align: left;
  103. font-style: normal;
  104. text-transform: none;
  105. margin-top: 17px;
  106. padding: 0 24px;
  107. border-right: 1px solid #ccc;
  108. a {
  109. color: #000;
  110. }
  111. }
  112. >span:hover a {
  113. color: #139602;
  114. }
  115. >span:last-child {
  116. border: none;
  117. }
  118. }
  119. }
  120. }
  121. </style>