cultivationApp/pages/growRecord/index.vue

289 lines
5.5 KiB
Vue
Raw Normal View History

2023-10-20 18:45:15 +08:00
<template>
<view class="cont">
2023-10-26 19:02:26 +08:00
<!-- <view class="card">
2023-10-20 18:45:15 +08:00
<view class="tit">
<view class="">
1号土地
</view>
<view class="">
溯源码: 12302
</view>
</view>
<view class="card-li">
<view class="">
当前种植: 土豆
</view>
<view class="">
种植品牌: 的划分等级
</view>
</view>
<view class="card-li">
<view class="">
土地面积: 20
</view>
<view class="">
种子品牌: 的划分等级
</view>
</view>
<view class="card-li">
<view class="">
播种时间: 2020.12.01
</view>
</view>
2023-10-26 19:02:26 +08:00
</view> -->
<landInfo :land_id='land_id'></landInfo>
2023-10-21 18:02:06 +08:00
2023-10-20 18:45:15 +08:00
<view class="operate">
<view class="tit">
操作选择
</view>
<view class="card">
2023-10-21 18:02:06 +08:00
<view class="operate-li" @click="showPop=true">
2023-10-20 18:45:15 +08:00
胶水
</view>
2023-10-23 17:57:19 +08:00
<view class="operate-li" @tap="navgo('')">
喂食
2023-10-20 18:45:15 +08:00
</view>
2023-10-23 17:57:19 +08:00
<view class="operate-li" @tap="navgo('/pages/feedIng/vaccineInfo')">
注射疫苗
2023-10-20 18:45:15 +08:00
</view>
<view class="operate-li">
胶水dassdd
</view>
<view class="operate-li">
胶水
</view>
<view class="operate-li">
胶水
</view>
</view>
</view>
2023-10-21 18:02:06 +08:00
<view class="fertilize">
<view class="card">
<view class="fertilize-tit">
<view class="">
施肥
</view>
<view class="fertilize-tit-r">
2023-10-23 17:57:19 +08:00
<view class="" style="color: red;" @tap="showModal=true">
2023-10-21 18:02:06 +08:00
删除
</view>
<view style="margin-left: 40rpx;color: #00A15E;">
编辑
</view>
</view>
2023-10-20 18:45:15 +08:00
2023-10-21 18:02:06 +08:00
</view>
<view class="fertilize-li">
<view class="">
肥料类型: 地生上的飞机
</view>
<view class="">
肥料品牌: 地生上的
</view>
</view>
<view class="fertilize-li">
<view class="">
兑水浓度: 地生上的飞机
</view>
<view class="">
备注: 地生上的
</view>
</view>
</view>
</view>
2023-10-20 18:45:15 +08:00
</view>
2023-10-21 18:02:06 +08:00
2023-10-20 18:45:15 +08:00
<view class="ripe-btn">
完成今日操作
</view>
2023-10-21 18:02:06 +08:00
<!-- 组件 -->
<view class="">
<u-popup :show="showPop" :round="10" :closeable='true' @close="showPop=false" @open="showPop=true">
<view class="pop-content">
<view class="pop-tit">
添加肥料相关信息
</view>
<view class="">
肥料类型
</view>
<view class="pop-li">
<up-input placeholder="请输入品种" border="surround" v-model="formData.value"
@change="change"></up-input>
</view>
<view class="">
兑水浓度
</view>
<view class="pop-li">
<up-input placeholder="请输入品种" border="surround" v-model="formData.value"
@change="change"></up-input>
</view>
<view class="pop-confirm" @tap="confirm">
确认
</view>
</view>
</u-popup>
</view>
2023-10-23 17:57:19 +08:00
<!-- 组件 -->
<u-modal :show="showModal" :showCancelButton='true' :closeOnClickOverlay="true" @close="showModal=false"
content='确认删除吗?' @confirm="delFn" @cancel="showModal=false"></u-modal>
2023-10-20 18:45:15 +08:00
</template>
<script setup>
import {
ref,
reactive
} from "vue"
2023-10-26 19:02:26 +08:00
import landInfo from "@/components/plant/landInfo.vue"
import {
landCropRecordInfoAPI
} from "@/api/plant.js"
import {
onLoad
} from "@dcloudio/uni-app"
const land_id = ref(0)
onLoad((options) => {
land_id.value = options.land_id
})
2023-10-21 18:02:06 +08:00
const showPop = ref(false)
const formData = reactive({
value: ""
})
const confirm = () => {
showPop.value = false
// var key of formData {
// }
}
2023-10-23 17:57:19 +08:00
const navgo = (url) => {
uni.navigateTo({
url
})
}
const showModal = ref(false)
const delFn = () => {
showModal.value = false
uni.showToast({
title: '删除成功',
icon: 'success',
duration: 1000
})
}
2023-10-20 18:45:15 +08:00
</script>
<style lang="scss" scoped>
.cont {
padding-top: 30rpx;
background-color: #F4F4F4;
min-height: 100vh;
}
.card {
.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;
}
}
.operate {
width: 693.93rpx;
margin: auto;
.tit {
margin: 20rpx 0;
}
.card {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
.operate-li {
font-size: 29.79rpx;
padding: 0 60rpx;
background-color: #F4F4F4;
margin-bottom: 28rpx;
height: 63.08rpx;
line-height: 63rpx;
border-radius: 31.54rpx 31.54rpx 31.54rpx 31.54rpx;
}
}
}
.ripe-btn {
position: fixed;
bottom: 50rpx;
left: 50%;
transform: translateX(-50%);
width: 588.79rpx;
height: 84.11rpx;
background-color: #00A15E;
color: white;
display: flex;
justify-content: center;
align-items: center;
margin: 0 auto;
border-radius: 42.06rpx 42.06rpx 42.06rpx 42.06rpx;
background: linear-gradient(to right, #00A15E, #4CC593);
}
2023-10-21 18:02:06 +08:00
.fertilize {
.fertilize-tit {
display: flex;
// justify-self: center;
justify-content: space-between;
padding-bottom: 20rpx;
border-bottom: 1px solid #F4F4F4;
margin-bottom: 20rpx;
.fertilize-tit-r {
display: flex;
}
}
.fertilize-li {
display: flex;
justify-content: space-between;
margin-bottom: 20rpx;
}
}
.pop-content {
padding: 20rpx;
.pop-tit {
margin-bottom: 20rpx;
font-weight: bold;
}
.pop-li {
margin: 20rpx 0;
margin-bottom: 40rpx;
}
.pop-confirm {
width: 693.93rpx;
height: 84.11rpx;
background: linear-gradient(to right, #00A15E, #4CC593);
color: white;
border-radius: 42.06rpx 42.06rpx 42.06rpx 42.06rpx;
text-align: center;
line-height: 84rpx;
margin-top: 70rpx;
}
}
2023-10-20 18:45:15 +08:00
</style>