directPromotionList.vue 742 B

12345678910111213141516171819202122232425262728293031323334353637
  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. <liu-drag-button @clickBtn="back">返回</liu-drag-button>
  8. </view>
  9. </template>
  10. <script>
  11. import MescrollItem from "./module/mescrollUni-item.vue";
  12. export default {
  13. components: {MescrollItem},
  14. data() {
  15. return {
  16. height:'',
  17. }
  18. },
  19. onLoad(e) {
  20. let sysInfo = uni.getSystemInfoSync()
  21. this.height = sysInfo.windowHeight - 70 + 'px' //除标题栏栏外的屏幕可用高度
  22. },
  23. methods: {
  24. back() {
  25. uni.navigateBack({
  26. delta: 1
  27. })
  28. },
  29. }
  30. }
  31. </script>
  32. <style lang="scss" scoped>
  33. @import './index.rpx.css';
  34. </style>