patent.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <template>
  2. <div id="patent">
  3. <el-row>
  4. <el-col :span="24" class="style">
  5. <el-col :span="24" class="top">
  6. <top :topInfo="topInfo" @moreBtn="moreBtn"></top>
  7. </el-col>
  8. <el-col :span="24" class="down">
  9. <el-col
  10. :span="8"
  11. class="patentList"
  12. v-for="(item, index) in patentList"
  13. :key="index"
  14. @click.native="$router.push({ path: '/market/marketlists', query: { type: '5', column_name: 'e专利', id: item.id } })"
  15. >
  16. <el-image v-if="item.img_url" :src="item.img_url"></el-image>
  17. <el-image v-else :src="url"></el-image>
  18. <p class="textOver">{{ item.name }}</p>
  19. </el-col>
  20. </el-col>
  21. </el-col>
  22. </el-row>
  23. </div>
  24. </template>
  25. <script>
  26. import top from '@/layout/common/topColumn.vue';
  27. import { mapState, createNamespacedHelpers } from 'vuex';
  28. export default {
  29. metaInfo() {
  30. return { title: this.$route.meta.title };
  31. },
  32. name: 'patent',
  33. props: {
  34. patentList: { type: Array },
  35. },
  36. components: {
  37. top,
  38. },
  39. data: function() {
  40. return {
  41. url: require('@a/fmzl.jpg'),
  42. topInfo: {
  43. title: 'e专利',
  44. engTitle: 'Patent',
  45. },
  46. };
  47. },
  48. created() {},
  49. methods: {
  50. // 更多
  51. moreBtn() {
  52. this.$router.push({ path: '/market/marketlists', query: { type: '5', column_name: 'e专利' } });
  53. },
  54. },
  55. computed: {
  56. ...mapState(['user']),
  57. },
  58. watch: {},
  59. };
  60. </script>
  61. <style lang="less" scoped>
  62. .style {
  63. .top {
  64. height: 50px;
  65. }
  66. .down {
  67. height: 450px;
  68. position: relative;
  69. .patentList {
  70. width: 32%;
  71. height: 220px;
  72. margin: 0 10px 10px 0;
  73. box-shadow: 0 0 5px #ccc;
  74. border-radius: 5px;
  75. padding: 5px;
  76. .el-image {
  77. width: 100%;
  78. height: 185px;
  79. }
  80. p {
  81. font-size: 16px;
  82. font-weight: bold;
  83. text-align: center;
  84. }
  85. }
  86. .patentList:nth-child(3n) {
  87. margin: 0 0 10px 0;
  88. }
  89. .patentList:hover {
  90. cursor: pointer;
  91. p {
  92. color: #409eff;
  93. }
  94. }
  95. }
  96. }
  97. </style>