Compare commits
2 Commits
8a9a35b2bd
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 5fdeb88103 | |||
| 666cbfba6d |
@ -27,12 +27,12 @@
|
|||||||
<text class="value">{{device.deviceName}}</text>
|
<text class="value">{{device.deviceName}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<text class="lbl">Mac地址</text>
|
<text class="lbl">Mac地址</text>
|
||||||
<text class="value">{{device.deviceMac}}</text>
|
<text class="value">{{device.deviceMac}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<text class="lbl">设备状态</text>
|
<text class="lbl">设备状态</text>
|
||||||
<text class="value">{{formData.statu}}</text>
|
<text class="value" :class="formData.statu === '充电中' ? 'red' : 'white'">{{formData.statu}}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<text class="lbl">蓝牙名称</text>
|
<text class="lbl">蓝牙名称</text>
|
||||||
@ -496,7 +496,8 @@
|
|||||||
});
|
});
|
||||||
if ('statu' in json) {
|
if ('statu' in json) {
|
||||||
const chargingVal = json.statu;
|
const chargingVal = json.statu;
|
||||||
const isCharging = chargingVal === 1 || chargingVal === '1' || chargingVal === true || chargingVal === '充电中';
|
const isCharging = chargingVal === 1 || chargingVal === '1' || chargingVal === true ||
|
||||||
|
chargingVal === '充电中';
|
||||||
these.formData.statu = isCharging ? '充电中' : '未充电';
|
these.formData.statu = isCharging ? '充电中' : '未充电';
|
||||||
}
|
}
|
||||||
if ('xuhang' in json) {
|
if ('xuhang' in json) {
|
||||||
|
|||||||
Reference in New Issue
Block a user