TraceabilityAPP/components/index/planting.vue

167 lines
3.1 KiB
Vue
Raw Normal View History

2023-10-20 18:45:15 +08:00
<template>
<view class="">
<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">
土地面积: 00
</view>
<view class="card-li">
地址: 对话方式打开就会发生的空间和
</view>
</view>
<view class="card" v-for="(item,index) in list" :key="index">
<view class="tit card-li">
<view class="">
土地1
</view>
<view class="" style="color: #00A15E;">
已种植
</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 class="" style="color: #FF9B66;">
已成熟
</view>
</view>
<view class="card-li tit" style="font-weight: normal;">
<view class="">
预计产量: 100kg
</view>
<view class="">
已出售: 500kg
</view>
</view>
</view>
<view style="height: 170rpx;">
</view>
</view>
<view class="bottom">
<view class="add-btn">
批量处理
</view>
<view class="add-btn add">
增加种植
</view>
</view>
</view>
</template>
<script setup>
import {
reactive
} from "vue"
const list = reactive([{
tit: "土地种植管理"
}, {
tit: "土地种植管理"
}, {
tit: "土地种植管理"
}, {
tit: "土地种植管理"
}, {
tit: "土地种植管理"
}, {
tit: "土地种植管理"
}, {
tit: "土地种植管理"
}, {
tit: "土地种植管理"
}, {
tit: "土地种植管理"
}, {
tit: "土地种植管理"
}, ])
</script>
<style lang="scss">
.content {
min-height: 90vh;
position: relative;
// padding: 0 20rpx;
// padding-top: 50rpx;
background-color: #EAF2EF;
.border-bgc {
height: 200rpx;
background-color: #34D190;
border-radius: 0 0 60rpx 60rpx;
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;
}
}
</style>