开关
This commit is contained in:
parent
c96782e800
commit
e95d3fcc09
|
@ -600,7 +600,7 @@
|
|||
},
|
||||
// 支付
|
||||
getzhifu(){
|
||||
if (this.onlineStatus == 0) {
|
||||
if (this.onlineStatus == 1) {
|
||||
uni.showLoading({
|
||||
title: '准备支付中...'
|
||||
})
|
||||
|
|
|
@ -44,6 +44,17 @@
|
|||
<view class="machao">
|
||||
最后在线时间:{{obj.lastOnlineTime == undefined ? '--' : obj.lastOnlineTime}}
|
||||
</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="anniulist">
|
||||
|
@ -77,7 +88,10 @@
|
|||
obj: {},
|
||||
id: '',
|
||||
onlineStatus: '--',
|
||||
powerStatus: '--'
|
||||
powerStatus: '--',
|
||||
valuedian:220,
|
||||
xshu:'1',
|
||||
x:''
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
|
@ -103,6 +117,17 @@
|
|||
}
|
||||
},
|
||||
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() {
|
||||
uni.reLaunch({
|
||||
url: '/pages/my'
|
||||
|
@ -280,6 +305,41 @@
|
|||
</script>
|
||||
|
||||
<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 {
|
||||
position: fixed;
|
||||
bottom: 50rpx;
|
||||
|
|
Loading…
Reference in New Issue
Block a user