banner.vue 756 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <template>
  2. <div class="banner" :style="{backgroundImage: 'url(' + bgImage + ')' }" >
  3. {{ title }}
  4. </div>
  5. </template>
  6. <script>
  7. export default {
  8. data() {
  9. return {
  10. }
  11. },
  12. props: {
  13. bgImage: {
  14. type: String,
  15. default: ''
  16. },
  17. title: {
  18. type: String,
  19. default: ''
  20. }
  21. },
  22. created() {
  23. },
  24. methods: {
  25. }
  26. }
  27. </script>
  28. <style lang="scss" scoped>
  29. @import "~static/common/style.sass";
  30. .banner {
  31. display: flex;
  32. justify-content: center;
  33. align-items: center;
  34. height: 885px;
  35. font-size:64px;
  36. font-family:PingFangSC-Medium,PingFang SC;
  37. font-weight:500;
  38. color:#ffffff;
  39. background-size: 100% 100%;
  40. background-repeat: no-repeat;
  41. }
  42. </style>