<template>
	<view>
		<cu-custom bgColor="bg-gradual-blueness" :isBack="true">
			<block slot="backText">返回</block>
			<block slot="content">基本资料</block>
		</cu-custom>
		<scroll-view scroll-y>
			<view class="cu-list menu">
				<view class="cu-item">
					<view class="content">
						<text class="text-semi">单位名称</text>
					</view>
					<view class="action">
						<text class="text-grey">{{pd.CORP_NAME}}</text>
					</view>
				</view>
				<view class="cu-item">
					<view class="content">
						<text class="text-semi">统一社会信用代码</text>
					</view>
					<view class="action">
						<text class="text-grey">{{pd.CODE}}</text>
					</view>
				</view>
				<view class="cu-item">
					<view class="content">
						<text class="text-semi">所属区域</text>
					</view>
					<view class="action">
						<text class="text-grey">{{pd.COMPANY_AREA}}</text>
					</view>
				</view>
				<view class="cu-item">
					<view class="content">
						<text class="text-semi">邮政编码</text>
					</view>
					<view class="action">
						<text class="text-grey">{{pd.POSTAL_CODE}}</text>
					</view>
				</view>
				<view class="cu-item">
					<view class="content">
						<text class="text-semi">所属行业</text>
					</view>
					<view class="action">
						<text class="text-grey">{{pd.INDUSTRY_NAME}}</text>
					</view>
				</view>
				<view class="cu-item">
					<view class="content">
						<text class="text-semi">经济类型</text>
					</view>
					<view class="action">
						<text class="text-grey">{{pd.ECO_TYPE_NAME}}</text>
					</view>
				</view>
<!-- 				<view class="cu-item">
					<view class="content">
						<text class="text-semi">所属专业</text>
					</view>
					<view class="action">
						<text class="text-grey">{{pd.CORP_TYPE_NAME}}</text>
					</view>
				</view>
				<view class="cu-item">
					<view class="content">
						<text class="text-semi">所属小专业</text>
					</view>
					<view class="action">
						<text class="text-grey">{{pd.CORP_TYPE_SMALL_NAME}}</text>
					</view>
				</view> -->
				<view class="cu-item">
					<view class="content">
						<text class="text-semi">法定代表人</text>
					</view>
					<view class="action">
						<text class="text-grey">{{pd.LR_NAME}}</text>
					</view>
				</view>
				<view class="cu-item">
					<view class="content">
						<text class="text-semi">法人手机号</text>
					</view>
					<view class="action">
						<text class="text-grey">{{pd.LR_MOBILE}}</text>
					</view>
				</view>
				<view class="cu-item">
					<view class="content">
						<text class="text-semi">安全责任人</text>
					</view>
					<view class="action">
						<text class="text-grey">{{pd.CONTACTS}}</text>
					</view>
				</view>
				<view class="cu-item">
					<view class="content">
						<text class="text-semi">安全责任人手机号</text>
					</view>
					<view class="action">
						<text class="text-grey">{{pd.CONTACTS_PHONE}}</text>
					</view>
				</view>
				<view class="cu-item">
					<view class="content">
						<text class="text-semi">企业整改负责人</text>
					</view>
					<view class="action">
						<text class="text-grey">{{pd.CHECKPERSON}}</text>
					</view>
				</view>
				<view class="cu-item">
					<view class="content">
						<text class="text-semi">企业整改人电话</text>
					</view>
					<view class="action">
						<text class="text-grey">{{pd.CHECKPERSONPHONE}}</text>
					</view>
				</view>
				<view class="cu-item">
					<view class="content">
						<text class="text-semi">隶属关系</text>
					</view>
					<view class="action">
						<text class="text-grey">{{pd.SUBORDINATION_NAME}}</text>
					</view>
				</view>
				<view class="cu-item">
					<view class="content">
						<text class="text-semi">企业状态</text>
					</view>
					<view class="action">
						<text class="text-grey">{{pd.CORP_STATE_NAME}}</text>
					</view>
				</view>
				<view class="cu-item">
					<view class="content">
						<text class="text-semi">经度</text>
					</view>
					<view class="action">
						<text class="text-grey">{{pd.LONGITUDE}}</text>
					</view>
				</view>
				<view class="cu-item">
					<view class="content">
						<text class="text-semi">纬度</text>
					</view>
					<view class="action">
						<text class="text-grey">{{pd.LATITUDE }}</text>
					</view>
				</view>
				<view class="cu-item">
					<view class="content">
						<text class="text-semi">职工人数</text>
					</view>
					<view class="action">
						<text class="text-grey">{{pd.EMPLOYEES }}</text>
					</view>
				</view>
				<view class="cu-item">
					<view class="content">
						<text class="text-semi">占地面积</text>
					</view>
					<view class="action">
						<text class="text-grey">{{pd.AREA_COVERED }}</text>
					</view>
				</view>
				<view class="cu-item">
					<view class="content">
						<text class="text-semi">注册资金</text>
					</view>
					<view class="action">
						<text class="text-grey">{{pd.ANNUALPROFIT }}</text>
					</view>
				</view>
				<view class="cu-item">
					<view class="content">
						<text class="text-semi">规模</text>
					</view>
					<view class="action">
						<text class="text-grey">{{pd.SCALE_NAME }}</text>
					</view>
				</view>
				<view class="cu-item-sp">
					<view class="content">
						<text class="text-semi">通讯地址</text>
					</view>
					<view class="action">
						<text class="text-grey">{{pd.ADDRESS}}</text>
					</view>
				</view>
			<!-- 	<view class="cu-item-sp">
					<view class="content">
						<text class="text-semi">企业简介</text>
					</view>
					<view class="action">
						<text class="text-grey">秦皇岛启点科技有限公司是一家专门从事软件自主研发、提供行业信息化与管理咨询解决方案的管理应用软件开发企业。公司成立于2017年,公司成立以来一直尊崇“求实创新、拼搏进取、合作共赢”的企业理念,艰苦创业,诚实守信,积极进取,建立一个良好的企业环境,以技术人才为核心动力、以先进的技术、创新的管理、完美的服务、卓越的品质为根本,以客户至上为原则,提供信息化建设、管理咨询等全过程、全方位的服务。</text>
					</view>
				</view> -->
			</view>
			<!-- <view class="cu-tabbar-height"></view> -->
		</scroll-view>
	</view>
</template>

<script>
	import {
		basePath,corpinfoId,loginSession
	} from '@/common/tool.js';
	
	export default {
		data() {
			
			return {
				initflag:false,
				pd:[],
				noClick:true,
			}
		},
		onLoad(e){
			this.getData();
			loginSession();
		},
		methods: {
			//跳转事件
			goToEdit(e) {
				uni.navigateTo({
					url: '/pages/application/basic-info-manage/basic-information/basic-information-edit'
				});
			},
				
			getData() {
				var _this = this;
				uni.showLoading({
					title: '请稍候'
				})
				uni.request({
					url: basePath + '/app/corpinfo/goEdit',
					method: 'POST',
					dataType: 'json',
					header:{
							'Content-type':'application/x-www-form-urlencoded'
					},
					data: {
						CORPINFO_ID: corpinfoId,
					},
					success: (res) => {
						
						if (res.data != null) {
							uni.hideLoading();
							_this.pd = res.data.pd;
							
						} else {
							uni.showToast({
								title: res.data.message,
								duration: 2000
							});
						}
					}
				});
			},
		}
	}
</script>

<style>
	
	.selected .radio {
		transform: scale(0.5);
		margin-right: 10upx;
	}

</style>