base-main.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <template>
  2. <div class="baseMainContainer">
  3. <div class="header">
  4. <div class="left">{{ title }}</div>
  5. <div class="right"><slot name="headerR"></slot></div>
  6. </div>
  7. <div class="content-area">
  8. <slot name="mainArea"></slot>
  9. </div>
  10. </div>
  11. </template>
  12. <script>
  13. export default {
  14. name: 'BaseMain',
  15. props:{
  16. title:String,
  17. }
  18. }
  19. </script>
  20. <style lang="scss" scoped>
  21. .baseMainContainer{
  22. width: px-to-rem(361);
  23. margin: px-to-rem(15) px-to-rem(19);
  24. .header{
  25. background:url('@/assets/image/common/header-bg.png') no-repeat;
  26. background-size: contain;
  27. width: 100%;
  28. height: px-to-rem(47);
  29. line-height: px-to-rem(47);
  30. display: flex;
  31. justify-content: space-between;
  32. .left{
  33. margin-left: px-to-rem(44);
  34. font-weight: bold;
  35. font-size: px-to-rem(18);
  36. color: #FFFFFF;
  37. text-shadow:px-to-rem(0) px-to-rem(2) px-to-rem(9) #003F85;
  38. }
  39. .right{
  40. margin-right: px-to-rem(11);
  41. }
  42. }
  43. .content-area{
  44. width: px-to-rem(360);
  45. min-height: px-to-rem(264);
  46. background: url('@/assets/image/common/areaBg.png') no-repeat 0 0 / 100% 100%;
  47. }
  48. }
  49. </style>