cultivationApp/components/index/fishing.vue

165 lines
3.4 KiB
Vue
Raw Normal View History

2023-10-20 18:45:15 +08:00
<template>
<view class="">
2023-10-23 17:57:19 +08:00
<view class="content">
<view class="border-bgc">
</view>
<view class="" style="height: 30rpx;">
</view>
<view class="card">
<view class="card-li">
2023-10-25 19:55:18 +08:00
农户名称: {{userInfo.name}}
2023-10-23 17:57:19 +08:00
</view>
<view class="card-li">
2023-10-27 18:38:25 +08:00
种养殖类型: 养殖户
</view>
<view class="card-li">
<!-- 养殖种类: {{userInfo.}} -->
2023-10-23 17:57:19 +08:00
</view>
<view class="card-li">
2023-10-26 19:02:26 +08:00
土地面积: {{userInfo.total_land_area}}
2023-10-23 17:57:19 +08:00
</view>
<view class="card-li">
2023-10-26 19:02:26 +08:00
地址: {{userInfo.area_name}}{{userInfo.street_name}}{{userInfo.village_name}}{{userInfo.brigade_name}}
2023-10-23 17:57:19 +08:00
</view>
</view>
2023-10-26 19:02:26 +08:00
<view class="card" v-for="(item,index) in userInfo.pond_detail" :key="index"
@click="navgoFn(item.is_culture,item.pond_id)">
2023-10-23 17:57:19 +08:00
<view class="tit card-li">
<view class="">
2023-10-26 19:02:26 +08:00
{{item.pond_notes}}
2023-10-23 17:57:19 +08:00
</view>
2023-10-26 19:02:26 +08:00
<view class="" style="color: #00A15E;" v-if="item.is_culture">
2023-10-23 17:57:19 +08:00
已养殖
</view>
2023-10-26 19:02:26 +08:00
<view class="" style="color: #00A15E;" v-else>
2023-10-23 17:57:19 +08:00
未养殖
</view>
</view>
<view class="card-li">
<view class="">
2023-10-26 19:02:26 +08:00
面积: {{item.pond_area}}
2023-10-23 17:57:19 +08:00
</view>
</view>
2023-10-26 19:02:26 +08:00
<view class="card-li" v-if="item.is_culture">
<view class="">
养殖品种: {{item.pond_area}}
2023-10-23 17:57:19 +08:00
</view>
</view>
2023-10-26 19:02:26 +08:00
<view class="card-li" v-if="item.is_culture">
2023-10-23 17:57:19 +08:00
<view class="">
2023-10-26 19:02:26 +08:00
养殖数量: {{item.total_num}}
2023-10-23 17:57:19 +08:00
</view>
</view>
2023-10-26 19:02:26 +08:00
2023-10-23 17:57:19 +08:00
</view>
<view style="height: 170rpx;">
</view>
</view>
<view class="bottom">
<view class="add-btn" @click="navgo('/pages/growRecord/index')">
批量处理
</view>
2023-10-26 19:02:26 +08:00
<!-- <view class="add-btn add" @click="navgo('/pages/InformationAdd/index')">
2023-10-23 17:57:19 +08:00
增加种植
2023-10-26 19:02:26 +08:00
</view> -->
2023-10-23 17:57:19 +08:00
</view>
2023-10-20 18:45:15 +08:00
</view>
</template>
2023-10-23 17:57:19 +08:00
<script setup>
import {
reactive
} from "vue"
2023-10-25 19:55:18 +08:00
const props = defineProps({
userInfo: Object
})
2023-10-26 19:02:26 +08:00
2023-10-25 19:55:18 +08:00
const userInfo = reactive(props.userInfo)
2023-10-26 19:02:26 +08:00
2023-10-23 17:57:19 +08:00
const navgo = (url) => {
uni.navigateTo({
url
})
}
2023-10-26 19:02:26 +08:00
const navgoFn = (is_cropped, pond_id) => {
if (!is_cropped) {
navgo(`/pages/aquatic/addPond?pond_id=${pond_id}`)
} else if (is_cropped) {
navgo(`/pages/aquatic/detail?pond_id=${pond_id}`)
2023-10-23 17:57:19 +08:00
}
}
2023-10-20 18:45:15 +08:00
</script>
2023-10-23 17:57:19 +08:00
<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;
}
.card {
position: relative;
width: 693.93rpx;
margin: auto;
background-color: #fff;
box-sizing: border-box;
border-radius: 21.03rpx 21.03rpx 21.03rpx 21.03rpx;
margin-bottom: 40rpx;
.card-li {
2023-10-26 19:02:26 +08:00
// margin-bottom: 17rpx;
2023-10-23 17:57:19 +08:00
}
.tit {
display: flex;
font-size: 33.29rpx;
font-weight: bold;
// background-color: red;
justify-content: space-between;
}
}
}
.bottom {
width: 750rpx;
height: 150rpx;
background-color: #EAF2EF;
position: fixed;
bottom: 0;
display: flex;
align-items: center;
justify-content: center;
.add-btn {
width: 238.32rpx;
height: 84.11rpx;
border: #34D190 1px solid;
border-radius: 42.06rpx 42.06rpx 42.06rpx 42.06rpx;
display: flex;
align-items: center;
color: #00A15E;
font-size: 33.29rpx;
font-weight: bold;
justify-content: center;
margin-right: 20rpx;
}
.add {
background-color: #00A15E;
color: white;
}
}
2023-10-20 18:45:15 +08:00
</style>