directPromotionList.vue 681 B

123456789101112131415161718192021222324252627282930313233343536
  1. <template>
  2. <view class="page">
  3. <view :style="{height:height}" class="list">
  4. <mescroll-item ref="MescrollItem" :i="0" :index="0" :height="height">
  5. </mescroll-item>
  6. </view>
  7. </view>
  8. </template>
  9. <script>
  10. import MescrollItem from "./module/mescrollUni-item.vue";
  11. export default {
  12. components: {MescrollItem},
  13. data() {
  14. return {
  15. height:'',
  16. }
  17. },
  18. onLoad(e) {
  19. let sysInfo = uni.getSystemInfoSync()
  20. this.height = sysInfo.windowHeight - 70 + 'px' //除标题栏栏外的屏幕可用高度
  21. },
  22. methods: {
  23. back() {
  24. uni.navigateBack({
  25. delta: 1
  26. })
  27. },
  28. }
  29. }
  30. </script>
  31. <style lang="scss" scoped>
  32. @import './index.rpx.css';
  33. </style>