<template>
	<view>
		<u-swiper :list="bannerList" mode="rect" name="banners" height="380" border-radius="0"></u-swiper>
		<view class="card">
			<view class="flex flex-direction justify-center padding-left-20">
				<text class="text-bold  text-lg" style="padding-bottom: 12rpx;">{{detail.agencyName}}</text>
			</view>
		</view>
		<view class="bg-white text-black">
			<view class="flex" style="padding:20rpx 30rpx 0;">
				<image style="width: 35rpx;height: 35rpx;display: block;padding-top: 6rpx;padding-right: 10rpx;" src="../../../static/icon/tag1.png" mode=""></image>
				<text class="text-lg  padding-left-10" >其他信息</text>
			</view>
			<view class="cu-list menu text-df padding-top-20">
				<view class="cu-item">
					<view class="content">
						<text class="cuIcon-profilefill base-color" style="font-size: 32rpx;"></text>
						<text class="">法定代表人</text>
					</view>
					<view class="action">
						<text>{{detail.personName}}</text>
					</view>
				</view>
				
				<view class="cu-item">
					<view class="content">
						<text class="cuIcon-mobilefill text-bold base-color" style="font-size: 32rpx;"></text>
						<text class="">联系方式</text>
					</view>
					<view class="action">
						<text>{{detail.personPhone}}</text>
					</view>
				</view>
			</view>
			<view class="" style="padding: 20rpx 40rpx;">
				<view class="">
					<text class="cuIcon-locationfill base-color " style="margin-right: 20rpx;"></text>
					公司地址：
				</view>
				<view class="text-cut-2 " style="padding: 20rpx 10rpx">
					<text>{{detail.address}}</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id:this.$cache.get('agency'),
				detail:{},
				bannerList: [
					{
					  'banners': "http://139.9.103.171:1888/miniofile/xlyq/banner.jpg"
					},
				],
			}
		},
		onLoad() {
			this.fetchDeatil()
			// this.fetchBanner()
		},
		methods: {
			fetchBanner(){
				let params={
					// tenantId:this.$cache.get('agencyTenantId')
				}
				this.$api.banner.page(params).then(res=>{
					if (!this.$isEmpty(res.data.records)) {
						this.bannerList=res.data.records
					}
				})
			},
			fetchDeatil(){
				this.$api.agency.page({id:this.id}).then(res=>{
					this.detail=res.data.records[0]
				})
			},
		}
	}
</script>

<style lang="scss">
	page{
		background-color: #FFFFFF;
	}
	
	.card{
		padding: 20rpx;
		background-color: #FFFFFF;
		margin: 10rpx;
		border-radius: 10rpx;
		display: flex;
		box-shadow: 0 10rpx rgba(248, 248, 248,.9) , -10rpx 0rpx rgba(248, 248, 248,.9) ,10rpx 0rpx rgba(248, 248, 248,.9);
		image{
			border: 1rpx solid #f1f1f1;
			width:100rpx;
			height: 100rpx;
			border-radius: 50%;
		}
	}
	
	.desc{
		background-color: #FFFFFF;
		padding:40rpx 30rpx;
		.sub-title{
			padding-top: 40rpx;
			font-size: 28rpx;
			line-height: 50rpx;
		}
	}
	
	.history{
		background-color: #FFFFFF;
		margin-top: 20rpx;
		padding: 40rpx 20rpx 20rpx 50rpx;
	}
	
	.top{
		padding-bottom: 30rpx;
		display: flex;
		justify-content: space-between;
	}
	
	.address{
		margin-top: 20rpx;
		background-color: #FFFFFF;
		padding: 30rpx;
		
		
		.item{
			padding-top: 40rpx;
			.sub-address{
				padding-left: 70rpx;font-size: 26rpx;color: #bababa;
			}
		}
	}
	
	
	.u-node {
			width: 44rpx;
			height: 44rpx;
			border-radius: 100rpx;
			display: flex;
			justify-content: center;
			align-items: center;
			background: #d0d0d0;
		}
		
		.u-order-title {
			color: #333333;
			font-weight: bold;
			font-size: 32rpx;
		}
		
		.u-order-desc {
			padding-top: 20rpx;
			color: #8d8d8d;
			font-size: 26rpx;
			line-height: 48rpx;
			margin-bottom: 6rpx;
		}
		
		.u-order-time {
			color: rgb(200, 200, 200);
			font-size: 26rpx;
		}
</style>
