myGroup.vue 935 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <template>
  2. <view class="page">
  3. <view>
  4. <mescroll-item ref="MescrollItem" :i="0" :index="0" :height="height">
  5. </mescroll-item>
  6. </view>
  7. <view class="addGroup" @click="goAddGroup">
  8. <text>新增分组</text>
  9. </view>
  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. list:[]
  22. }
  23. },
  24. onLoad(e) {
  25. let sysInfo = uni.getSystemInfoSync()
  26. this.height = sysInfo.windowHeight - 120 + 'px' //除标题栏栏外的屏幕可用高度
  27. },
  28. onShow(){
  29. if (this.$refs.MescrollItem){
  30. this.$refs.MescrollItem.downCallback()
  31. }
  32. },
  33. methods: {
  34. back() {
  35. uni.navigateBack({
  36. delta: 1
  37. })
  38. },
  39. goAddGroup(){
  40. uni.navigateTo({
  41. url:'/pages/addGroup/addGroup'
  42. })
  43. }
  44. }
  45. }
  46. </script>
  47. <style lang="scss" scoped>
  48. @import './index.rpx.css';
  49. </style>