<template>
	<view class="personalData-v">
		<u-cell-group>
			<u-cell-item title="企业名字" :value="companyInfo.fullName" :arrow="false"></u-cell-item>
			<u-cell-item title="负责人" :value="companyInfo.fuzeren ? companyInfo.fuzeren : '暂无'" :arrow="false"></u-cell-item>
			<u-cell-item title="负责人电话" :value="companyInfo.fuzerendianhua ? companyInfo.fuzerendianhua : '暂无'" :arrow="false"></u-cell-item>
			<u-cell-item title="企业主要产品" :value="companyInfo.product ? companyInfo.product : '暂无'" :arrow="false"></u-cell-item>
			<u-cell-item title="用地性质" :value="companyInfo.yongdixingzhi ? companyInfo.yongdixingzhi : '暂无'" :arrow="false"></u-cell-item>
			<u-cell-item title="地址" :value="companyInfo.dizhi ? companyInfo.dizhi : '暂无'" :arrow="false"></u-cell-item>
		</u-cell-group>
	</view>
</template>

<script>
	import request from '@/utils/request.js'
	export default {
		data() {
			return {
				gender: '',
				birthday: '',
				info: {},
				baseUrl:'http://deyanggaoxin.fengshiyun.com',
				// 存放公司详情
				companyInfo:{}
			}
		},
		// computed: {
		// 	baseURL() {
		// 		return this.define.baseURL
		// 	}
		// },
		onLoad(options) {
			this.info = JSON.parse(options.data)
			this.getCompanyInfo()
			console.log(this.info)
		},
		methods:{
			// 获取公司信息
			getCompanyInfo(){
				request({
					url:`/api/permission/organize/${this.info}`,
					method:'get',
					data:{}
				}).then(res=>{
					console.log(res)
					if(res.code === 200){
						this.companyInfo = res.data
					}else{
						uni.showToast({
							icon:'error',
							title:"获取信息失败，请重试！"
						})
					}
				})
			}
		}
	}
</script>

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