<template>
	<view class="lists">
		<view class="middle view">
			<view class="text-block">
				<text class="middle-date">收货单位</text>
				<view class="middle-date-des uni-list picker-year">
					<view class="uni-list-cell">
						<view class="uni-list-cell-db">
							<text class="middle-date-des">步步高商贸公司</text>
						</view>
					</view>
					<image class="icon-arrow" src="@/static/image/arrow_r@3x.png" mode="aspectFit"></image>
				</view>

			</view>
			<view class="text-block">
				<text class="middle-date">喷码单位</text>
				<view class="middle-date-des uni-list picker-year">
					<view class="uni-list-cell">
						<view class="uni-list-cell-db">
							<text class="middle-date-des">步步高商贸公司</text>
						</view>
					</view>
					<image class="icon-arrow" src="@/static/image/arrow_r@3x.png" mode="aspectFit"></image>
				</view>
			</view>
			<view class="text-block">
				<text class="middle-date">收货联系人</text>
				<text class="middle-date-des">胡小歌</text>
			</view>
			<view class="text-block">
				<text class="middle-date">联系人电话</text>
				<text class="middle-date-des">199****0206</text>
			</view>
			<view class="text-block">
				<text class="middle-date">收货地址</text>
				<text class="middle-date-des">四川成都高新区锦城广场</text>
			</view>
			<view class="text-block">
				<text class="middle-date">详细地址</text>
				<text class="middle-date-des">四川成都高新区环球中心</text>
			</view>
			<view class="text-block text-block-last">
				<text class="middle-date">备注</text>
				<text class="middle-date-des">字段描述</text>
			</view>
		</view>
		<view class="middle upload">
			<text class="upload-text">附件上传</text>
			<view class="uni-list upload-icon picker-year">
				<view class="uni-list-cell">
					<view class="uni-list-cell-db">
						<text class="middle-date-des"></text>
					</view>
				</view>
				<image class="icon-arrow icon-upload" src="@/static/image/upload@3x.png" mode="aspectFit"></image>
			</view>
		</view>
		<view class="bottom">
			<button class="btn btn-l" type="default" @tap="preStep">
				<text class="btn-text btn-text-l">上一步</text>
			</button>
			<button class="btn" type="default" @tap="submit">
				<text class="btn-text">提交</text>
			</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				applyNum: 100
			}
		},
		methods: {
			submit() {
				this.$emit('submit')
			},
			preStep() {
				this.$emit('click', 'deliveryList')
			},
		}
	}
</script>

<style lang="scss" scoped>
	.view {
		flex-direction: column;
	}

	.lists {
		flex-direction: column;
		padding: 0 16rpx;
	}

	.middle {
		background-color: #fff;
		border-radius: 16rpx;
		box-shadow: 0px 2px 4px 0px #dbe4ee;
		padding: 32rpx 64rpx 40rpx 48rpx;
		margin-bottom: 32rpx;
	}

	.text-block {
		overflow: hidden;
		height: 96rpx;
		margin-bottom: 14rpx;
		border-bottom: 1px solid #f4f5f6;
	}

	.text-block-last {
		margin-bottom: 0;
		border-bottom: 0;
	}

	.middle-date {
		flex: 2;
		font-size: 28rpx;
		line-height: 96rpx;
		color: #999;
		margin-bottom: 8rpx;
	}

	.middle-date-des {
		flex: 3;
		font-size: 28rpx;
		line-height: 96rpx;
		color: $text-base-color;
	}

	.picker-year {
		position: relative;
		border-radius: 4px;
		align-items: center;
	}

	.uni-list-cell {
		flex: 1;
	}

	.uni-list-cell-db {
		flex: 1;
	}

	.picker-block {
		flex: 1;
	}

	.icon-arrow {
		position: absolute;
		right: 0;
		top: 16px;
		width: 12rpx;
		height: 20rpx;
		z-index: 10;
	}

	.icon-upload {
		width: 19px;
		height: 19px;
		top: -18rpx;
	}

	.upload {
		padding: 0;
		height: 136rpx;
		padding: 48rpx;
		margin-bottom: 0;
		align-items: center;
	}

	.upload-text {
		flex: 2;
		font-size: 14px;
		color: #999;
	}

	.upload-icon {
		flex: 3;
		font-size: 14px;
		color: #333;
	}

	.bottom {
		margin-top: 48rpx;
		padding: 0 16rpx;
		justify-content: space-between;
	}

	.btn {
		flex: 1;
		height: 92rpx;
		background: $wly-primary-color;
		border-radius: 46rpx;
	}

	.btn-l {
		margin-right: 30rpx;
		border: 1px solid $wly-primary-color;
		background-color: transparent;

	}

	.btn-text {
		color: #fff;
		font-size: 34rpx;
	}

	.btn-text-l {
		color: $wly-primary-color;
	}
</style>
