home.vue 784 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <template>
  2. <view class="container" :style="{'top': viewTop + 'px', 'height': viewHeight + 'px'}">
  3. <brief />
  4. <serviceTrait />
  5. <bottom />
  6. </view>
  7. </template>
  8. <script>
  9. import brief from '../../pages/home/home-brief.vue'
  10. import serviceTrait from '../../pages/home/home-serviceTrait.vue'
  11. import bottom from '../../pages/home/home-bottom.vue'
  12. export default {
  13. data() {
  14. return {
  15. }
  16. },
  17. props: {
  18. viewTop: {
  19. type: Number,
  20. default: 0
  21. },
  22. viewHeight: {
  23. type: Number,
  24. default: 0
  25. }
  26. },
  27. methods: {
  28. },
  29. components: {
  30. brief,
  31. serviceTrait,
  32. bottom
  33. }
  34. }
  35. </script>
  36. <style lang="scss">
  37. .container{
  38. display: flex;
  39. box-sizing: border-box;
  40. position: relative;
  41. flex-direction: column;
  42. left: 0;
  43. width: 100%;
  44. }
  45. </style>