<template>
	<view class="page">
		<view>
			<mescroll-item ref="MescrollItem" :i="0"  :index="0"  :height="height">
			</mescroll-item>
		</view>
		<view class="addGroup" @click="goAddGroup">
			<text>新增分组</text>
		</view>
	</view>
</template>

<script>
	import MescrollItem from "./module/mescrollUni-item.vue";
	export default {
		components: {
			MescrollItem
		},
		data() {
			return {
				height:'',
				list:[]
			}
		},
		onLoad(e) {
			let sysInfo = uni.getSystemInfoSync()
			this.height = sysInfo.windowHeight  - 120 + 'px' //除标题栏栏外的屏幕可用高度
		},
		onShow(){
			if (this.$refs.MescrollItem){
				this.$refs.MescrollItem.downCallback()
			}
		},
		methods: {
			back() {
				uni.navigateBack({
					delta: 1
				})
			},



			goAddGroup(){
				uni.navigateTo({
					url:'/pages/addGroup/addGroup'
				})
			}
		}
	}
</script>


<style lang="scss" scoped>
	@import './index.rpx.css';
</style>
