index.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <template>
  2. <div id="index">
  3. <el-row>
  4. <el-col :span="24" class="main">
  5. <div class="w_1200">
  6. <el-col :span="24" class="one">
  7. <el-col :span="12" class="left">
  8. <userTwo></userTwo>
  9. </el-col>
  10. <el-col :span="12" class="right">
  11. <expertCom></expertCom>
  12. </el-col>
  13. </el-col>
  14. <el-col :span="24" class="two">
  15. <el-image :src="centerImage"></el-image>
  16. </el-col>
  17. <el-col :span="24" class="thr">
  18. <el-col :span="12" class="left">
  19. <achieveFiled></achieveFiled>
  20. </el-col>
  21. <el-col :span="12" class="right">
  22. <achieveCom></achieveCom>
  23. </el-col>
  24. </el-col>
  25. </div>
  26. </el-col>
  27. </el-row>
  28. </div>
  29. </template>
  30. <script>
  31. // 数据整理
  32. import userTwo from './parts/userTwo.vue';
  33. // 专家一览
  34. import expertCom from './parts/expertCom.vue';
  35. // 成果领域
  36. import achieveFiled from './parts/achieveFiled.vue';
  37. // 成果单位
  38. import achieveCom from './parts/achieveCom.vue';
  39. import { mapState, createNamespacedHelpers } from 'vuex';
  40. export default {
  41. metaInfo() {
  42. return { title: this.$route.meta.title };
  43. },
  44. name: 'index',
  45. props: {},
  46. components: {
  47. userTwo,
  48. expertCom,
  49. achieveFiled,
  50. achieveCom,
  51. },
  52. data: function() {
  53. return {
  54. centerImage: require('@common/src/assets/center/sjdt.png'),
  55. };
  56. },
  57. created() {},
  58. methods: {},
  59. computed: {
  60. ...mapState(['user']),
  61. },
  62. watch: {},
  63. };
  64. </script>
  65. <style lang="less" scoped>
  66. .main {
  67. min-height: 500px;
  68. padding: 10px 0;
  69. .one {
  70. margin: 0 0 10px 0;
  71. .left {
  72. width: 49%;
  73. height: 530px;
  74. background: #ffffff;
  75. padding: 15px;
  76. border-radius: 20px;
  77. margin: 0 24px 0 0;
  78. box-shadow: 0 0 5px #409eff;
  79. }
  80. .right {
  81. width: 49%;
  82. height: 530px;
  83. background: #ffffff;
  84. border-radius: 20px;
  85. padding: 15px;
  86. box-shadow: 0 0 5px #409eff;
  87. }
  88. }
  89. .two {
  90. height: 140px;
  91. overflow: hidden;
  92. margin: 0 0 10px 0;
  93. }
  94. .thr {
  95. margin: 0 0 10px 0;
  96. .left {
  97. width: 49%;
  98. height: 530px;
  99. background: #ffffff;
  100. padding: 15px;
  101. border-radius: 20px;
  102. margin: 0 24px 0 0;
  103. box-shadow: 0 0 5px #409eff;
  104. }
  105. .right {
  106. width: 49%;
  107. height: 530px;
  108. background: #ffffff;
  109. border-radius: 20px;
  110. padding: 15px;
  111. box-shadow: 0 0 5px #409eff;
  112. }
  113. }
  114. }
  115. </style>