移动端
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 

133 Zeilen
3.2 KiB

  1. <template>
  2. <div class="home_wrapper">
  3. <header-nav :headings="headingsTitle" :currentNav="1"></header-nav>
  4. <div class="navigation_main">
  5. <!-- <div class="flex_wrap current">村务公开</div>
  6. <div class="flex_wrap">党务公开</div>
  7. <div class="flex_wrap">政务公开</div> -->
  8. <div
  9. class="flex_wrap"
  10. v-for="(item, index) in navList"
  11. :key="index"
  12. :class="[navIndex == index ? 'current' : '']"
  13. @click="navIndex = index"
  14. >
  15. {{ item }}
  16. </div>
  17. </div>
  18. <div class="focus_news">
  19. <div class="news_img" @click="skip('/sunVillage/public/details')">
  20. <img src="@/assets/images/sunVillage/4.jpg" />
  21. </div>
  22. <div class="news_title" @click="skip('/sunVillage/public/details')">
  23. 巨峰镇大官庄村2014年1-2月份阳光村务现场
  24. </div>
  25. </div>
  26. <div class="news_list">
  27. <ul>
  28. <li class="item_block" @click="skip('/sunVillage/public/details')">
  29. <div class="title">阳光村务内容01</div>
  30. <div class="insets">
  31. <img src="@/assets/images/sunVillage/2.jpg" />
  32. </div>
  33. </li>
  34. <li class="item_block" @click="skip('/sunVillage/public/details')">
  35. <div class="title">阳光村务内容01</div>
  36. <div class="insets">
  37. <img src="@/assets/images/sunVillage/2.jpg" />
  38. </div>
  39. </li>
  40. </ul>
  41. </div>
  42. </div>
  43. </template>
  44. <style scoped lang="scss">
  45. .home_wrapper {
  46. width: 100%;
  47. padding-top: 198px;
  48. min-height: 100vh;
  49. background: #fff;
  50. .navigation_main {
  51. margin: 0 24px;
  52. display: flex;
  53. justify-content: space-between;
  54. padding: 30px 0 10px;
  55. .flex_wrap {
  56. height: 80px;
  57. background: #f8f8f8;
  58. color: #07c160;
  59. font-size: 32px;
  60. display: flex;
  61. justify-content: center;
  62. align-items: center;
  63. width: 216px;
  64. border-radius: 12px;
  65. &.current {
  66. color: #fff;
  67. background: #07c160;
  68. }
  69. }
  70. }
  71. .focus_news {
  72. margin: 20px 24px 16px;
  73. .news_img {
  74. width: 702px;
  75. height: 256px;
  76. img {
  77. width: 100%;
  78. height: 100%;
  79. }
  80. }
  81. .news_title {
  82. font-size: 24px;
  83. margin-top: 16px;
  84. }
  85. }
  86. .news_list {
  87. li {
  88. display: flex;
  89. height: 146px;
  90. justify-content: center;
  91. align-items: center;
  92. padding: 0 33px;
  93. .title {
  94. padding-left: 8px;
  95. flex: 1;
  96. font-size: 28px;
  97. }
  98. .insets {
  99. width: 116px;
  100. margin-left: 26px;
  101. height: 116px;
  102. img {
  103. width: 100%;
  104. height: 100%;
  105. }
  106. }
  107. }
  108. }
  109. }
  110. </style>
  111. <script>
  112. import headerNav from "@/components/sunVillage/common/header.vue";
  113. export default {
  114. name: "sunVillagePublic",
  115. components: { headerNav },
  116. data() {
  117. return {
  118. headingsTitle: "三务公开",
  119. navList: ["村务公开", "党务公开", "政务公开"],
  120. navIndex: 0,
  121. };
  122. },
  123. mounted() {},
  124. methods: {
  125. skip(url) {
  126. this.$router.push(url);
  127. },
  128. },
  129. };
  130. </script>