index.vue 673 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <template>
  2. <scroll-view :scroll-y="true" :style="pageScrollStyle">
  3. <slot></slot>
  4. </scroll-view>
  5. </template>
  6. <script>
  7. export default {
  8. options: {
  9. styleIsolation: 'shared'
  10. },
  11. props: {
  12. tabbarConflict: Boolean
  13. },
  14. computed: {
  15. pageScrollStyle() {
  16. let pageHeight = this.$config.pageHeight
  17. if (this.tabbarConflict) {
  18. pageHeight = this.$config.pageHeight - uni.upx2px(150)
  19. }
  20. console.log("tabbarConflict")
  21. console.log(this.tabbarConflict)
  22. return 'height: ' + pageHeight + 'px'
  23. }
  24. },
  25. watch: {
  26. },
  27. data() {
  28. return {}
  29. },
  30. created() {
  31. },
  32. mounted() {
  33. },
  34. methods: {
  35. }
  36. }
  37. </script>
  38. <style lang="scss">
  39. </style>