<template>
	<view class="main">
		<!-- 考场模拟 -->
		<coachIdentity v-if="identity=='实操教练'"/>
		<!-- 预约记录 -->
		<simulation v-if="identity=='考场模拟教练'"/>
		<!-- 学员评价 -->
		<studentComment v-if="identity=='模拟器老师'" ref="studentCommentRef"/>
	</view>
</template>

<script>
	import coachIdentity from './comp/coach.vue'
	import simulation from './comp/simulation.vue'
	import studentComment from './comp/studentComment.vue'
	export default {
		components: { coachIdentity,simulation, studentComment },
		data() {
			return {
				
			}
		},
		onShow() {
			uni.hideTabBar();
		},
		onPullDownRefresh() {
			this.$refs.studentCommentRef.initList()
		},
		onReachBottom() {
			if(identity=='模拟器老师') {
				this.$refs.studentCommentRef.loadMore()
			}
		},
	}
</script>

<style lang="scss" scoped>
	
</style>