home.vue 891 B

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