<template>
	<view >
		<view class="content"  v-for="(item,index) in list" :key="index">
			<view class="box_item">
				<view class="box_left">
					<span class="f1">{{item.addressName}}</span>
					<span class="f2">{{item.applicationName}}</span>
				</view>
				<view class="box_right">
					{{item.auditStatus?item.auditStatus:'正在审核'}}
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[],
				from:{
					createdUser:uni.getStorageSync('USERS_KEY').userId,
				}
			}
		},
		onLoad() {
			this.getlist()
		},
		methods: {
			getlist() {
				this.API.getaddressApplication(this.from).then(res=>{
					console.log(res);
					this.list = res.rows
				})
			},
			xwtz(){
				uni.navigateTo({
					url:"/pages/xw/xw"
				})
			}
		}
	}
</script>

<style lang="scss">
	.content{
		padding: 20rpx;
		.box_item{
			background-color: #fff;
			display: flex;
			padding: 20rpx 40rpx;
			border-radius: 20rpx;
			align-items: center;
			.box_left{
				display: flex;
				flex-direction: column;
				justify-content: space-between;
				width: 58%;
				margin-right: 2%;
				.f1{
					font-size: 35rpx;
					font-weight: 600;
					display: block;
					margin-bottom: 20rpx;
				}
				.f2{
					color: #ababab;
				}
			}
			.box_right{
				width: 40%;
				text-align: right;
			}
		}
	}
</style>
