myComdetail.vue 3.03 KB
<template>
	<view class="personalData-v">
		<u-cell-group>
			<u-cell-item title="企业名称" :value="info.enterpriseName" :arrow="false"></u-cell-item>
			<u-cell-item title="企业规模" :value="info.enterpriseScale" :arrow="false"></u-cell-item>
			<u-cell-item title="所属行业" :value="info.industry" :arrow="false"></u-cell-item>
			<u-cell-item title="法人" :value="info.legalPerson" :arrow="false"></u-cell-item>
			<u-cell-item title="联系人" :value="info.contacts" :arrow="false"></u-cell-item>
			<u-cell-item title="联系人电话号码" :value="info.contactsPhone" :arrow="false"></u-cell-item>
			<u-cell-item title="从业人数" :value="info.employees" :arrow="false"></u-cell-item>
			<u-cell-item title="总产值" :value="info.totalOutputValue" :arrow="false"></u-cell-item>
			<u-cell-item title="销售收入" :value="info.salesRevenue" :arrow="false"></u-cell-item>
			<u-cell-item title="固投" :value="info.fixedInvestment" :arrow="false"></u-cell-item>
			<u-cell-item title="税收" :value="info.taxation" :arrow="false"></u-cell-item>
			<u-cell-item title="利润" :value="info.profit" :arrow="false"></u-cell-item>
			<u-cell-item title="进口总额" :value="info.imports" :arrow="false"></u-cell-item>
			<u-cell-item title="出口总额" :value="info.totalExportValue" :arrow="false"></u-cell-item>
			<u-cell-item title="主要产品" :value="info.mainProducts" :arrow="false"></u-cell-item>
			<!-- <u-cell-item title="手机号" :value="userInfo.mobilePhone" :arrow="false"></u-cell-item> -->
			<!-- <u-cell-item title="邮箱" :value="userInfo.email" :arrow="false"></u-cell-item> -->
		</u-cell-group>
		<!-- <button type="primary"
			@click="toUpdate()"
			style="margin: 0 auto; margin-top: 30rpx; width: 90%;margin-bottom: 40rpx;"
			>修改</button> -->
	</view>
</template>

<script>
	import request from '@/utils/request.js'
	export default {
		data() {
			return {
				gender: '',
				birthday: '',
				userInfo: {},
				baseUrl:'http://deyanggaoxin.fengshiyun.com',
				id:'',
				info:{}
			}
		},
		computed: {
			baseURL() {
				return this.define.baseURL
			}
		},
		onLoad(options) {
			console.log("options",options.data)
			this.id = JSON.parse(options.data)
			console.log("id",this.id)
			this.getDetail()
			this.userInfo = uni.getStorageSync('user') || {};
			console.log(this.userInfo)
			this.gender = this.userInfo.gender == 1 ? '男' : this.userInfo.gender == 2 ? '女' : '保密'
			this.birthday = this.userInfo.birthday ? this.$u.timeFormat(this.userInfo.birthday, 'yyyy-mm-dd') : ''
		},
		methods:{
			// 获取详细信息
			getDetail(){
				let that = this
				request({
					url:`/api/SubDev/baseenterprisemanager/${this.id}`,
					method:'get',
					data:{}
				}).then(res=>{
					console.log(res)
					if(res.code === 200){
						this.info = res.data
					}
				})
			},
			// 修改
			toUpdate(){
				console.log("ssss")
				uni.navigateTo({
					url: `/pages/postCompany/postCompany?data=${JSON.stringify(this.id)}`
				})
			}
		}
	}
</script>

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