index.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <template>
  2. <div class="conduct-exhibition">
  3. <div class="banner">
  4. <h1 v-html="$t('conduct.conductExhibition.bannerTitle')"></h1>
  5. <h4 v-html="$t('conduct.conductExhibition.bannerSubTitle')"></h4>
  6. </div>
  7. <ul class="desc-video">
  8. <li v-for="item in list" :key="item.name">
  9. <h1 class="common-title" v-html="item.name"></h1>
  10. <img :src="item.img">
  11. </li>
  12. </ul>
  13. </div>
  14. </template>
  15. <script>
  16. import { i18n } from '@/lang'
  17. export default {
  18. data () {
  19. return {
  20. list: [
  21. {
  22. name: i18n.t('conduct.conductExhibition.itemTitle1'),
  23. img: require('@/assets/images/refactor/conduct/exhibition/item1.png')
  24. },
  25. {
  26. name: i18n.t('conduct.conductExhibition.itemTitle2'),
  27. img: require('@/assets/images/refactor/conduct/exhibition/item2.png')
  28. },
  29. {
  30. name: i18n.t('conduct.conductExhibition.itemTitle3'),
  31. img: require('@/assets/images/refactor/conduct/exhibition/item3.png')
  32. },
  33. {
  34. name: i18n.t('conduct.conductExhibition.itemTitle4'),
  35. img: require('@/assets/images/refactor/conduct/exhibition/item4.png')
  36. }
  37. ]
  38. }
  39. }
  40. }
  41. </script>
  42. <style lang="less" scoped>
  43. .conduct-exhibition {
  44. .banner {
  45. width: 100%;
  46. height: 140px;
  47. display: flex;
  48. padding-left: 42px;
  49. font-size: 22px;
  50. color: #202020;
  51. font-weight: bold;
  52. background: #D4D4D4;
  53. flex-direction: column;
  54. justify-content: center;
  55. background: url(~@/assets/images/refactor/conduct/exhibition/banner.png) no-repeat center center;
  56. background-size: cover;
  57. }
  58. h4 {
  59. font-size: 16px;
  60. margin-top: 20px;
  61. }
  62. ul {
  63. padding: 27px 20px 0;
  64. }
  65. li {
  66. margin-bottom: 56px;
  67. }
  68. img {
  69. margin-top: 30px;
  70. width: 100%;
  71. }
  72. }
  73. </style>