<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 {

			}
		},
		mounted(){
			this.getData()
		},
		methods: {
			getData(){
			this.http.httpRequest('/admin/staff/shop_list','get',{lat:0,lng:0},true).then((res)=>{
				console.log(res)
			})
			},
			//选择城市
			back_city(data) {
				console.log(data)
				
				
				uni.navigateTo({
					url: "./selectHouse"
				})
				
			},
			// 选择当前定位城市
			selectCity(data) {
				console.log(data)
				uni.setStorageSync("cityName",data)
				uni.navigateTo({
					url: "./selectHouse"
				})
			}
		},
		components: {
			citySelect
		},
	}
</script>

<style>
</style>
