2023-11-21 18:54:33 +08:00
|
|
|
|
<template>
|
2023-11-23 10:58:26 +08:00
|
|
|
|
<view class="" style="position: relative;">
|
|
|
|
|
<view class="top">
|
2023-12-13 15:57:20 +08:00
|
|
|
|
<!-- 17828474084 -->
|
2023-11-23 10:58:26 +08:00
|
|
|
|
<view class="" style="height:var(--status-bar-height) ;">
|
|
|
|
|
</view>
|
2023-12-13 15:57:20 +08:00
|
|
|
|
|
2023-11-30 17:51:39 +08:00
|
|
|
|
<view class="nav-con" style="justify-content: space-between;">
|
2024-01-23 19:52:15 +08:00
|
|
|
|
<view class="" v-if="columns.length>0"
|
2023-12-13 15:57:20 +08:00
|
|
|
|
style="padding-left: 20rpx;display: flex;color: white;" @click="show=true">
|
2024-01-23 19:52:15 +08:00
|
|
|
|
<u--image :src="u('qhtd')" width="38.55rpx" height="38.55rpx"
|
2023-12-13 15:57:20 +08:00
|
|
|
|
style="margin-right: 20rpx;"></u--image>
|
2024-01-23 19:52:15 +08:00
|
|
|
|
<!-- {{dataobj.farm_name}} -->
|
2023-12-13 15:57:20 +08:00
|
|
|
|
</view>
|
2023-12-19 18:13:16 +08:00
|
|
|
|
<view v-else></view>
|
2023-11-30 17:51:39 +08:00
|
|
|
|
|
2023-12-13 15:57:20 +08:00
|
|
|
|
<view class="" style="display: flex;align-items: center;">
|
2023-11-30 17:51:39 +08:00
|
|
|
|
<view class="nav">
|
2023-12-13 15:57:20 +08:00
|
|
|
|
<view class="" style="margin-right: 20rpx;">
|
|
|
|
|
<!-- <u-icon name="scan" @click="scanFn" color="white" :size="30"></u-icon> -->
|
|
|
|
|
<u--image :src="u('sys')" width="38.55rpx" @click="scanFn" height="38.55rpx"></u--image>
|
2023-11-30 17:51:39 +08:00
|
|
|
|
</view>
|
|
|
|
|
<view class="" style="margin-left: 20rpx;">
|
2023-12-13 15:57:20 +08:00
|
|
|
|
<!-- <u-icon name="coupon-fill" color="white" @click="showModal=true" :size="28"></u-icon> -->
|
|
|
|
|
<u--image :src="u('sbbd')" width="38.55rpx" @click="showModal=true"
|
|
|
|
|
height="38.55rpx"></u--image>
|
2023-11-30 17:51:39 +08:00
|
|
|
|
</view>
|
|
|
|
|
<view class="" style="margin-left: 20rpx;">
|
2023-12-19 18:13:16 +08:00
|
|
|
|
<!-- <u-icon name="plus-circle" color="white" @click="navto('/pages/addPlant/addPlant')"
|
2023-12-13 15:57:20 +08:00
|
|
|
|
:size="28"></u-icon> -->
|
2023-11-30 17:51:39 +08:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
|
2023-12-13 15:57:20 +08:00
|
|
|
|
<view class="" style="margin-top: -5rpx;">
|
2023-11-30 17:51:39 +08:00
|
|
|
|
<Myindex url='/pages/index/massif' />
|
|
|
|
|
</view>
|
2023-11-23 10:58:26 +08:00
|
|
|
|
</view>
|
2023-11-30 17:51:39 +08:00
|
|
|
|
</view>
|
2023-12-13 15:57:20 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
<view class="">
|
|
|
|
|
<view class="" style="height:var(--status-bar-height) ;">
|
|
|
|
|
</view>
|
2023-12-19 18:13:16 +08:00
|
|
|
|
<view class="nav-con">
|
2023-12-13 15:57:20 +08:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<view class="content" v-if="true">
|
2024-01-23 19:52:15 +08:00
|
|
|
|
<!-- 养殖基地信息 -->
|
2023-11-30 17:51:39 +08:00
|
|
|
|
<view class="">
|
2024-01-23 19:52:15 +08:00
|
|
|
|
<view class="empty-land" v-if="columns.length<=0">
|
|
|
|
|
<text>没有养殖基地信息?</text>
|
2023-12-19 18:13:16 +08:00
|
|
|
|
<text @click="navto('/pages/addPlant/addPlant')">去新增》</text>
|
2023-11-23 10:58:26 +08:00
|
|
|
|
</view>
|
2023-12-13 15:57:20 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="land-info">
|
|
|
|
|
<view class="land-area">
|
2024-01-23 19:52:15 +08:00
|
|
|
|
<view class="land-title">养殖基地规模</view>
|
2023-12-13 15:57:20 +08:00
|
|
|
|
<view class="">
|
2024-01-26 17:29:25 +08:00
|
|
|
|
{{dataobj.form_scale|| "--"}}亩
|
2023-12-13 15:57:20 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
<view class="plant-area">
|
2023-12-19 18:13:16 +08:00
|
|
|
|
<view class="land-title">养殖种类</view>
|
2023-12-13 15:57:20 +08:00
|
|
|
|
<view class="">
|
2024-01-26 17:29:25 +08:00
|
|
|
|
{{farm_type||"--"}}
|
2023-12-13 15:57:20 +08:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="live-tit" style="color: #1A1A1A;">
|
|
|
|
|
<view class="tit" style="">
|
2024-01-23 19:52:15 +08:00
|
|
|
|
养殖基地监控数据
|
2023-12-13 15:57:20 +08:00
|
|
|
|
</view>
|
|
|
|
|
<view class="" style="font-size: 24rpx;color: #ACACAC;display: flex;align-items: center;">
|
|
|
|
|
<u-icon name="clock" style="margin-right: 5rpx;"></u-icon> 刷新时间:{{getNowTimeFn()}}
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</view>
|
2024-01-23 19:52:15 +08:00
|
|
|
|
<view class="live">
|
|
|
|
|
<u--image :src="videoCover" v-if="video_url" width="100%" height="450rpx"></u--image>
|
|
|
|
|
<u--image :src="u('K')" v-else width="100%"></u--image>
|
|
|
|
|
|
|
|
|
|
<view class=""
|
2024-01-27 17:32:54 +08:00
|
|
|
|
style="width: 100%;height: 450rpx;background-color: rgba(0, 0, 0, .5);position: absolute;top: 1px;"
|
2024-01-23 19:52:15 +08:00
|
|
|
|
@click="goLive" v-if="video_url">
|
|
|
|
|
<u-icon name="play-circle" size="40" color="white" v-if="video_url"
|
|
|
|
|
style="position: absolute;top: 50%;left: 50%;transform: translate(-50%,-50%);"></u-icon>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
</view>
|
2023-11-29 18:11:21 +08:00
|
|
|
|
|
2023-11-30 17:51:39 +08:00
|
|
|
|
<view class="">
|
2023-12-13 15:57:20 +08:00
|
|
|
|
<view class="tit">
|
2023-12-19 18:13:16 +08:00
|
|
|
|
智能监测数据
|
2023-12-13 15:57:20 +08:00
|
|
|
|
</view>
|
|
|
|
|
<view class="area-check">
|
2024-01-29 18:12:35 +08:00
|
|
|
|
<view class="area-li" key="index"
|
|
|
|
|
:style="{backgroundImage:`url(${bgc('huan_jing_wen_du')})`}">
|
|
|
|
|
<view class="">
|
|
|
|
|
空气温度
|
|
|
|
|
</view>
|
|
|
|
|
<view class="standard" :class="{'red': monitorData.ambient_temperature > monitorThreshold.air_temp_max || monitorData.ambient_temperature < monitorThreshold.air_temp_min}">
|
|
|
|
|
{{ monitorData.ambient_temperature || monitorData.ambient_temperature === 0 ? monitorData.ambient_temperature + '℃':'--' }}
|
|
|
|
|
</view>
|
|
|
|
|
<view v-if="monitorData.ambient_temperature > monitorThreshold.air_temp_max" class="a-tips red">
|
|
|
|
|
↑ {{ compDatas(monitorData.ambient_temperature, monitorThreshold.air_temp_max) }}{{'℃'}}
|
|
|
|
|
</view>
|
|
|
|
|
<view v-if="monitorData.ambient_temperature < monitorThreshold.air_temp_min" class="a-tips blue">
|
|
|
|
|
↓ {{ compDatas(monitorThreshold.air_temp_min, monitorData.ambient_temperature) }}{{'℃'}}
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="area-li" key="index"
|
|
|
|
|
:style="{backgroundImage:`url(${bgc('huan_jing_shi_du')})`}">
|
|
|
|
|
<view class="">
|
|
|
|
|
空气湿度
|
|
|
|
|
</view>
|
|
|
|
|
<view class="standard" :class="{'red': monitorData.ambient_humidity > monitorThreshold.air_mois_max || monitorData.ambient_humidity < monitorThreshold.air_mois_min}">
|
|
|
|
|
{{ monitorData.ambient_humidity || monitorData.ambient_humidity === 0 ? monitorData.ambient_humidity + '%':'--' }}
|
|
|
|
|
</view>
|
|
|
|
|
<view v-if="monitorData.ambient_humidity > monitorThreshold.air_mois_max" class="a-tips red">
|
|
|
|
|
↑ {{ compDatas(monitorData.ambient_humidity, monitorThreshold.air_mois_max) }}{{'%'}}
|
|
|
|
|
</view>
|
|
|
|
|
<view v-if="monitorData.ambient_humidity < monitorThreshold.air_mois_min" class="a-tips blue">
|
|
|
|
|
↓ {{ compDatas(monitorThreshold.air_mois_min, monitorData.ambient_humidity) }}{{'%'}}
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="area-li" key="index"
|
|
|
|
|
:style="{backgroundImage:`url(${bgc('dan_qi')})`}">
|
|
|
|
|
<view class="">
|
|
|
|
|
氮气
|
|
|
|
|
</view>
|
|
|
|
|
<view class="standard" :class="{'red': monitorData.nitrogen > monitorThreshold.nitrogen_max || monitorData.nitrogen < monitorThreshold.nitrogen_min}">
|
|
|
|
|
{{ monitorData.nitrogen || monitorData.nitrogen === 0 ? monitorData.nitrogen + 'ppm':'--' }}
|
|
|
|
|
</view>
|
|
|
|
|
<view v-if="monitorData.nitrogen > monitorThreshold.nitrogen_max" class="a-tips red">
|
|
|
|
|
↑ {{ compDatas(monitorData.nitrogen, monitorThreshold.nitrogen_max) }}{{'ppm'}}
|
|
|
|
|
</view>
|
|
|
|
|
<view v-if="monitorData.nitrogen < monitorThreshold.nitrogen_min" class="a-tips blue">
|
|
|
|
|
↓ {{ compDatas(monitorThreshold.nitrogen_min, monitorData.nitrogen) }}{{'ppm'}}
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="area-li" key="index"
|
|
|
|
|
:style="{backgroundImage:`url(${bgc('jia_wan')})`}">
|
|
|
|
|
<view class="">
|
|
|
|
|
甲烷
|
|
|
|
|
</view>
|
|
|
|
|
<view class="standard" :class="{'red': monitorData.methane > monitorThreshold.methane_max || monitorData.methane < monitorThreshold.methane_min}">
|
|
|
|
|
{{ monitorData.methane || monitorData.methane === 0 ? monitorData.methane + 'ppm':'--' }}
|
|
|
|
|
</view>
|
|
|
|
|
<view v-if="monitorData.methane > monitorThreshold.methane_max" class="a-tips red">
|
|
|
|
|
↑ {{ compDatas(monitorData.methane, monitorThreshold.methane_max) }}{{'ppm'}}
|
|
|
|
|
</view>
|
|
|
|
|
<view v-if="monitorData.methane < monitorThreshold.methane_min" class="a-tips blue">
|
|
|
|
|
↓ {{ compDatas(monitorThreshold.methane_min, monitorData.methane) }}{{'ppm'}}
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="area-li" key="index"
|
|
|
|
|
:style="{backgroundImage:`url(${bgc('zao_yin')})`}">
|
|
|
|
|
<view class="">
|
|
|
|
|
噪音
|
|
|
|
|
</view>
|
|
|
|
|
<view class="standard" :class="{'red': monitorData.noise > monitorThreshold.noise_max || monitorData.noise < monitorThreshold.noise_min}">
|
|
|
|
|
{{ monitorData.noise || monitorData.noise === 0 ? monitorData.noise + 'db' : '--' }}
|
|
|
|
|
</view>
|
|
|
|
|
<view v-if="monitorData.noise > monitorThreshold.noise_max" class="a-tips red">
|
|
|
|
|
↑ {{ compDatas(monitorData.noise, monitorThreshold.noise_max) }}{{'db'}}
|
|
|
|
|
</view>
|
|
|
|
|
<view v-if="monitorData.noise < monitorThreshold.noise_min" class="a-tips blue">
|
|
|
|
|
↓ {{ compDatas(monitorThreshold.noise_min, monitorData.noise) }}{{'db'}}
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="area-li" key="index"
|
|
|
|
|
:style="{backgroundImage:`url(${bgc('fang_huo')})`}">
|
|
|
|
|
<view class="">
|
|
|
|
|
防火
|
|
|
|
|
</view>
|
|
|
|
|
<view class="standard" :class="{'red': monitorData.fireproof > monitorThreshold.fireproof_max || monitorData.fireproof < monitorThreshold.fireproof_min}">
|
|
|
|
|
{{ monitorData.fireproof || monitorData.fireproof === 0 ? monitorData.fireproof : '--' }}
|
|
|
|
|
</view>
|
|
|
|
|
<view v-if="monitorData.fireproof > monitorThreshold.fireproof_max" class="a-tips red">
|
|
|
|
|
↑ {{ compDatas(monitorData.fireproof, monitorThreshold.fireproof_max) }}
|
|
|
|
|
</view>
|
|
|
|
|
<view v-if="monitorData.fireproof < monitorThreshold.fireproof_min" class="a-tips blue">
|
|
|
|
|
↓ {{ compDatas(monitorThreshold.fireproof_min, monitorData.fireproof) }}
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2023-12-13 15:57:20 +08:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2023-11-30 17:51:39 +08:00
|
|
|
|
|
2023-12-13 15:57:20 +08:00
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
<u-loading-page :loading="showLoading"></u-loading-page>
|
2023-11-23 10:58:26 +08:00
|
|
|
|
|
2024-01-26 17:29:25 +08:00
|
|
|
|
<u-action-sheet :show="show" keyName="name" closeOnClickOverlay :actions="houseList" title="请选择"
|
2023-12-13 15:57:20 +08:00
|
|
|
|
@close="show = false" @select="confirm">
|
|
|
|
|
</u-action-sheet>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="empty" v-else>
|
2023-12-19 18:13:16 +08:00
|
|
|
|
<view class="addPlant">
|
2023-12-13 15:57:20 +08:00
|
|
|
|
<view class="">
|
2024-01-23 19:52:15 +08:00
|
|
|
|
你还没有养殖基地信息
|
2023-12-13 15:57:20 +08:00
|
|
|
|
</view>
|
2023-12-19 18:13:16 +08:00
|
|
|
|
<view class="addBtn" @click="navto('/pages/addPlant/addPlant')">
|
2023-12-13 15:57:20 +08:00
|
|
|
|
去添加
|
2023-11-27 18:23:17 +08:00
|
|
|
|
</view>
|
2023-11-30 17:51:39 +08:00
|
|
|
|
</view>
|
|
|
|
|
|
2023-12-13 15:57:20 +08:00
|
|
|
|
</view>
|
|
|
|
|
<!-- 组件 -->
|
|
|
|
|
|
|
|
|
|
<view class="Modal">
|
|
|
|
|
<u-popup :show="showModal" mode="center" @close="closeModal" :round="10">
|
|
|
|
|
<view class="Modal">
|
|
|
|
|
<text> 产品编号:</text>
|
|
|
|
|
<uni-data-select v-model="equipmentId" style="width: 300rpx;margin-left: 30rpx;"
|
|
|
|
|
:localdata="range"></uni-data-select>
|
|
|
|
|
</view>
|
2023-11-30 17:51:39 +08:00
|
|
|
|
|
2023-12-13 15:57:20 +08:00
|
|
|
|
<view class="Modal-btn">
|
|
|
|
|
<view class="Modal-btna" @click="closeModal">
|
|
|
|
|
取消
|
2023-11-23 10:58:26 +08:00
|
|
|
|
</view>
|
2023-12-13 15:57:20 +08:00
|
|
|
|
<view class="Modal-btnb" @click="bindFn">
|
|
|
|
|
确定
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</u-popup>
|
2023-11-27 18:23:17 +08:00
|
|
|
|
|
2023-11-30 17:51:39 +08:00
|
|
|
|
</view>
|
2023-12-13 15:57:20 +08:00
|
|
|
|
<u-picker keyName="name" :show="showPicker1" @cancel="showPicker1=false" @confirm="confirm1"
|
|
|
|
|
:columns="columns2"></u-picker>
|
2024-01-31 11:16:49 +08:00
|
|
|
|
<MyTabbar></MyTabbar>
|
2023-12-13 15:57:20 +08:00
|
|
|
|
</view>
|
2023-11-21 18:54:33 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
|
import {
|
2023-11-23 10:58:26 +08:00
|
|
|
|
reactive,
|
2024-01-26 17:29:25 +08:00
|
|
|
|
ref,
|
|
|
|
|
computed
|
2023-11-23 10:58:26 +08:00
|
|
|
|
} from 'vue';
|
2024-01-31 11:16:49 +08:00
|
|
|
|
import MyTabbar from "@/components/customTabbar/tabbar.vue"
|
2023-11-23 10:58:26 +08:00
|
|
|
|
import {
|
2023-11-28 18:08:39 +08:00
|
|
|
|
onLoad,
|
|
|
|
|
onShow
|
2023-11-23 10:58:26 +08:00
|
|
|
|
} from "@dcloudio/uni-app"
|
2023-11-30 17:51:39 +08:00
|
|
|
|
import Myindex from '@/components/return/index.vue';
|
2023-11-25 16:18:54 +08:00
|
|
|
|
import {
|
2023-11-27 18:23:17 +08:00
|
|
|
|
bindproduct,
|
2023-11-25 16:18:54 +08:00
|
|
|
|
lindexist,
|
2023-11-27 18:23:17 +08:00
|
|
|
|
landlist,
|
2023-11-29 18:11:21 +08:00
|
|
|
|
plantlist,
|
2023-11-27 18:23:17 +08:00
|
|
|
|
landproduct
|
2023-11-28 18:08:39 +08:00
|
|
|
|
} from '@/api/api.js'
|
2024-01-26 17:29:25 +08:00
|
|
|
|
import {farmLists, fenceHouseData} from "@/api/index.js"
|
2024-01-23 19:52:15 +08:00
|
|
|
|
import {farmTypeLists} from "@/api/dict.js"
|
2023-11-30 17:51:39 +08:00
|
|
|
|
import store from "@/store/index.js"
|
2023-11-29 18:11:21 +08:00
|
|
|
|
const showPicker = ref(false)
|
|
|
|
|
const showPicker1 = ref(false)
|
2023-11-27 18:23:17 +08:00
|
|
|
|
const showModal = ref(false)
|
2024-01-26 17:29:25 +08:00
|
|
|
|
|
|
|
|
|
|
2023-11-23 10:58:26 +08:00
|
|
|
|
|
2023-11-29 18:11:21 +08:00
|
|
|
|
const columns2 = reactive([])
|
2023-11-28 18:08:39 +08:00
|
|
|
|
const range = reactive([])
|
2024-01-29 18:12:35 +08:00
|
|
|
|
|
|
|
|
|
const compDatas = (a, b)=>{
|
|
|
|
|
try{
|
|
|
|
|
let c = a - b;
|
|
|
|
|
return c.toFixed(2)
|
|
|
|
|
}catch(e){
|
|
|
|
|
return '0.00'
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-01-27 17:32:54 +08:00
|
|
|
|
|
|
|
|
|
const userInfo = ref({});
|
2023-11-30 17:51:39 +08:00
|
|
|
|
onLoad(() => {
|
2024-01-31 14:30:32 +08:00
|
|
|
|
uni.hideTabBar();
|
2023-11-30 17:51:39 +08:00
|
|
|
|
// console.log(store.state.userInfo)
|
|
|
|
|
if (!store.state.userInfo) {
|
|
|
|
|
uni.redirectTo({
|
|
|
|
|
url: '/pages/Login/login'
|
|
|
|
|
})
|
2024-01-27 17:32:54 +08:00
|
|
|
|
}else {
|
|
|
|
|
userInfo.value = store.state.userInfo;
|
|
|
|
|
}
|
2023-11-30 17:51:39 +08:00
|
|
|
|
})
|
2024-01-26 17:29:25 +08:00
|
|
|
|
const dataobj = ref({})
|
2023-11-27 18:23:17 +08:00
|
|
|
|
const tdId = ref('')
|
2023-11-29 18:11:21 +08:00
|
|
|
|
const palntId = ref('')
|
2023-11-23 10:58:26 +08:00
|
|
|
|
// 绑定设备
|
|
|
|
|
const equipmentId = ref("")
|
|
|
|
|
const bindFn = () => {
|
2023-11-27 18:23:17 +08:00
|
|
|
|
biproduct()
|
2023-11-23 10:58:26 +08:00
|
|
|
|
showModal.value = false
|
|
|
|
|
}
|
|
|
|
|
// 扫码
|
|
|
|
|
const scanFn = () => {
|
|
|
|
|
uni.scanCode({
|
2023-11-21 18:54:33 +08:00
|
|
|
|
success: function(res) {
|
2023-11-28 18:08:39 +08:00
|
|
|
|
// console.log('条码类型:' + res.scanType);
|
|
|
|
|
console.log('条码内容:' + res.result.split('='));
|
|
|
|
|
uni.navigateTo({
|
2023-11-29 18:11:21 +08:00
|
|
|
|
url: '/pages/landDetail/results?id=' + res.result.split('=')[1]
|
2023-11-28 18:08:39 +08:00
|
|
|
|
})
|
2023-11-21 18:54:33 +08:00
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
2023-12-09 17:07:42 +08:00
|
|
|
|
|
2024-01-23 19:52:15 +08:00
|
|
|
|
const goLive = () => {
|
|
|
|
|
let system = uni.getSystemInfoSync().platform;
|
2024-01-27 17:32:54 +08:00
|
|
|
|
userInfo.value.master_phone = "lihai_lot_land_1"
|
|
|
|
|
userInfo.value.device_id = "6"
|
2024-01-23 19:52:15 +08:00
|
|
|
|
uni.navigateTo({
|
2024-01-27 17:32:54 +08:00
|
|
|
|
url: `/pages/live/${system == 'ios'?'liveIos':'live'}?url=${video_url.value }&user=${userInfo.value.master_phone}&device=${userInfo.value.device_id}`
|
2024-01-23 19:52:15 +08:00
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
const video_url = ref()
|
2024-01-29 18:12:35 +08:00
|
|
|
|
const videoCover = ref('')
|
2024-01-23 19:52:15 +08:00
|
|
|
|
|
2023-11-23 10:58:26 +08:00
|
|
|
|
const show = ref(false)
|
|
|
|
|
const showLoading = ref(false)
|
2023-11-25 16:18:54 +08:00
|
|
|
|
const columns = reactive([]);
|
2024-01-26 17:29:25 +08:00
|
|
|
|
const houseList = reactive([]);
|
|
|
|
|
const houseInfo = ref({});
|
2023-11-28 18:08:39 +08:00
|
|
|
|
onShow(() => {
|
2023-11-27 18:23:17 +08:00
|
|
|
|
getlist2()
|
2024-01-31 14:30:32 +08:00
|
|
|
|
initFarmLists();
|
2023-11-25 16:18:54 +08:00
|
|
|
|
})
|
2023-12-13 15:57:20 +08:00
|
|
|
|
const bgc = (icon) => {
|
|
|
|
|
return `/static/main/index/${icon}.png`
|
|
|
|
|
}
|
2023-11-27 18:23:17 +08:00
|
|
|
|
|
2023-11-25 16:18:54 +08:00
|
|
|
|
|
2023-11-27 18:23:17 +08:00
|
|
|
|
const getlist2 = () => {
|
|
|
|
|
landproduct().then((res) => {
|
|
|
|
|
if (res.code == 1) {
|
2023-11-28 18:08:39 +08:00
|
|
|
|
range.splice(0, range.length, ...res.data.map((step, index) => {
|
|
|
|
|
return {
|
|
|
|
|
text: step.name,
|
|
|
|
|
value: step.product_id,
|
|
|
|
|
};
|
|
|
|
|
}));
|
|
|
|
|
|
|
|
|
|
// console.log(res)
|
2023-11-27 18:23:17 +08:00
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2023-11-29 18:11:21 +08:00
|
|
|
|
|
2023-11-27 18:23:17 +08:00
|
|
|
|
}
|
2023-11-29 18:11:21 +08:00
|
|
|
|
const getlist3 = (id) => {
|
|
|
|
|
plantlist({
|
|
|
|
|
land_id: id
|
|
|
|
|
}).then((res) => {
|
2023-11-30 17:51:39 +08:00
|
|
|
|
|
2023-11-29 18:11:21 +08:00
|
|
|
|
if (res.code == 1) {
|
2023-11-30 17:51:39 +08:00
|
|
|
|
columns2.splice(0)
|
2023-11-29 18:11:21 +08:00
|
|
|
|
let arr1 = []
|
|
|
|
|
arr1.splice(0, arr1.length, ...res.data.map((step, index) => {
|
|
|
|
|
return {
|
|
|
|
|
name: step.kind + '-' + step.id,
|
|
|
|
|
id: step.id,
|
2023-12-07 09:34:25 +08:00
|
|
|
|
status: step.status
|
2023-11-29 18:11:21 +08:00
|
|
|
|
};
|
|
|
|
|
}));
|
|
|
|
|
columns2.push(arr1)
|
2023-12-07 09:34:25 +08:00
|
|
|
|
|
2023-11-29 18:11:21 +08:00
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
2023-11-28 18:08:39 +08:00
|
|
|
|
//关闭弹窗
|
|
|
|
|
const closeModal = () => {
|
|
|
|
|
showModal.value = false
|
|
|
|
|
equipmentId.value = ''
|
|
|
|
|
}
|
|
|
|
|
|
2024-01-23 19:52:15 +08:00
|
|
|
|
const farm_lists = ref([]);
|
2024-01-26 17:29:25 +08:00
|
|
|
|
const house_lists = ref([]);
|
2024-01-23 19:52:15 +08:00
|
|
|
|
const farm_types_lists = ref([]);
|
2024-01-31 14:30:32 +08:00
|
|
|
|
|
2024-01-23 19:52:15 +08:00
|
|
|
|
const initFarmLists = ()=>{
|
|
|
|
|
farmTypeLists().then(res=>{
|
|
|
|
|
farm_types_lists.value = res.data
|
|
|
|
|
})
|
|
|
|
|
farmLists().then(res=>{
|
|
|
|
|
farm_lists.value = res.data;
|
|
|
|
|
columns.splice(0, columns.length, ...res.data.map((step, index) => {
|
|
|
|
|
return {
|
|
|
|
|
name: step.farm_name,
|
|
|
|
|
id: step.id,
|
|
|
|
|
};
|
|
|
|
|
}));
|
|
|
|
|
if(res.data.length>0) dataobj.value = res.data[0];
|
|
|
|
|
else dataobj.value = {};
|
2024-01-26 17:29:25 +08:00
|
|
|
|
store.commit('setFarm', dataobj.value);
|
|
|
|
|
}).catch(err=>{
|
|
|
|
|
console.log(err);
|
|
|
|
|
})
|
|
|
|
|
fenceHouseData().then(res=>{
|
|
|
|
|
house_lists.value = res.data;
|
|
|
|
|
houseList.splice(0, houseList.length, ...res.data.map((step, index) => {
|
|
|
|
|
return {
|
|
|
|
|
name: step.animal_name,
|
|
|
|
|
id: step.id,
|
|
|
|
|
};
|
|
|
|
|
}));
|
2024-01-31 14:30:32 +08:00
|
|
|
|
if(houseInfo.value.id) return ; //如果已经选择过将不再重新选择
|
2024-01-29 18:12:35 +08:00
|
|
|
|
if(res.data.length>0) houseInfo.value = res.data[1];
|
2024-01-26 17:29:25 +08:00
|
|
|
|
else houseInfo.value = {};
|
|
|
|
|
store.commit('setHouse', houseInfo.value);
|
2024-01-23 19:52:15 +08:00
|
|
|
|
getlist();
|
|
|
|
|
}).catch(err=>{
|
|
|
|
|
console.log(err);
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
2024-01-26 17:29:25 +08:00
|
|
|
|
const farm_type = computed(()=>{
|
|
|
|
|
return farm_types_lists.value.find(item=>item.value==dataobj.value.farm_type)?.name || ''
|
|
|
|
|
})
|
|
|
|
|
|
2024-01-27 17:32:54 +08:00
|
|
|
|
// 监测数据
|
2024-01-29 18:12:35 +08:00
|
|
|
|
const monitorData = ref({});
|
|
|
|
|
// 数据阈值
|
|
|
|
|
const monitorThreshold = ref({});
|
2024-01-27 17:32:54 +08:00
|
|
|
|
|
2024-01-23 19:52:15 +08:00
|
|
|
|
//列表获取
|
|
|
|
|
const getlist = () => {
|
2024-01-27 17:32:54 +08:00
|
|
|
|
lindexist({
|
|
|
|
|
fence_house_id: houseInfo.value.id
|
|
|
|
|
}).then(res=>{
|
|
|
|
|
video_url.value = "http://60.204.152.17:8888/live/xumu_user1.live.mp4"
|
2024-01-29 18:12:35 +08:00
|
|
|
|
monitorData.value = res.data.monitor?.datas||{};
|
|
|
|
|
monitorThreshold.value = res.data.monitor?.threshold||{};
|
2024-01-27 17:32:54 +08:00
|
|
|
|
})
|
2024-01-23 19:52:15 +08:00
|
|
|
|
}
|
2023-11-25 16:18:54 +08:00
|
|
|
|
|
2023-11-28 18:08:39 +08:00
|
|
|
|
//绑定产品
|
2023-11-27 18:23:17 +08:00
|
|
|
|
const biproduct = () => {
|
2023-11-30 17:51:39 +08:00
|
|
|
|
if (equipmentId.value) {
|
|
|
|
|
bindproduct({
|
|
|
|
|
land_id: dataobj.id,
|
|
|
|
|
product_id: equipmentId.value
|
|
|
|
|
}).then((res) => {
|
|
|
|
|
if (res.code == 1) {
|
|
|
|
|
uni.$u.toast(res.msg);
|
|
|
|
|
// this.dataobj=res.data
|
|
|
|
|
equipmentId.value = ''
|
|
|
|
|
}
|
|
|
|
|
console.log(res)
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
uni.$u.toast('请选择产品编号');
|
|
|
|
|
}
|
|
|
|
|
|
2023-11-25 16:18:54 +08:00
|
|
|
|
}
|
2023-11-29 18:11:21 +08:00
|
|
|
|
const confirm2 = (e) => {
|
|
|
|
|
showPicker.value = false
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: e.value[0].route + '?id=' + palntId.value
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
const confirm1 = (e) => {
|
|
|
|
|
palntId.value = e.value[0].id
|
|
|
|
|
showPicker1.value = false
|
2023-12-07 09:34:25 +08:00
|
|
|
|
if (e.value[0].status == 2) {
|
|
|
|
|
uni.$u.toast('该土地已经收获,不能进行操作');
|
|
|
|
|
} else {
|
|
|
|
|
showPicker.value = true
|
|
|
|
|
}
|
|
|
|
|
|
2023-11-29 18:11:21 +08:00
|
|
|
|
}
|
2023-11-23 10:58:26 +08:00
|
|
|
|
const confirm = (e) => {
|
2023-11-27 18:23:17 +08:00
|
|
|
|
// console.log(e)
|
2024-01-23 19:52:15 +08:00
|
|
|
|
tdId.value = e.id;
|
2024-01-26 17:29:25 +08:00
|
|
|
|
houseInfo.value = house_lists.value.find(item=>item.id==e.id);
|
|
|
|
|
store.commit('setHouse', houseInfo.value);
|
2023-11-23 10:58:26 +08:00
|
|
|
|
show.value = false
|
|
|
|
|
showLoading.value = true
|
2024-01-27 17:32:54 +08:00
|
|
|
|
getlist();
|
2023-11-23 10:58:26 +08:00
|
|
|
|
setTimeout(() => {
|
|
|
|
|
showLoading.value = false
|
|
|
|
|
}, 1000)
|
|
|
|
|
}
|
|
|
|
|
const getNowTimeFn = () => {
|
|
|
|
|
const now = new Date();
|
|
|
|
|
const hour = now.getHours();
|
|
|
|
|
const minute = now.getMinutes();
|
|
|
|
|
const formattedHour = hour < 10 ? '0' + hour : hour;
|
|
|
|
|
const formattedMinute = minute < 10 ? '0' + minute : minute;
|
|
|
|
|
const currentTime = formattedHour + ':' + formattedMinute;
|
|
|
|
|
return currentTime
|
|
|
|
|
}
|
2023-11-29 18:11:21 +08:00
|
|
|
|
|
2023-11-25 16:18:54 +08:00
|
|
|
|
const navgo = () => {
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: '/pages/landDetail/index?id=' + dataobj.id
|
|
|
|
|
})
|
|
|
|
|
}
|
2023-12-09 17:07:42 +08:00
|
|
|
|
const palnt = (id) => {
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: '/pages/husbandryForm/sow?id=' + id
|
|
|
|
|
})
|
|
|
|
|
}
|
2023-11-23 10:58:26 +08:00
|
|
|
|
const navto = (url) => {
|
2023-11-21 18:54:33 +08:00
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url
|
|
|
|
|
})
|
|
|
|
|
}
|
2023-11-23 10:58:26 +08:00
|
|
|
|
getNowTimeFn()
|
2023-12-13 15:57:20 +08:00
|
|
|
|
const u = (name) => {
|
|
|
|
|
return `/static/main/index/${name}.png`
|
|
|
|
|
}
|
2023-11-21 18:54:33 +08:00
|
|
|
|
</script>
|
2023-11-29 18:11:21 +08:00
|
|
|
|
<style lang="scss">
|
2023-11-27 18:23:17 +08:00
|
|
|
|
page {
|
|
|
|
|
background-color: $theme-bg-color;
|
|
|
|
|
}
|
|
|
|
|
|
2023-11-23 10:58:26 +08:00
|
|
|
|
.top {
|
2023-12-19 18:13:16 +08:00
|
|
|
|
background-color: #feb048;
|
2023-11-23 10:58:26 +08:00
|
|
|
|
position: fixed;
|
|
|
|
|
z-index: 999999;
|
|
|
|
|
width: 750rpx;
|
|
|
|
|
|
2023-11-21 18:54:33 +08:00
|
|
|
|
}
|
|
|
|
|
|
2023-11-27 18:23:17 +08:00
|
|
|
|
.coneng-detail {
|
|
|
|
|
width: 478rpx;
|
|
|
|
|
height: 341rpx;
|
|
|
|
|
background: #FFFFFF;
|
|
|
|
|
border-radius: 6px 6px 6px 6px;
|
|
|
|
|
opacity: 1;
|
|
|
|
|
font-size: 25rpx;
|
|
|
|
|
font-family: PingFang SC, PingFang SC;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
color: #737373;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
text-align: center;
|
|
|
|
|
margin: 70rpx auto;
|
|
|
|
|
|
|
|
|
|
image {
|
|
|
|
|
width: 280rpx;
|
|
|
|
|
height: 142rpx;
|
|
|
|
|
margin-bottom: 20rpx;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2023-11-29 18:11:21 +08:00
|
|
|
|
.add-thing {
|
|
|
|
|
width: 266.36rpx;
|
|
|
|
|
height: 66.59rpx;
|
|
|
|
|
border-radius: 42.06rpx 42.06rpx 42.06rpx 42.06rpx;
|
|
|
|
|
border: 1px solid $theme-main-color;
|
|
|
|
|
margin: 20rpx auto;
|
|
|
|
|
line-height: 66rpx;
|
|
|
|
|
text-align: center;
|
|
|
|
|
color: $theme-main-color;
|
|
|
|
|
}
|
|
|
|
|
|
2023-11-27 18:23:17 +08:00
|
|
|
|
.Modal {
|
|
|
|
|
padding: 60rpx 40rpx;
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
|
|
text {
|
|
|
|
|
margin-top: 5rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.Modal-btn {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-around;
|
|
|
|
|
padding-bottom: 20rpx;
|
|
|
|
|
|
|
|
|
|
.Modal-btna {
|
|
|
|
|
width: 120rpx;
|
|
|
|
|
height: 60rpx;
|
|
|
|
|
line-height: 60rpx;
|
|
|
|
|
font-size: 25rpx;
|
|
|
|
|
background-color: #e5e0d8;
|
|
|
|
|
text-align: center;
|
|
|
|
|
border-radius: 30rpx;
|
|
|
|
|
color: #fff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.Modal-btnb {
|
|
|
|
|
width: 120rpx;
|
|
|
|
|
height: 60rpx;
|
|
|
|
|
line-height: 60rpx;
|
|
|
|
|
font-size: 25rpx;
|
2023-12-19 18:13:16 +08:00
|
|
|
|
background-color: #feb048;
|
2023-11-27 18:23:17 +08:00
|
|
|
|
text-align: center;
|
|
|
|
|
border-radius: 30rpx;
|
|
|
|
|
color: #fff;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.uni-select__selector {
|
|
|
|
|
z-index: 9999 !important;
|
|
|
|
|
}
|
|
|
|
|
|
2023-11-30 17:51:39 +08:00
|
|
|
|
.nav-con {
|
|
|
|
|
display: flex;
|
2023-12-19 18:13:16 +08:00
|
|
|
|
width: 100vw;
|
|
|
|
|
height: 44px;
|
|
|
|
|
align-items: center;
|
2023-11-30 17:51:39 +08:00
|
|
|
|
padding-top: 20rpx;
|
|
|
|
|
padding-bottom: 10rpx;
|
|
|
|
|
}
|
|
|
|
|
|
2023-11-23 10:58:26 +08:00
|
|
|
|
.nav {
|
|
|
|
|
display: flex;
|
2023-11-30 17:51:39 +08:00
|
|
|
|
padding-right: 20rpx;
|
|
|
|
|
padding-left: 10rpx;
|
|
|
|
|
|
2023-11-23 10:58:26 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.card {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
2023-11-21 18:54:33 +08:00
|
|
|
|
|
2023-11-23 10:58:26 +08:00
|
|
|
|
.changeLand {
|
|
|
|
|
width: 200rpx;
|
|
|
|
|
height: 70rpx;
|
|
|
|
|
line-height: 70rpx;
|
|
|
|
|
text-align: center;
|
|
|
|
|
border-radius: 30rpx;
|
|
|
|
|
background-color: $theme-main-color;
|
|
|
|
|
color: white;
|
2023-11-21 18:54:33 +08:00
|
|
|
|
}
|
2023-11-23 10:58:26 +08:00
|
|
|
|
}
|
2023-11-21 18:54:33 +08:00
|
|
|
|
|
2023-11-23 10:58:26 +08:00
|
|
|
|
.content {
|
2023-11-27 18:23:17 +08:00
|
|
|
|
// min-height: 92vh;
|
2023-11-23 10:58:26 +08:00
|
|
|
|
padding: 0 30rpx;
|
|
|
|
|
padding-top: 20rpx;
|
|
|
|
|
box-sizing: border-box;
|
2023-12-13 15:57:20 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// .land.land-info
|
|
|
|
|
.land-info {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
margin-bottom: 20rpx;
|
|
|
|
|
|
|
|
|
|
.land-area {
|
|
|
|
|
width: 340rpx;
|
|
|
|
|
height: 120rpx;
|
|
|
|
|
// background-color: red;
|
|
|
|
|
background-image: url('/static/main/index/tdmj.png');
|
|
|
|
|
background-size: 100% 100%;
|
2023-12-19 18:13:16 +08:00
|
|
|
|
color: #de8f20;
|
2023-12-13 15:57:20 +08:00
|
|
|
|
padding-top: 20rpx;
|
2023-12-14 11:27:14 +08:00
|
|
|
|
box-shadow: 1rpx 1rpx 10rpx 1rpx rgba(0, 0, 0, 0.1);
|
2023-12-19 18:13:16 +08:00
|
|
|
|
padding-left: 30rpx;
|
|
|
|
|
box-sizing: border-box;
|
2023-12-13 15:57:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.plant-area {
|
|
|
|
|
width: 340rpx;
|
|
|
|
|
height: 120rpx;
|
|
|
|
|
background-image: url('/static/main/index/zzmj.png');
|
|
|
|
|
background-size: 100% 100%;
|
2023-12-19 18:13:16 +08:00
|
|
|
|
color: #cf6143;
|
2023-12-13 15:57:20 +08:00
|
|
|
|
padding-top: 20rpx;
|
2023-12-14 11:27:14 +08:00
|
|
|
|
box-shadow: 1rpx 1rpx 10rpx 1rpx rgba(0, 0, 0, 0.1);
|
2023-12-19 18:13:16 +08:00
|
|
|
|
padding-left: 30rpx;
|
|
|
|
|
box-sizing: border-box;
|
2023-12-13 15:57:20 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.live-tit {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.live {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 447rpx;
|
|
|
|
|
margin-bottom: 20rpx;
|
|
|
|
|
// background-color: red;
|
2024-01-27 17:32:54 +08:00
|
|
|
|
position: relative;
|
2023-12-13 15:57:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2023-11-23 10:58:26 +08:00
|
|
|
|
}
|
2023-11-21 18:54:33 +08:00
|
|
|
|
|
2023-12-13 15:57:20 +08:00
|
|
|
|
|
|
|
|
|
.area-check {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
|
|
|
|
.area-li {
|
|
|
|
|
width: 335rpx;
|
|
|
|
|
height: 200rpx;
|
|
|
|
|
border-radius: 10rpx;
|
|
|
|
|
background-size: 100% 100%;
|
|
|
|
|
margin-bottom: 20rpx;
|
2024-01-29 18:12:35 +08:00
|
|
|
|
padding: 30rpx;
|
|
|
|
|
padding-top: 45rpx;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.standard{
|
|
|
|
|
color: #43d295;
|
|
|
|
|
}
|
|
|
|
|
.red{
|
|
|
|
|
color: #f65b5b;
|
|
|
|
|
}
|
|
|
|
|
.blue{
|
|
|
|
|
color: #52bbf3;
|
|
|
|
|
}
|
|
|
|
|
.a-tips{
|
|
|
|
|
font-size: 22rpx;
|
|
|
|
|
}
|
2023-12-13 15:57:20 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.tit {
|
|
|
|
|
position: relative;
|
|
|
|
|
padding-left: 20rpx;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
margin-bottom: 20rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.tit::before {
|
|
|
|
|
content: "";
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 50%;
|
|
|
|
|
transform: translateY(-50%);
|
|
|
|
|
left: 0;
|
|
|
|
|
width: 3px;
|
|
|
|
|
/* 左边框的宽度 */
|
|
|
|
|
height: 30rpx;
|
2023-12-19 18:13:16 +08:00
|
|
|
|
background-color: #FFB049;
|
2023-12-13 15:57:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// old
|
2023-11-23 10:58:26 +08:00
|
|
|
|
.soil-monitor {
|
|
|
|
|
margin-top: 40rpx;
|
2023-11-21 18:54:33 +08:00
|
|
|
|
|
2023-11-23 10:58:26 +08:00
|
|
|
|
.head {
|
2023-11-21 18:54:33 +08:00
|
|
|
|
|
2023-12-13 15:57:20 +08:00
|
|
|
|
// .tit {
|
|
|
|
|
// font-size: 33.29rpx;
|
|
|
|
|
// color: black;
|
|
|
|
|
// }
|
2023-11-23 10:58:26 +08:00
|
|
|
|
|
|
|
|
|
.flushed-time {
|
|
|
|
|
display: flex;
|
|
|
|
|
font-size: 26.29rpx;
|
|
|
|
|
color: #737373;
|
|
|
|
|
margin-top: 10rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.monitor-content {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
|
|
|
|
.monitor-card {
|
|
|
|
|
margin-top: 20rpx;
|
|
|
|
|
background-color: white;
|
|
|
|
|
padding: 30rpx 20rpx;
|
|
|
|
|
border-radius: 30rpx;
|
|
|
|
|
width: 332.94rpx;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
height: 212.03rpx;
|
|
|
|
|
|
|
|
|
|
.name {
|
|
|
|
|
font-size: 29.79rpx;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.num {
|
|
|
|
|
margin-top: 30rpx;
|
|
|
|
|
color: $theme-main-color;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.video {
|
|
|
|
|
margin-top: 20rpx;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 300rpx;
|
|
|
|
|
}
|
2023-11-21 18:54:33 +08:00
|
|
|
|
|
2023-11-23 10:58:26 +08:00
|
|
|
|
.empty {
|
|
|
|
|
height: 100vh;
|
|
|
|
|
background-color: $theme-bg-color;
|
|
|
|
|
position: relative;
|
|
|
|
|
|
2023-12-19 18:13:16 +08:00
|
|
|
|
.addPlant {
|
2023-11-23 10:58:26 +08:00
|
|
|
|
width: auto;
|
|
|
|
|
height: 100rpx;
|
|
|
|
|
color: grey;
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 50%;
|
|
|
|
|
left: 50%;
|
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
|
|
|
|
|
|
.addBtn {
|
|
|
|
|
margin-top: 20rpx;
|
|
|
|
|
width: 250rpx;
|
|
|
|
|
height: 70rpx;
|
|
|
|
|
border: 1px solid $theme-main-color;
|
|
|
|
|
line-height: 70rpx;
|
|
|
|
|
border-radius: 50rpx;
|
|
|
|
|
text-align: center;
|
2023-11-21 18:54:33 +08:00
|
|
|
|
}
|
2023-11-23 10:58:26 +08:00
|
|
|
|
|
2023-11-21 18:54:33 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2023-12-13 15:57:20 +08:00
|
|
|
|
|
|
|
|
|
.empty-land {
|
|
|
|
|
width: 690rpx;
|
|
|
|
|
height: 135rpx;
|
2023-12-19 18:13:16 +08:00
|
|
|
|
color: #cf5042;
|
2023-12-13 15:57:20 +08:00
|
|
|
|
text-align: center;
|
|
|
|
|
background-image: url('../../static/main/index/xz.png');
|
|
|
|
|
background-size: 100% 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
|
|
|
|
padding-left: 200rpx;
|
|
|
|
|
padding-right: 10rpx;
|
|
|
|
|
}
|
2024-01-29 18:12:35 +08:00
|
|
|
|
|
2023-11-21 18:54:33 +08:00
|
|
|
|
</style>
|