<template>
	<view class="">
		<city-select @back_city="back_city" @selectCity="selectCity"></city-select>
	</view>
</template>
<script>
	import citySelect from '../../components/linzq-citySelect/linzq-citySelect.vue'
	export default {
		data() {
			return {

			}
		},
		created(){
	
		},
		mounted(){
			
		},
		methods: {
			//选择城市
			back_city(data) {
				uni.navigateTo({
					url: "./selectHouse"
				})
				uni.setStorageSync("cityId",data.areaId)
			},
			// 选择当前定位城市
			selectCity(data) {
				console.log(data)
				uni.setStorageSync("cityId",data)
				uni.navigateTo({
					url: "./selectHouse"
				})
			}
		},
		components: {
			citySelect
		},
	}
</script>

<style>
</style>
