home.vue 705 B

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