SecondaryHeading.vue 3.1 KB

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