<template>
	<view class="page">

		<!-- #ifdef H5-->
		<uni-nav-bar  v-if="!$isWxBrowser()" :fixed="true" background-color="#FFE05C" :border="false" :statusBar="false"  left-icon="left" title="累计交友圈专员记录" @clickLeft="back" />
		<!-- #endif -->
		<view :style="{height:height}" class="list">
			<mescroll-item ref="MescrollItem" :i="0"  :index="0"  :height="height">
			</mescroll-item>
		</view>
		<!--#ifdef H5-->
		<liu-drag-button v-if="$isWxBrowser()"  @clickBtn="back">返回</liu-drag-button>
		<!--#endif-->
	</view>
</template>

<script>
	import MescrollItem from "./module/mescrollUni-item.vue";
	export default {
		components: {
			MescrollItem
		},
		data() {
			return {
				height:'',

			}
		},
		onLoad(e) {

			let sysInfo = uni.getSystemInfoSync()
			this.height = sysInfo.windowHeight  - 70 + 'px' //除标题栏栏外的屏幕可用高度
		},
		methods: {
			back() {
				let pages = getCurrentPages()
				if (pages.length > 1){
					uni.navigateBack({
						delta: 1,
						fail:err=>{
							console.log(err)
						}
					})
				}else {
					uni.switchTab({
						url: '/pages/index/index'
					});
				}
			},
		}
	}
</script>

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