This commit is contained in:
3321822538@qq.com 2024-12-16 17:44:06 +08:00
parent c96782e800
commit e95d3fcc09
2 changed files with 62 additions and 2 deletions

View File

@ -600,7 +600,7 @@
}, },
// //
getzhifu(){ getzhifu(){
if (this.onlineStatus == 0) { if (this.onlineStatus == 1) {
uni.showLoading({ uni.showLoading({
title: '准备支付中...' title: '准备支付中...'
}) })

View File

@ -45,6 +45,17 @@
最后在线时间{{obj.lastOnlineTime == undefined ? '--' : obj.lastOnlineTime}} 最后在线时间{{obj.lastOnlineTime == undefined ? '--' : obj.lastOnlineTime}}
</view> </view>
<view class="jiaozhun">
<view class="input">
<button @click="btnjian">-</button>
<input type="text" v-model="valuedian" placeholder="输入校准电压"/>
<button @click="btnadd">+</button>
</view>
<view class="view" @click="btnjiaozhun">
校准电压
</view>
</view>
<view class="list"> <view class="list">
<view class="anniulist"> <view class="anniulist">
<view class="anniu" @click="btnkq"> <view class="anniu" @click="btnkq">
@ -77,7 +88,10 @@
obj: {}, obj: {},
id: '', id: '',
onlineStatus: '--', onlineStatus: '--',
powerStatus: '--' powerStatus: '--',
valuedian:220,
xshu:'1',
x:''
} }
}, },
onLoad(options) { onLoad(options) {
@ -103,6 +117,17 @@
} }
}, },
methods: { methods: {
btnjian(){
this.valuedian = Number(this.valuedian) - 1
},
btnadd(){
this.valuedian = Number(this.valuedian) + 1
},
btnjiaozhun(){
this.x = this.obj.voltage / this.valuedian * this.xshu
console.log(this.x)
},
btnmy() { btnmy() {
uni.reLaunch({ uni.reLaunch({
url: '/pages/my' url: '/pages/my'
@ -280,6 +305,41 @@
</script> </script>
<style lang="less"> <style lang="less">
.jiaozhun{
display: flex;
padding: 50rpx;
box-sizing: border-box;
width: 100%;
justify-content: space-between;
button{
height: 80rpx;
line-height: 80rpx;
background-color: #8883f0;
color: #fff;
}
.input{
input{
height: 80rpx;
line-height: 80rpx;
}
border: 1px solid #ccc;
border-radius: 20rpx;
display: flex;
width: 400rpx;
height: 80rpx;
text-align: center;
}
.view{
width: 200rpx;
height: 80rpx;
border-radius: 20rpx;
background-color: #8883f0;
color: #fff;
text-align: center;
line-height: 80rpx;
font-size: 28rpx;
}
}
.list { .list {
position: fixed; position: fixed;
bottom: 50rpx; bottom: 50rpx;