<template>
	<view class="container">
		<citySelect @back_city="back_city"></citySelect>
	</view>
</template>

<script>
	import citySelect from '@/components/linzq-citySelect/linzq-citySelect.vue';
	export default {
		components: {
			citySelect
		},
		data() {
			return {
				statusBarHeight:''
			}
		},
		onLoad() {
			uni.getSystemInfo({
				success: function(res) {debugger
					console.log("statusBarHeight", res.statusBarHeight)
					that.statusBarHeight += res.statusBarHeight + "px"; //这就是状态栏的高度
				},
			});
		},
		methods: {
			back_city(e) {debugger
				if (e !== 'no') {
					this.region = e.cityName 
					// this.$refs.popupRef.close();
					uni.navigateTo({
						url:"../position/position?city="+this.region
					})
					
				} else {
					// this.$refs.popupRef.close();
				}
			}
		}
	}
</script>

<style>
	.container {
		padding: 20px;
		font-size: 14px;
		line-height: 24px;
	}
</style>
