<template>
	<view>
		<view class="content">
			<view class="title">
				<view class="icon">
					<image src="./icon/title_icon.png" mode=""></image>
				</view>
				
				<view class="text" v-if="mine_code == 'zaoquan'">国家能源集团枣泉煤矿</view>
				<view class="text" v-if="mine_code == 'ningmeijituan'">国家能源集团宁夏煤业公司</view>
				<view class="text" v-if="mine_code == 'ningdongyunying'">国家能源集团宁东运营部</view>
				<view class="text" v-if="mine_code == 'qingshuiying'">国家能源集团清水营煤矿</view>
				<view class="text" v-if="mine_code == 'wuyegongsi'">物业公司</view>
				<view class="text" v-if="mine_code == 'jinjiaqu' || mine_code == 'jinjiaqu_neiwang'">国家能源集团金家渠煤矿</view>
				<view class="text" v-if="mine_code == 'yangchangwan'">国家能源集团羊场湾煤矿</view>
				<view class="text" v-if="mine_code == 'shicaocun'">国家能源集团石槽村煤矿</view>
				<view class="text" v-if="mine_code == 'jinfeng' || mine_code == 'jinfeng_neiwang'">国家能源集团金凤煤矿</view>
				
			</view>
			<view class="box">
				<view class="item" @click="go_communication_origanization()">
					<view class="icon">
						<image src="./icon/jiagou.png" mode=""></image>
					</view>
					<view class="text">组织架构</view>
				</view>
				<view class="item" @click="go_my_department()">
					<view class="icon">
						<image src="./icon/bumen.png" mode=""></image>
					</view>
					<view class="text">我的部门</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"t-o-origanization",
		data() {
			return {
				// 当前煤矿编码
				mine_code: "",
			};
		},
		created() {
			// 初始化当前煤矿编码
			this.mine_code = uni.getStorageSync('mine_code')
		},
		methods:{
			go_communication_origanization(){
				uni.navigateTo({
					url:"../../origanization/communication/origanization/origanization"
				})
			},
			go_my_department(){
				uni.navigateTo({
					url:"../../origanization/communication/origanization/my_department/my_department"
				})
			}
		}
	}
</script>

<style lang="scss">
	
	.content{
		background-color: #FFFFFF;
		.title{
			height: 110rpx;
			display: flex;
			align-items: center;
			
			box-sizing: border-box;
			padding: 0 36rpx;
			border-bottom: 1rpx solid #F3F8F7;
			.icon{
				display: flex;
				align-items: center;
				image{
					width: 48rpx;
					height: 36rpx;	
				}
			}
			.text{
				margin-left: 20rpx;
				font-size: 38rpx;
				font-weight: 700;
			}
		}
		.box{
			box-sizing: border-box;
			padding: 0 50rpx;
			.item{
				height: 110rpx;
				
				display: flex;
				align-items: center;
				
				border-bottom: 1rpx solid #F3F8F7;
				
				.icon{
					image{
						width: 36rpx;
						height: 36rpx;
					}
				}
				.text{
					margin-left: 20rpx;
					font-size: 32rpx;
				}
			}
		}
	}
</style>
