<template>
	<view class="enterprise_info">
		<!-- 基本信息 -->
		<view class="info_head">基本信息</view>
		<view class="info_item">
			<view>企业名称</view>
			<view>{{info.name ? info.name : ''}}</view>
		</view>
		<view class="info_item">
			<view>企业简称</view>
			<view>{{info.subname ? info.subname : ''}}</view>
		</view>
		<view class="info_item">
			<view>企业电话</view>
			<view>{{info.mobile ? info.mobile : ''}}</view>
		</view>
		<view class="info_item">
			<view>企业类型</view>
			<view>{{info.type ? info.type : ''}}</view>
		</view>
		<view class="info_item">
			<view>所属行业</view>
			<view>{{info.industry ? info.industry : ''}}</view>
		</view>
		<view class="info_item">
			<view>详细地址</view>
			<view>{{info.address ? info.address : ''}}</view>
		</view>
		<view class="info_item">
			<view>企业网址</view>
			<view>{{info.url ? info.url : ''}}</view>
		</view>
		<view class="info_item">
			<view>成立时间</view>
			<view>{{info.time ? info.time : ''}}</view>
		</view>
	</view>
</template>

<script>
	import { netCompanysInfo } from '@/api/index.js'
	
	export default {
		data() {
			return {
				info:{}
			}
		},
		onShow() {
			this.getInfo()
		},
		methods: {
			getInfo() {
				netCompanysInfo().then(res=>{
					this.info = res.data
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
.enterprise_info {
	.info_img {
		image {
			width: 100%;
			height: 300rpx;
		}
	}
	.info_head {
		line-height: 80rpx;
		padding-left: 30rpx;
	}
	.info_item {
		display: flex;
		justify-content: space-between;
		padding:24rpx;
		font-size: 28rpx;
		background-color: #fff;
		border-bottom: 1rpx solid #EAEAEA;
		view{
			&:first-child{
				flex-shrink: 0;
				margin-right:24rpx;
			}
			&:last-child{
				text-align: right;
			}
		}
	}
}
</style>
