<template>
	<view class="box">
		<view class="li" v-for="item,index in dataList" :key="index"
			@tap="navgo(`/subpkg/property/chosseCompany?id=${item.id}`)">
			<view class="">
				<view style="display: flex;justify-content: space-between;">
					<view class="">
						签约申请
					</view>
					<view class="">
						更多
					</view>
				</view>
				<view class="" style="margin-top: 20rpx;">
					{{item.company_b_name}}提出租赁车辆一辆
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		getAgencyListApi,
	} from "@/api/property.js"
	export default {
		data() {
			return {
				dataList: []
			}
		},
		methods: {
			navgo(url) {
				uni.navigateTo({
					url
				})
			}
		},
		onLoad() {
			getAgencyListApi().then(res => {
				this.dataList = res.data
			})
		}
	}
</script>

<style>
	.box {
		padding: 20rpx;

		.li {
			padding: 10rpx;
			background-color: white;
			border-radius: 15rpx;
			margin-bottom: 10rpx;
		}
	}
</style>