|
|
@@ -7,12 +7,19 @@
|
|
|
<u-button @click="reportError" color="#EC6D2F" text="上报异常" type="error" size="mini"></u-button>
|
|
|
</view>
|
|
|
|
|
|
- <view style="position: absolute;right:52rpx;top:116rpx;">
|
|
|
+ <view style="position: absolute;right:52rpx;top:116rpx;" v-if="deviceInfo.status == 3">
|
|
|
<view>
|
|
|
<u-image :showLoading="true" src="/static/images/device/zaixian.png" width="200rpx" height="200rpx" ></u-image>
|
|
|
</view>
|
|
|
<view style="position: absolute;color:#48C373;top:110rpx;left:70rpx">在线</view>
|
|
|
</view>
|
|
|
+
|
|
|
+ <view style="position: absolute;right:52rpx;top:116rpx;" v-if="deviceInfo.status == 4">
|
|
|
+ <view>
|
|
|
+ <u-image :showLoading="true" src="/static/images/device/offline.png" width="200rpx" height="200rpx" ></u-image>
|
|
|
+ </view>
|
|
|
+ <view style="position: absolute;color:lightgray;top:110rpx;left:70rpx">离线</view>
|
|
|
+ </view>
|
|
|
<view style="font-weight: bold;font-size: 30rpx;margin-top:20rpx">
|
|
|
{{deviceInfo.deviceName}}
|
|
|
|
|
|
@@ -27,7 +34,7 @@
|
|
|
</view>
|
|
|
<view class="prop-text">
|
|
|
<text class="text-left">二维码ID:</text>
|
|
|
- <text class="text-right">{{deviceInfo.qrcodeId}}</text>
|
|
|
+ <text class="text-right">{{deviceInfo.qrcodeId==null?"未绑定":deviceInfo.qrcodeId}}</text>
|
|
|
</view>
|
|
|
|
|
|
|
|
|
@@ -75,31 +82,46 @@
|
|
|
</uni-col>
|
|
|
</uni-row>
|
|
|
|
|
|
- <view class="prop-item">
|
|
|
- <view class="prop-item-left">开机</view>
|
|
|
- <view class="prop-item-right"> <u-switch inactiveColor="lightgray" activeColor="rgb(96,195,113)" v-model="power.value" :loading ="power.loading" @change="changeProp('PowerControl')"></u-switch>
|
|
|
+ <view v-if="deviceInfo.status == 3">
|
|
|
+ <view class="prop-item">
|
|
|
+ <view class="prop-item-left">开机</view>
|
|
|
+ <view class="prop-item-right"> <u-switch inactiveColor="lightgray" activeColor="rgb(96,195,113)" v-model="power.value" :loading ="power.loading" @change="changeProp('PowerControl')"></u-switch>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="prop-item">
|
|
|
+ <view class="prop-item-left">锁定</view>
|
|
|
+ <view class="prop-item-right">
|
|
|
+ <u-switch inactiveColor="lightgray" activeColor="rgb(96,195,113)" v-model="lock.value" :loading ="lock.loading" @change="changeProp('LockControl')"></u-switch>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="prop-item">
|
|
|
- <view class="prop-item-left">锁定</view>
|
|
|
- <view class="prop-item-right">
|
|
|
- <u-switch inactiveColor="lightgray" activeColor="rgb(96,195,113)" v-model="lock.value" :loading ="lock.loading" @change="changeProp('LockControl')"></u-switch>
|
|
|
+ <view v-if="deviceInfo.status != 3">
|
|
|
+ <view class="prop-item">
|
|
|
+ <view class="prop-item-left">开机</view>
|
|
|
+ <view class="prop-item-right"> <u-switch inactiveColor="lightgray" activeColor="rgb(96,195,113)" value="0" :loading ="power.loading" @change="changeProp('PowerControl')"></u-switch>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="prop-item">
|
|
|
+ <view class="prop-item-left">锁定</view>
|
|
|
+ <view class="prop-item-right">
|
|
|
+ <u-switch inactiveColor="lightgray" activeColor="rgb(96,195,113)" value="0" :loading ="lock.loading" @change="changeProp('LockControl')"></u-switch>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view v-for="item in inputProp" v-if="checkCommonProp(item)">
|
|
|
<view class="prop-item">
|
|
|
<view class="prop-item-left">{{item.name}}</view>
|
|
|
<view class="prop-item-right">
|
|
|
- <view v-if="item.type === 'integer'" style="width:240rpx;position: absolute;left: -260rpx;top: -10rpx;">
|
|
|
- <u-input placeholder="请输入整数" v-model="item.shadow">
|
|
|
+ <view v-if="item.type === 'integer'" style="width:240rpx;position: absolute;left: -260rpx;top: 10rpx;;">
|
|
|
+ <u-input :customStyle="inputStyle" fontSize="20rpx" placeholder="请输入整数" v-model="item.shadow">
|
|
|
</u-input>
|
|
|
</view>
|
|
|
<view style="padding:0 10rpx;width:260rpx;position: absolute;left: -270rpx;top: -10rpx;" v-if="item.type === 'string'">
|
|
|
- <u-input placeholder="请输入字符串" v-model="item.shadow">
|
|
|
+ <u-input :customStyle="inputStyle" fontSize="20rpx" placeholder="请输入字符串" v-model="item.shadow">
|
|
|
</u-input>
|
|
|
</view>
|
|
|
<view style="padding:0 10rpx;width:260rpx;position: absolute;left: -270rpx;top: -10rpx;" v-if="item.type === 'array'">
|
|
|
- <u-input placeholder="请使用英文逗号分隔的字符串" v-model="item.shadow">
|
|
|
+ <u-input :customStyle="inputStyle" fontSize="20rpx" placeholder="请使用英文逗号分隔的字符串" v-model="item.shadow">
|
|
|
</u-input>
|
|
|
</view>
|
|
|
<view style="padding:0 10rpx;position: absolute;left: -300rpx;top: -10rpx;" v-if="item.type === 'enum'">
|
|
|
@@ -115,7 +137,7 @@
|
|
|
</u-cell>
|
|
|
|
|
|
</view>
|
|
|
- <view class="item" style="padding-top:14rpx">
|
|
|
+ <view class="item" style="padding-top:10rpx">
|
|
|
<u-button v-if="deviceInfo.status==3"
|
|
|
@tap="send(item)"
|
|
|
text="发送"
|
|
|
@@ -382,6 +404,7 @@ export default {
|
|
|
components: {UImage, UInput, UForm, UButton},
|
|
|
data(){
|
|
|
return {
|
|
|
+ inputStyle:{height:'44rpx','fontSize':'20rpx'},
|
|
|
modelKey:['PowerControl','LockControl'],
|
|
|
power:{
|
|
|
loading:true,
|
|
|
@@ -1011,7 +1034,7 @@ export default {
|
|
|
|
|
|
}
|
|
|
.prop-card{
|
|
|
- width: 29%;
|
|
|
+ width: 28%;
|
|
|
height: 100rpx;
|
|
|
text-align: center;
|
|
|
display: inline-block;
|
|
|
@@ -1062,4 +1085,8 @@ export default {
|
|
|
right:10rpx;
|
|
|
top:10rpx;
|
|
|
}
|
|
|
+input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{
|
|
|
+ color:#666;
|
|
|
+ font-size:12px;
|
|
|
+}
|
|
|
</style>
|