cultivationApp/components/plant/landInfo.vue

93 lines
1.8 KiB
Vue

<template>
<view class="card">
<view class="tit">
<view class="">
{{info.title}}
号土地
</view>
<!-- <view class="" style="display:flex;">
<view class="" style="margin-right: 10rpx;">溯源码: </view>
<u--image @click="perviewFn('http://ceshi-suyuan.lihaink.cn/uploads/images/20231127/2023112716443447deb3539.png')" radius='10' src="http://ceshi-suyuan.lihaink.cn/uploads/images/20231127/2023112716443447deb3539.png" width="30rpx"
height="30rpx" style="margin-top: 10rpx;"></u--image>
</view> -->
</view>
<view class="card-li">
<view class="">
当前种植: {{info.total_area-info.residual_area}}
</view>
<!-- <view class="">
种植品牌: {{info.kind}}
</view> -->
</view><view class="card-li">
<view class="">
种植品种: {{info.kind}}
</view>
</view>
<view class="card-li">
<view class="">
土地面积: {{info.total_area}}
</view>
<!-- <view class="">
种子品牌: {{}}
</view> -->
</view>
<view class="card-li">
<view class="">
<!-- 预计产量: {{}} -->
</view>
<!-- <view class="">
已出售: ???
</view> -->
</view>
<view class="card-li">
<view class="">
播种时间: {{info.create_time}}
</view>
</view>
</view>
</template>
<script setup>
import {
reactive,
watch
} from "vue";
const props = defineProps({
info: Object,
})
const perviewFn = (url) => {
uni.previewImage({
urls: [url]
})
}
</script>
<style lang="scss" scoped>
.card {
// width: 710rpx;
margin: 0 auto;
.tit {
display: flex;
justify-content: space-between;
padding-bottom: 20rpx;
border-bottom: 1px solid #EBF1EF;
}
.card-li {
margin-top: 20rpx;
display: flex;
justify-content: space-between;
}
}
</style>