mkm
/
yanzhiAPP
Template
2
0
Fork 0
yanzhiAPP/components/index/fishing.vue

194 lines
3.6 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">
农户名称: 魏鹏飞
</view>
<view class="card-li">
种养殖类型: 养殖户
</view>
<view class="card-li">
养殖种类: 鱼类
</view>
<view class="card-li">
土地面积: 00
</view>
<view class="card-li">
地址: 对话方式打开就会发生的空间和
</view>
</view>
<view class="card" v-for="(item,index) in list" :key="index" @click="navgoFn(item.type)">
<view class="tit card-li">
<view class="">
池塘1
</view>
<view class="" style="color: #00A15E;" v-if="item.type==1||item.type==2">
已养殖
</view>
<view class="" style="color: #00A15E;" v-if="item.type==0">
未养殖
</view>
</view>
<view class="card-li">
<view class="">
面积: 10
</view>
</view>
<view class="card-li tit">
<view class="" style="font-weight: normal;">
养殖品种: 10
</view>
</view>
<view class="card-li tit" style="font-weight: normal;">
<view class="">
养殖数量: 100kg
</view>
</view>
</view>
<view style="height: 170rpx;">
</view>
</view>
<view class="bottom">
<view class="add-btn" @click="navgo('/pages/growRecord/index')">
批量处理
</view>
<view class="add-btn add" @click="navgo('/pages/InformationAdd/index')">
增加种植
</view>
</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"
const list = reactive([{
tit: "土地种植管理",
type: 1,
}, {
tit: "土地种植管理",
type: 0,
}, {
tit: "土地种植管理",
type: 2,
}, {
tit: "土地种植管理",
type: 1,
}, {
tit: "土地种植管理",
type: 0,
}, {
tit: "土地种植管理",
type: 2,
}, {
tit: "土地种植管理"
}, {
tit: "土地种植管理"
}, {
tit: "土地种植管理"
}, {
tit: "土地种植管理"
}, ])
const navgo = (url) => {
uni.navigateTo({
url
})
}
const navgoFn = (type) => {
if (type == 0) {
navgo("/pages/InformationAdd/index")
}
if (type == 1) {
navgo("/pages/detail/plant")
}
if (type == 2) {
navgo('/pages/detail/plant')
}
}
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;
padding: 20rpx;
border-radius: 21.03rpx 21.03rpx 21.03rpx 21.03rpx;
margin-bottom: 40rpx;
.card-li {
margin-bottom: 17rpx;
}
.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>