TraceabilityAPP/components/plant/landInfo.vue

161 lines
3.1 KiB
Vue
Raw Normal View History

2023-10-25 19:55:18 +08:00
<template>
2023-12-13 15:57:20 +08:00
2023-12-13 18:55:18 +08:00
<view class="" style="margin-top: 10rpx;">
<view class="" style="display: flex;align-items: center;height: 50rpx;">
<u--image src="/static/main/index/dw.png" width="25rpx" height="30rpx"
style="margin-right: 10rpx;"></u--image>
{{info.title}}
</view>
2023-12-13 15:57:20 +08:00
2023-12-13 18:55:18 +08:00
<view class="info">
<view class="info-li" style="background-image: url('/static/main/index/tdmj1.png');">
当前种植
<view class="">
{{info.kindarea|| info.total_area-info.residual_area}}
</view>
</view>
<view class="info-li" style="background-image: url('/static/main/index/tdmj1.png');">
土地面积
<view class="">
{{info.total_area}}
</view>
</view>
<view class="info-li" style="background-image: url('/static/main/index/tdfzr.png');">
当地负责人
<view class="">
{{info.master_name}}
</view>
</view>
<view class="info-li" style="background-image: url('/static/main/index/fzrdh.png');">
负责人电话
<view class="">
{{info.master_phone}}
</view>
</view>
<view class="info-li" v-if="isDetail" style="background-image: url('/static/main/index/dqzz.png');">
种植品种
<view class="">
{{info.kind}}
</view>
</view>
<view class="info-li" v-if="isDetail" style="background-image: url('/static/main/index/pin_pai.png');">
种植品牌
<view class="">
{{info.breed}}
</view>
</view>
</view>
2023-12-13 15:57:20 +08:00
</view>
2023-12-13 18:55:18 +08:00
<!-- <view class="card">
2023-10-25 19:55:18 +08:00
<view class="tit">
<view class="">
2023-11-25 16:18:54 +08:00
{{info.title}}
2023-10-25 19:55:18 +08:00
</view>
</view>
<view class="card-li">
2023-12-09 17:08:17 +08:00
2023-12-02 18:37:08 +08:00
<view class="" v-if="info.kindarea">
2023-12-09 17:08:17 +08:00
当前种植: {{info.kindarea}}
2023-12-02 18:37:08 +08:00
</view>
<view class="" v-else>
2023-11-27 18:23:17 +08:00
当前种植: {{info.total_area-info.residual_area}}
2023-10-25 19:55:18 +08:00
</view>
2023-12-13 15:57:20 +08:00
2023-11-30 17:51:39 +08:00
</view>
<view class="card-li" v-if="info.kind">
2023-12-09 17:08:17 +08:00
2023-11-27 18:23:17 +08:00
<view class="">
种植品种: {{info.kind}}
</view>
</view>
2023-12-07 09:34:25 +08:00
<view class="card-li" v-if="info.breed">
<view class="">
种植品牌: {{info.breed}}
</view>
2023-12-13 15:57:20 +08:00
2023-12-07 09:34:25 +08:00
</view>
2023-10-25 19:55:18 +08:00
<view class="card-li">
<view class="">
2023-11-25 16:18:54 +08:00
土地面积: {{info.total_area}}
2023-10-25 19:55:18 +08:00
</view>
2023-12-13 15:57:20 +08:00
2023-10-25 19:55:18 +08:00
</view>
2023-12-09 17:08:17 +08:00
2023-11-30 17:51:39 +08:00
2023-11-25 16:18:54 +08:00
<view class="card-li">
2023-10-25 19:55:18 +08:00
<view class="">
2023-11-30 17:51:39 +08:00
土地负责人: {{info.master_name}}
2023-10-25 19:55:18 +08:00
</view>
2023-11-30 17:51:39 +08:00
</view>
2023-10-25 19:55:18 +08:00
<view class="card-li">
<view class="">
2023-12-09 17:08:17 +08:00
联系方式: {{info.master_phone}}
2023-10-25 19:55:18 +08:00
</view>
2023-12-13 18:55:18 +08:00
</view> -->
2023-10-25 19:55:18 +08:00
2023-12-13 18:55:18 +08:00
<!-- </view> -->
2023-12-13 15:57:20 +08:00
2023-10-25 19:55:18 +08:00
</template>
<script setup>
import {
2023-10-26 19:02:26 +08:00
reactive,
2023-11-25 16:18:54 +08:00
watch
2023-10-28 18:28:10 +08:00
2023-10-25 19:55:18 +08:00
} from "vue";
const props = defineProps({
2023-11-25 16:18:54 +08:00
info: Object,
2023-12-13 18:55:18 +08:00
isDetail: Boolean
2023-10-25 19:55:18 +08:00
2023-10-26 19:02:26 +08:00
})
2023-11-30 17:51:39 +08:00
2023-11-27 18:23:17 +08:00
const perviewFn = (url) => {
2023-11-30 17:51:39 +08:00
2023-11-27 18:23:17 +08:00
uni.previewImage({
urls: [url]
})
}
2023-10-25 19:55:18 +08:00
</script>
<style lang="scss" scoped>
2023-12-13 18:55:18 +08:00
.info {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
.info-li {
width: 223rpx;
height: 129rpx;
border-radius: 10rpx;
background-size: 100% 100%;
padding: 20rpx;
margin-bottom: 20rpx;
}
}
2023-10-25 19:55:18 +08:00
.card {
2023-11-22 14:08:24 +08:00
// width: 710rpx;
margin: 0 auto;
2023-10-25 19:55:18 +08:00
.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;
}
}
2023-12-09 17:08:17 +08:00
</style>