index.vue 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. <template>
  2. <div id="index">
  3. <div class="w_0100">
  4. <div class="w_1200">
  5. <div class="servicemain">
  6. <div class="serviceOne">
  7. <el-col :span="24">
  8. <el-col class="infoleft" :span="12">
  9. <el-col class="lefttop"><span class="title"> |</span> 政务公开</el-col>
  10. <ul>
  11. <li v-for="(item, index) in zhengwuList" :key="index">
  12. <a href="">
  13. <el-image :src="item.pic" class="leftimage"></el-image>
  14. </a>
  15. </li>
  16. </ul>
  17. </el-col>
  18. <el-col class="inforight" :span="12">
  19. <el-col class="lefttop"><span class="title"> |</span> 常用服务</el-col>
  20. <ul>
  21. <li v-for="(item, index) in serviceList" :key="index">
  22. <a href="">
  23. <el-image :src="item.pic" class="rightimage"></el-image>
  24. </a>
  25. </li>
  26. </ul>
  27. </el-col>
  28. </el-col>
  29. <div class="infocontext">
  30. <div class="contexttop"><span class="title"> |</span> 公众参与</div>
  31. <ul>
  32. <li v-for="(item, index) in gongzhongList" :key="index">
  33. <a href="">
  34. <el-image :src="item.pic"></el-image>
  35. </a>
  36. </li>
  37. </ul>
  38. </div>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. </div>
  44. </template>
  45. <script>
  46. import { mapState, createNamespacedHelpers } from 'vuex';
  47. export default {
  48. name: 'index',
  49. props: {},
  50. components: {},
  51. data: () => {
  52. return {
  53. // 政务公开
  54. zhengwuList: [
  55. {
  56. pic: require('@/assets/live/zhengwu1.jpg'),
  57. },
  58. {
  59. pic: require('@/assets/live/zhengwu2.jpg'),
  60. },
  61. {
  62. pic: require('@/assets/live/zhengwu3.jpg'),
  63. },
  64. {
  65. pic: require('@/assets/live/zhengwu4.jpg'),
  66. },
  67. {
  68. pic: require('@/assets/live/zhengwu5.jpg'),
  69. },
  70. {
  71. pic: require('@/assets/live/zhengwu6.jpg'),
  72. },
  73. {
  74. pic: require('@/assets/live/zhengwu7.jpg'),
  75. },
  76. {
  77. pic: require('@/assets/live/zhengwu8.jpg'),
  78. },
  79. ],
  80. // 常用服务
  81. serviceList: [
  82. {
  83. pic: require('@/assets/live/changyong1.jpg'),
  84. },
  85. {
  86. pic: require('@/assets/live/changyong2.jpg'),
  87. },
  88. {
  89. pic: require('@/assets/live/changyong3.jpg'),
  90. },
  91. {
  92. pic: require('@/assets/live/changyong4.jpg'),
  93. },
  94. {
  95. pic: require('@/assets/live/changyong5.jpg'),
  96. },
  97. {
  98. pic: require('@/assets/live/changyong6.jpg'),
  99. },
  100. ],
  101. // 公众参与
  102. gongzhongList: [
  103. {
  104. pic: require('@/assets/live/gongzhong1.jpg'),
  105. },
  106. {
  107. pic: require('@/assets/live/gongzhong2.jpg'),
  108. },
  109. {
  110. pic: require('@/assets/live/gongzhong3.jpg'),
  111. },
  112. {
  113. pic: require('@/assets/live/gongzhong4.jpg'),
  114. },
  115. {
  116. pic: require('@/assets/live/gongzhong5.jpg'),
  117. },
  118. {
  119. pic: require('@/assets/live/gongzhong6.jpg'),
  120. },
  121. ],
  122. };
  123. },
  124. created() {},
  125. methods: {},
  126. computed: {
  127. ...mapState(['user']),
  128. pageTitle() {
  129. return `${this.$route.meta.title}`;
  130. },
  131. },
  132. metaInfo() {
  133. return { title: this.$route.meta.title };
  134. },
  135. };
  136. </script>
  137. <style lang="less" scoped>
  138. .w_1200 {
  139. margin: 0 auto;
  140. width: 80%;
  141. min-height: 600px;
  142. }
  143. .infoleft {
  144. width: 48%;
  145. height: 320px;
  146. box-shadow: 0 0 10px #2d64b3;
  147. // width: 777px;
  148. }
  149. .inforight {
  150. margin: 0 0 0 2%;
  151. height: 320px;
  152. box-shadow: 0 0 10px #2d64b3;
  153. // width: 825px;
  154. }
  155. .lefttop {
  156. width: 96%;
  157. height: 41px;
  158. line-height: 35px;
  159. border-bottom: 1px solid #e5e5e5;
  160. position: relative;
  161. bottom: 1px;
  162. margin: 10px 10px 20px 10px;
  163. font-size: 18px;
  164. }
  165. .title {
  166. padding: 0px 0 1px 1px;
  167. background: #005293;
  168. }
  169. .infoleft ul li {
  170. float: left;
  171. width: 21%;
  172. height: 115px;
  173. margin: 0 13px 10px 16px;
  174. }
  175. .leftimage {
  176. width: 100%;
  177. height: 100%;
  178. }
  179. .inforight ul li {
  180. float: left;
  181. width: 235px;
  182. height: 115px;
  183. margin: 0 13px 15px 14px;
  184. }
  185. .rightimage {
  186. width: 235px;
  187. height: 100px;
  188. }
  189. .infocontext {
  190. height: 237px;
  191. box-shadow: 0 0 10px #2d64b3;
  192. width: 100%;
  193. float: left;
  194. margin: 25px 0 0 0;
  195. }
  196. .contexttop {
  197. width: 98%;
  198. height: 41px;
  199. line-height: 35px;
  200. border-bottom: 1px solid #e5e5e5;
  201. position: relative;
  202. bottom: 1px;
  203. margin: 10px 10px 20px 10px;
  204. font-size: 18px;
  205. }
  206. .infocontext ul li {
  207. float: left;
  208. width: 249px;
  209. height: 146px;
  210. margin: 0px 0px 0 17px;
  211. }
  212. .newimg {
  213. width: 249px;
  214. height: 152px;
  215. }
  216. </style>