index.vue 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  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 :span="12" class="infoleft">
  9. <el-col class="lefttop" :span="24"><span class="title"> |</span> 本地服务</el-col>
  10. <ul>
  11. <li class="zhengwuList" v-for="(item, index) in zhengwuList" :key="index">
  12. <a @click="bendiservice(item)">
  13. <el-image style="width:64px;height:64px;" :src="item.pic"></el-image>
  14. <p>{{ item.title }}</p>
  15. </a>
  16. </li>
  17. </ul>
  18. </el-col>
  19. <el-col :span="12" class="inforight">
  20. <div class="lefttop"><span class="title"> |</span> 合作服务</div>
  21. <ul>
  22. <li class="serviceList" v-for="(item, index) in serviceList" :key="index">
  23. <a @click="bendiservice(item)">
  24. <el-image style="width:64px;height:64px;" :src="item.pic"></el-image>
  25. <p>{{ item.title }}</p>
  26. </a>
  27. </li>
  28. </ul>
  29. </el-col>
  30. </el-col>
  31. <div class="infocontext">
  32. <div class="contexttop"><span class="title"> |</span> 公众参与</div>
  33. <ul>
  34. <li v-for="(item, index) in gongzhongList" :key="index">
  35. <a href="">
  36. <el-image :src="item.pic"></el-image>
  37. </a>
  38. </li>
  39. </ul>
  40. </div>
  41. </div>
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. </template>
  47. <script>
  48. import { mapState, createNamespacedHelpers } from 'vuex';
  49. export default {
  50. name: 'index',
  51. props: {},
  52. components: {},
  53. data: () => {
  54. return {
  55. // 本地服务
  56. zhengwuList: [
  57. {
  58. pic: require('@/assets/live/bendi1.png'),
  59. title: '智慧推荐',
  60. },
  61. {
  62. pic: require('@/assets/live/bendi2.png'),
  63. title: '展会预约',
  64. },
  65. {
  66. pic: require('@/assets/live/bendi3.png'),
  67. title: '科技评估',
  68. },
  69. {
  70. pic: require('@/assets/live/bendi4.png'),
  71. title: '合同在线',
  72. },
  73. {
  74. pic: require('@/assets/live/bendi5.png'),
  75. title: '信誉认证',
  76. },
  77. {
  78. pic: require('@/assets/live/bendi6.png'),
  79. title: '绩效评价',
  80. },
  81. ],
  82. // 合作服务
  83. serviceList: [
  84. {
  85. pic: require('@/assets/live/hezuo1.png'),
  86. title: '知识产权',
  87. },
  88. {
  89. pic: require('@/assets/live/hezuo2.png'),
  90. title: '科技文献',
  91. },
  92. {
  93. pic: require('@/assets/live/hezuo3.png'),
  94. title: '项目申报',
  95. },
  96. {
  97. pic: require('@/assets/live/hezuo4.png'),
  98. title: '科技金融',
  99. },
  100. {
  101. pic: require('@/assets/live/hezuo5.png'),
  102. title: '科技孵化',
  103. },
  104. {
  105. pic: require('@/assets/live/hezuo6.png'),
  106. title: '成果登记',
  107. },
  108. {
  109. pic: require('@/assets/live/hezuo7.png'),
  110. title: '技术合同',
  111. },
  112. {
  113. pic: require('@/assets/live/hezuo8.png'),
  114. title: '高企认定',
  115. },
  116. ],
  117. // 公众参与
  118. gongzhongList: [
  119. {
  120. pic: require('@/assets/live/gongzhong1.jpg'),
  121. },
  122. {
  123. pic: require('@/assets/live/gongzhong2.jpg'),
  124. },
  125. {
  126. pic: require('@/assets/live/gongzhong3.jpg'),
  127. },
  128. {
  129. pic: require('@/assets/live/gongzhong4.jpg'),
  130. },
  131. {
  132. pic: require('@/assets/live/gongzhong5.jpg'),
  133. },
  134. {
  135. pic: require('@/assets/live/gongzhong6.jpg'),
  136. },
  137. ],
  138. };
  139. },
  140. created() {},
  141. methods: {
  142. bendiservice(item) {
  143. console.log(item);
  144. if (item.title == '智慧推荐') {
  145. } else if (item.title == '展会预约') {
  146. console.log('d');
  147. this.$router.push({ path: '/exhibition/appointment' });
  148. } else if (item.title == '科技评估') {
  149. } else if (item.title == '合同在线') {
  150. } else if (item.title == '信誉认证') {
  151. } else if ((item.title = '绩效评价')) {
  152. } else if (item.title == '知识产权') {
  153. } else if (item.title == '项目申报') {
  154. } else if (item.title == '科技金融') {
  155. } else if (item.title == '科技文献') {
  156. } else if (item.title == '科技孵化') {
  157. } else if (item.title == '成果登记') {
  158. } else if (item.title == '技术合同') {
  159. } else if (item.title == '高企认定') {
  160. }
  161. },
  162. },
  163. computed: {
  164. ...mapState(['user']),
  165. pageTitle() {
  166. return `${this.$route.meta.title}`;
  167. },
  168. },
  169. metaInfo() {
  170. return { title: this.$route.meta.title };
  171. },
  172. };
  173. </script>
  174. <style lang="less" scoped>
  175. .w_1200 {
  176. margin: 0 auto;
  177. width: 80%;
  178. min-height: 600px;
  179. }
  180. .serviceOne {
  181. margin: 20px 0 0 0;
  182. }
  183. .infoleft {
  184. height: 320px;
  185. box-shadow: 0 0 10px #2d64b3;
  186. width: 49%;
  187. }
  188. .infoleft ul .zhengwuList {
  189. float: left;
  190. width: 25%;
  191. height: 115px;
  192. margin: 0 5% 15px 3%;
  193. text-align: center;
  194. }
  195. .infoleft ul .zhengwuList p {
  196. font-size: 20px;
  197. color: #215199;
  198. float: left;
  199. width: 100%;
  200. }
  201. .inforight {
  202. height: 320px;
  203. box-shadow: 0 0 10px #2d64b3;
  204. width: 49.5%;
  205. margin: 0 0 0 15px;
  206. }
  207. .inforight ul .serviceList {
  208. float: left;
  209. width: 17%;
  210. height: 105px;
  211. margin: 0 5% 20px 3%;
  212. text-align: center;
  213. background: #f8f8f8;
  214. }
  215. .inforight ul .serviceList .el-image {
  216. padding: 5px 0 0 0;
  217. }
  218. .inforight ul .serviceList p {
  219. font-size: 20px;
  220. color: #215199;
  221. float: left;
  222. width: 100%;
  223. }
  224. .lefttop {
  225. width: 96%;
  226. height: 41px;
  227. line-height: 35px;
  228. border-bottom: 1px solid #e5e5e5;
  229. position: relative;
  230. bottom: 1px;
  231. margin: 10px 10px 20px 10px;
  232. font-size: 18px;
  233. }
  234. .title {
  235. padding: 0px 0 1px 1px;
  236. background: #005293;
  237. }
  238. .infoleft ul li {
  239. float: left;
  240. width: 20%;
  241. height: 115px;
  242. margin: 0 2% 10px 3%;
  243. }
  244. .infocontext {
  245. height: 237px;
  246. box-shadow: 0 0 10px #2d64b3;
  247. width: 100%;
  248. float: left;
  249. margin: 25px 0 0 0;
  250. }
  251. .contexttop {
  252. width: 98%;
  253. height: 41px;
  254. line-height: 35px;
  255. border-bottom: 1px solid #e5e5e5;
  256. position: relative;
  257. bottom: 1px;
  258. margin: 10px 10px 20px 10px;
  259. font-size: 18px;
  260. }
  261. .infocontext ul li {
  262. float: left;
  263. width: 15.66%;
  264. height: 146px;
  265. margin: 0px 0px 0 1%;
  266. }
  267. .newimg {
  268. width: 185px;
  269. }
  270. </style>