| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 | <template>	<view class="container">		<view class="back-btn" @click="backToBefore()">			<u-icon name="arrow-left" color="#fff" size="20" customStyle="margin:0 auto"></u-icon>			<text class="back-text">法人信息</text>		</view>		<view class="base-info">			<view class="info-item" v-for="item in legalPersonInfo">				<view class="info-item-description">{{item.description}}</view>				<view class="info-item-name" :class="item.type?item.type:''">{{item.value}}				</view>			</view>		</view>	</view></template><script setup>	import {		ref	} from 'vue'	import {		onLoad	} from "@dcloudio/uni-app"	import {		getEnterpriseInfoDetail,	} from "@/api/work/enterpriseInfo.js"	function backToBefore() {		uni.navigateBack({})	};	let legalPersonInfo = ref([{		description: "姓名",		key: "nameJur1",		value: ""	}, {		description: '性别',		key: "sex1",		value: ""	}, {		description: '电话',		key: "tel1",		value: '',		type: 'number'	}, {		description: '移动电话',		key: "simCode1",		value: '',		type: 'number'	}, {		description: '传真',		key: "faxCode1",		value: '',		type: 'number'	}, {		description: '电子邮箱',		key: "email1",		value: '',		type: 'email'	}, {		description: '护照号码',		key: "passport1",		value: '',		type: 'passport'	}])	function filterData(obj) {		for (let i in legalPersonInfo.value) {			legalPersonInfo.value[i].value =				(obj[legalPersonInfo.value[i].key] != null) ? obj[legalPersonInfo.value[i].key] : "--"		}	}	onLoad((option) => {		getEnterpriseInfoDetail({			id: option.id		}).then(res => {			filterData(res.data.junitInfo)		})	})</script><style lang="scss" scoped>	page {		height: 100%;		background-color: #EAF0FA;	}	.container {		position: relative;		width: 100%;		height: 100%;		background: linear-gradient(180deg, #1869F6 0%, #EAF0FA 64%, #EAF0FA 100%);		.back-btn {			position: absolute;			top: 8%;			left: 4%;			display: flex;			font-size: 40rpx;			font-weight: 500;			color: #FFF;			.back-text {				margin-left: 28rpx;			}		}	}	.base-info {		position: absolute;		left: 4%;		top: 14%;		width: 92%;		height: 584rpx;		padding: 10rpx 40rpx;		border-radius: 40rpx;		box-sizing: border-box;		background-color: #fff;		.info-item {			display: flex;			justify-content: space-between;			width: 100%;			height: 80rpx;			.info-item-description {				display: flex;				flex-direction: column;				justify-content: center;				font-size: 32rpx;				color: #9E9E9E;			}			.info-item-name {				display: flex;				flex-direction: column;				justify-content: center;				font-size: 32rpx;				color: #343437;			}			.number {				color: #1869F6;			}			.email {				color: #FF530F;			}			.passport {				color: #09B200;			}		}	}</style>
 |