蜂箱
This commit is contained in:
parent
58ed1420fc
commit
07957bf4e8
File diff suppressed because it is too large
Load Diff
|
@ -21,18 +21,18 @@
|
|||
<view class="machao">
|
||||
总重量:{{(obj.totalWeight == undefined ? '--' : (Number(obj.totalWeight / 1000)).toFixed(2)) + 'kg'}}
|
||||
</view>
|
||||
<view class="machao">
|
||||
箱内温度:{{obj.innerTemperature == undefined ? '--' : obj.innerTemperature + '°C'}} <input type="text" v-model="wdxsn" /> <view class="" @click="btnone">校准</view>
|
||||
</view>
|
||||
<view class="machao">
|
||||
箱内湿度:{{obj.innerHumidity == undefined ? '--' : obj.innerHumidity + '%'}}
|
||||
</view>
|
||||
<view class="machao">
|
||||
箱外温度:{{obj.outerTemperature == undefined ? '--' : obj.outerTemperature + '°C'}} <input type="text" v-model="wdxsw" /> <view class="" @click="btntwo">校准</view>
|
||||
</view>
|
||||
<view class="machao">
|
||||
箱外湿度:{{obj.outerHumidity == undefined ? '--' : obj.outerHumidity + '%'}}
|
||||
</view>
|
||||
<view class="machao">
|
||||
箱内温度:{{obj.innerTemperature == undefined ? '--' : obj.innerTemperature + '°C'}}
|
||||
</view>
|
||||
<view class="machao">
|
||||
箱外温度:{{obj.outerTemperature == undefined ? '--' : obj.outerTemperature + '°C'}}
|
||||
</view>
|
||||
<view class="machao">
|
||||
剩余电量:{{obj.surplusPowerPoint == undefined ? '--' : obj.surplusPowerPoint + '%'}}
|
||||
</view>
|
||||
|
@ -90,6 +90,8 @@
|
|||
powerStatus: '--',
|
||||
message: '定时器未启动',
|
||||
intervalId: null, // 用于存储定时器的ID
|
||||
wdxsn:'',
|
||||
wdxsw:''
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
|
@ -127,6 +129,34 @@
|
|||
this.clearInterval();
|
||||
},
|
||||
methods: {
|
||||
// 内部温度
|
||||
btnone(){
|
||||
this.$u.put(`/app/beehive/admin/wdxsn?sn=${this.storeId}&wdxsn=${this.wdxsn}`).then(res=>{
|
||||
if(res.code == 200){
|
||||
this.obj.innerTemperature = Number(this.obj.innerTemperature) + Number(this.wdxsn)
|
||||
}else{
|
||||
uni.showToast({
|
||||
title:res.msg,
|
||||
icon: 'none',
|
||||
duration:2000
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
// 外部温度
|
||||
btntwo(){
|
||||
this.$u.put(`/app/beehive/admin/wdxsw?sn=${this.storeId}&wdxsw=${this.wdxsw}`).then(res=>{
|
||||
if(res.code == 200){
|
||||
this.obj.outerTemperature = Number(this.obj.outerTemperature) + Number(this.wdxsw)
|
||||
}else{
|
||||
uni.showToast({
|
||||
title:res.msg,
|
||||
icon: 'none',
|
||||
duration:2000
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
btnshang(){
|
||||
uni.reLaunch({
|
||||
url:'/page_user/luru'
|
||||
|
@ -360,6 +390,23 @@
|
|||
margin-top: 20rpx;
|
||||
text-align: left;
|
||||
font-size: 32rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
input{
|
||||
width: 100rpx;
|
||||
height: 40rpx;
|
||||
border: 1px solid #ce9e10;
|
||||
margin-left: 50rpx;
|
||||
text-align: center;
|
||||
}
|
||||
view{
|
||||
margin-left: 20rpx;
|
||||
padding: 10rpx 20rpx;
|
||||
box-sizing: border-box;
|
||||
background-color: #ce9e10;
|
||||
color: #fff;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.title {
|
||||
|
|
|
@ -34,9 +34,9 @@
|
|||
<button class="button" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber" >
|
||||
授权登录
|
||||
</button>
|
||||
<view class="button" style="text-align: center;background-color: transparent;border: 1px solid #FFF5D6;margin-top: 80rpx;color: #FFF5D6;" @click="btnname">
|
||||
<!-- <view class="button" style="text-align: center;background-color: transparent;border: 1px solid #FFF5D6;margin-top: 80rpx;color: #FFF5D6;" @click="btnname">
|
||||
手机号登录
|
||||
</view>
|
||||
</view> -->
|
||||
<!-- <view class="yinsi">
|
||||
<u-checkbox-group>
|
||||
<u-checkbox v-model="checked" shape="circle" size="28"></u-checkbox>
|
||||
|
|
Loading…
Reference in New Issue
Block a user