cooperation.vue 783 B

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