index.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <template>
  2. <div class="m-convention">
  3. <div class="img-con" :style="{background:`url('${content.mBackground}') top center no-repeat`,backgroundSize: '100% auto'}">
  4. <div class="img-l">
  5. <img :src="content.mL" alt="">
  6. </div>
  7. <div class="img-txt">
  8. <div>{{content.slogan1}}</div>
  9. <div>{{content.slogan2}}</div>
  10. </div>
  11. <div class="img-r">
  12. <img :src="content.mR" alt="">
  13. </div>
  14. </div>
  15. <div class="m-detail">
  16. <div class="mi-title">{{content.mTitle}}</div>
  17. <div class="mi-detail">{{content.detail}}</div>
  18. <div @click="clickHandle(content.video)" class="btn"><span>Review</span></div>
  19. </div>
  20. </div>
  21. </template>
  22. <script>
  23. export default {
  24. props: ['content'],
  25. methods: {
  26. clickHandle (item) {
  27. this.$emit('openVideo', item)
  28. }
  29. }
  30. }
  31. </script>
  32. <style scoped>
  33. .m-convention{
  34. margin: 20% auto;
  35. }
  36. .img-con{
  37. width: 100%;
  38. position: relative;
  39. height: 200px;
  40. }
  41. .img-con .img-txt{
  42. font-size: 18px;
  43. font-weight: bold;
  44. line-height: 1.5;
  45. color: #fff;
  46. position: absolute;
  47. top: 50%;
  48. left: 50%;
  49. transform: translate(-50%,-50%);
  50. }
  51. .img-con .img-l{
  52. position: absolute;
  53. bottom: -7%;
  54. left: 0%;
  55. width: 45%;
  56. height: 188px;
  57. }
  58. .img-con .img-l img{
  59. width: 100%;
  60. }
  61. .img-con .img-r{
  62. position: absolute;
  63. top: -7%;
  64. right: 0%;
  65. width: 45%;
  66. height: 188px;
  67. }
  68. .img-con .img-r img{
  69. width: 100%;
  70. }
  71. .m-detail{
  72. text-align: center;
  73. margin-top: 40px;
  74. }
  75. .m-detail .mi-title{
  76. font-size: 18px;
  77. font-weight: bold;
  78. }
  79. .m-detail .mi-detail{
  80. width: 90%;
  81. margin: 20px auto 30px;
  82. text-align: left;
  83. line-height: 1.5;
  84. color: #656565;
  85. font-size: 14px;
  86. }
  87. .m-detail .btn{
  88. color: #fff;
  89. }
  90. </style>