wx-program
sunmeng 2024-08-26 16:47:29 +08:00
parent 40e301104d
commit 19ff93418f
1 changed files with 12 additions and 10 deletions

View File

@ -222,7 +222,7 @@
<image src="../../static/closed.png" mode="" @click="closePop"></image>
</view>
</u-popup>
<u-popup v-model="Soilshow" mode="center" :mask-close-able='false' width="640rpx"
<u-popup v-model="Soilshow" :mask-close-able="true" height="800rpx" mode="center" width="640rpx"
:closeable='false'>
<view class="contentPop soil-pop" style="padding-bottom: 70rpx;">
<view class="contentPop_box" >
@ -230,14 +230,14 @@
土壤温湿度传感器数据
</view>
<view class="soil-flex" v-if="inputData[3102]!=0">
<view class="left">
<view class="left" >
<template v-for="item,index in 40">
<view class="irrigate_input" v-if="index<(inputData[3102]?inputData[3102]:0)" :key="index">
<view class="number">{{index+1}}#温度</view> <input :value="inputData[3103+index]?(inputData[3103+index]-400)/10:0" disabled type="number" placeholder="0" />
</view>
</template>
</view>
<view class="right">
<view class="right" >
<template v-for="item,index in 40">
<view class="irrigate_input" v-if="index<(inputData[3102]?inputData[3102]:0)" :key="index">
<view class="number">{{index+1}}#湿度</view> <input :value="inputData[3062+index]?inputData[3062+index]/10:0" disabled type="number" placeholder="0" />%RH
@ -300,9 +300,9 @@
</view>
-->
</view>
<image src="../../static/closed.png" mode="" @click="Soilshow=false"></image>
</view>
</u-popup>
</view>
@ -887,6 +887,7 @@
</script>
<style lang="scss" scoped>
.fertilizer_machine {
width: 100%;
min-height: 100vh;
@ -1327,6 +1328,7 @@
// min-height: calc(100% - 70rpx);
height:calc(100% - 70rpx);
position: relative;
&.soil-pop{
height: 100%;
>image {
@ -1360,18 +1362,18 @@
line-height: 91rpx;
}
.soil-flex{
max-height: 700rpx;
overflow: auto;
// max-height: 700rpx;
// overflow-y: auto;
width: 100%;
display: flex;
justify-content: space-between;
.left,.right{
width: 50%;
flex-shrink: 0;
// flex-shrink: 0;
>view{
width: 100%;
flex-shrink: 0;
// flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;