<template>
	<view class="">
		<!-- 组织架构 -->
		<!-- 枣泉 -->
		<!-- <view v-if="mine_code == 'zaoquan'">
			<t-o-zaoquan></t-o-zaoquan>
		</view> -->

		<view v-if="mine_code != 'ningmeijituan' && mine_code != 'ningdongyunying'">
			<t-o-origanization></t-o-origanization>
		</view>

		<view v-if="mine_code == 'ningdongyunying' || mine_code == 'ningmeijituan'">
			<t-o-news ref="tONews"></t-o-news>
			<!-- <t-o-origanization></t-o-origanization> -->
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				// 当前煤矿编码
				mine_code: "",
				
				// 事件防抖
				flag:true
			}
		},
		onLoad() {
			// 初始化当前煤矿编码
			this.mine_code = uni.getStorageSync('mine_code')
			
		},
		onReachBottom() {
			if(this.flag){
				this.flag = false
				this.$refs.tONews.tab_2_onReachBottom();
				setTimeout(()=>{
					this.flag = true
				},1000)
			}
				
			console.log('++')
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #F3F8F7;
	}
</style>
