<template>
  <view>
	<view class="boxt">
		<view class="tit">
			<image :src="titimg"></image>基本信息
		</view>
		<view class="txt">反担保人姓名：<text>{{datainfo.guaranteeName}}</text></view>
		<view class="txt">身份证号：<text>{{datainfo.guaranteeIdCard}}</text>
			<text class="txta ml8" v-if="datainfo.guaranteeFront" @click="getDown(datainfo.guaranteeFront)">查看照片</text>
		</view>
		<view class="txt">手机号码：<text>{{datainfo.guaranteePhone}}</text></view>	
	</view>
	<!-- <view class="boxt">
		<view class="tit">
			<image :src="titimg"></image>反担保人家庭婚姻信息
		</view>
		<view class="flexcw">
			<view class="txt">婚姻状态：<text>{{kaType(datainfo.guaranteeMaritalStatus,hyztlist)}}</text></view>
			<view class="txt">配偶姓名：<text>{{datainfo.guaranteeSpouseName}}</text></view>
		</view>
		<view class="txt">身份证号：<text>{{datainfo.guaranteeSpouseIdCard}}</text>
			<text class="txta ml8" @click="getDown(datainfo.guaranteeFront)">查看照片</text>
		</view>
		<view class="txt">结婚证：<text class="txta" @click="getDown(a)">在线查看</text></view>
	</view>
	<view class="boxt">
		<view class="tit">
			<image :src="titimg"></image>反担保人户籍信息
		</view>
		<view class="txt">户口簿首页：<text class="txta" @click="getDown(a)">在线查看</text></view>
		<view class="txt">户口簿(本人页)：<text class="txta" @click="getDown(a)">在线查看</text></view>
		<view class="txt">户口簿(配偶页)：<text class="txta" @click="getDown(a)">在线查看</text></view>
	</view> -->
	<view class="boxt">
		<view class="tit">
			<image :src="titimg"></image>反担保人信用担保证明
		</view>
		<view class="txt flext">个人工作证明：
			<view class="flex1 over">
				<block v-if="basicFj.fdbrgrgzzm&&basicFj.fdbrgrgzzm.length">
					<block v-if="basicFj.fdbrgrgzzm.length>1">
						<view v-for="(ite,idx) in basicFj.fdbrgrgzzm" class="filist over" @click="getDown(ite.url)">{{ite.name}}</view>
					</block>
					<text v-else class="txta" @click="getDown(basicFj.fdbrgrgzzm[0].url)">在线查看</text>
				</block>
			</view>
		</view>
		<view class="txt flext">个人征信报告：
			<view class="flex1 over">
				<block v-if="basicFj.fdbrgrzxbg&&basicFj.fdbrgrzxbg.length">
					<block v-if="basicFj.fdbrgrzxbg.length>1">
						<view v-for="(ite,idx) in basicFj.fdbrgrzxbg" class="filist over" @click="getDown(ite.url)">{{ite.name}}</view>
					</block>
					<text v-else class="txta" @click="getDown(basicFj.fdbrgrzxbg[0].url)">在线查看</text>
				</block>
			</view>
		</view>
		<view class="txt flext">身份证复印件：
			<view class="flex1 over">
				<block v-if="basicFj.fdbrsfzfyj&&basicFj.fdbrsfzfyj.length">
					<block v-if="basicFj.fdbrsfzfyj.length>1">
						<view v-for="(ite,idx) in basicFj.fdbrsfzfyj" class="filist over" @click="getDown(ite.url)">{{ite.name}}</view>
					</block>
					<text v-else class="txta" @click="getDown(basicFj.fdbrsfzfyj[0].url)">在线查看</text>
				</block>
			</view>
		</view>
	</view>
	<view class="boxt">
		<view class="tit">
			<image :src="titimg"></image>企业反担保证明
		</view>
		<view class="txt flext">营业执照：
			<view class="flex1 over">
				<block v-if="basicFj.fdbqyyyzz&&basicFj.fdbqyyyzz.length">
					<block v-if="basicFj.fdbqyyyzz.length>1">
						<view v-for="(ite,idx) in basicFj.fdbqyyyzz" class="filist over" @click="getDown(ite.url)">{{ite.name}}</view>
					</block>
					<text v-else class="txta" @click="getDown(basicFj.fdbqyyyzz[0].url)">在线查看</text>
				</block>
			</view>
		</view>
		<view class="txt flext">企业征信：
			<view class="flex1 over">
				<block v-if="basicFj.fdbqyzx&&basicFj.fdbqyzx.length">
					<block v-if="basicFj.fdbqyzx.length>1">
						<view v-for="(ite,idx) in basicFj.fdbqyzx" class="filist over" @click="getDown(ite.url)">{{ite.name}}</view>
					</block>
					<text v-else class="txta" @click="getDown(basicFj.fdbqyzx[0].url)">在线查看</text>
				</block>
			</view>
		</view>
	</view>
  </view>
</template>

<script>
	import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
	import { selectValue } from '@/utils/common.js';
	import noData from "@/components/nodata/nodata.vue"
  export default {
	props:{
		datainfo: {
			type: Object,
			default () {
				return {}
			}
		},
		hyztlist:{
			type: Array,
			default () {
				return {}
			}
		},
		basicFj:{
			type: Object,
			default () {
				return {}
			}
		}
	},
	components:{
		noData
	},
	data(){
		return{
			titimg:require('@/work/static/images/infotit.png'),
		}
	},
	onLoad: function() {
	},
	methods:{
		checkPermi, checkRole,
		kaType(ite){
			return selectValue(this.tajdlist, ite);
		},
		getDown(url){
			this.$emit('getDown',url)
		},
		getPreview(url){
			this.$emit('getPreview',url)
		},
	},
	
  }
</script>

<style lang="scss" scoped>
.boxt{padding: 0 16rpx;border-top: 2rpx solid #E6E6E6;}
.tit{font-weight: bold;font-size: 30rpx;color: $com-cd3;display: flex;align-items: center;padding-top: 44rpx;margin-bottom: 50rpx;padding-left: 20rpx;
	image{width: 30rpx;height: 30rpx;margin-right: 14rpx;}
}
.txt{font-weight: bold;font-size: 30rpx;color: #222327;margin-bottom: 44rpx;padding-left: 20rpx;
	text{color: #666666;font-weight: 500;
		&.txta{color: #28C529;}
	}
	.filist{font-weight: 500;
		color: #28C529;margin-bottom: 8rpx;
	}
}
.flexcw{display: flex;
	.txt{min-width: 50%;}
}
</style>
