<template>
	<view class="address-page">
		<address-list :page-mode="true" :hide-header="true" @close="goBack" @selectAddress="selectAddress" />
	</view>
</template>

<script>
	import addressList from '@/package1/address/addressList.vue'

	export default {
		components: {
			addressList
		},
		methods: {
			goBack() {
				uni.navigateBack()
			},
			selectAddress(item) {
				uni.setStorageSync('selectedAddress', item)
			}
		}
	}
</script>

<style scoped>
	.address-page {
		min-height: 100vh;
		background: #fff;
	}
</style>
