<template>
	<view class="container">
		<view class="express-box">
			<view class="top-text">
				<text class="top-com">{{ expressList.com }}</text>
				<text>{{ expressList.nu }}</text>
			</view>
			<view class="express-body"><uni-steps :options="expressList.data" active-color="#007AFF" :active="active" direction="column"></uni-steps></view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			id: '',
			expressList: [],
			active: 0
		};
	},
	onLoad(option) {
		this.id = option.id;
	},
	onShow() {
		this.loadData();
	},
	methods: {
		loadData() {
			express_query({
				id: this.id
			}).then(({ data }) => {
				this.expressList = data;
				console.log(this.expressList);
			});
		}
	}
};
</script>

<style lang="scss">
.container {
	padding: 40rpx;
	.express-box {
		.top-text {
			width: 100%;
			height: 60rpx;
			background: #ffffff;
			padding-left: 20rpx;
			display: flex;
			align-items: center;
			.top-com {
				margin-right: 10rpx;
			}
		}
		.express-body {
			margin-top: 20rpx;
			background: #ffffff;
			padding: 20rpx 10rpx 20rpx 0;
		}
	}
}
</style>
