<template>
	<view class="">
		<view class="content">


		</view>


	</view>
</template>

<script setup>
	import {
		reactive
	} from "vue"
	const props = defineProps({
		userInfo: Object
	})
	// 获取位置
	const getPositionFn = () => {
		uni.getLocation({
			type: 'gcj02',
			geocode: true,
			isHighAccuracy: true,
			success: function(res) {
				uni.request({
					url: `https://restapi.amap.com/v3/geocode/regeo?output=JSON&location=${res.longitude},${res.latitude}&key=b0c21bc6b220aa882bad8ffb6bce8829&radius=1000&extensions=all`,
					success: (res) => {
						console.log(res)
					}
				})
			}
		});
	}

	const userInfo = reactive(props.userInfo)

	const navgo = (url) => {
		uni.navigateTo({
			url
		})
	}
	const navgoFn = (is_cropped, land_id) => {

		if (!is_cropped) {
			navgo(`/pages/InformationAdd/index?land_id=${land_id}`)
		} else if (is_cropped) {
			navgo(`/pages/detail/plant?land_id=${land_id}`)
		}
		if (is_cropped == 2) {
			navgo('/pages/detail/plant')
		}
	}
</script>

<style lang="scss">
	.content {
		min-height: 90vh;
		position: relative;
		// padding: 0 20rpx;
		// padding-top: 50rpx;
		background-color: #EAF2EF;
		padding: 0;

		.border-bgc {
			height: 200rpx;
			background-color: #34D190;
			border-radius: 0 0 40rpx 40rpx;
			position: absolute;
			width: 750rpx;

		}

	}
</style>