This commit is contained in:
Iruka 2025-02-11 17:55:20 +08:00
parent afd919c8fb
commit e27ce2f6e7
3 changed files with 17 additions and 18 deletions

View File

@ -64,6 +64,7 @@
});
function show() {
// #ifdef APP-PLUS
const _version = getApp().version.newV;
if (_version) {
showPop.value = true;
@ -74,6 +75,7 @@
} else {
showPop.value = false
}
// #endif
}
function hide() {

View File

@ -10,12 +10,6 @@
<view>修改密码</view>
</view>
</view>
<view class="list-cell list-cell-arrow" @click="handleCleanTmp">
<view class="menu-item-box">
<view class="iconfont icon-clean menu-icon"></view>
<view>清理缓存</view>
</view>
</view>
<view class="list-cell list-cell-arrow" @click="handleToUpgrade">
<view class="menu-item-box">
<view class="iconfont icon-refresh menu-icon"></view>
@ -82,15 +76,6 @@
})
};
function handleCleanTmp() {
uni.showToast({
title: '模块建设中~',
mask: false,
icon: "none",
duration: 1000
});
};
function handleLogout() {
popup.value.open();
};

View File

@ -212,7 +212,7 @@ class deviceControl {
}
that.addTopics(topic)
that.screenDataByType()
// that.startRunningTimer();
that.startRunningTimer();
// // 如果数据有效,查询相关数据
// if(that.valves.length){
@ -281,12 +281,12 @@ class deviceControl {
// #endregion
// #region 自动刷新
runningTimer = false
runningTimer = true
/**
* 自动刷新页面数据
*/
startRunningTimer() {
if (this.runningTimer) return;
if (!this.runningTimer) return;
// this.runningTimer = true;
const that = this;
setTimeout(() => {
@ -558,6 +558,10 @@ class deviceControl {
params.deviceCode = item.device.deviceCode
params.valveNo = 1 //现在默认都是1;
params.angleKey = config[index].key
params.params = {
index: index,
value: value,
}
this.setBtnPreloading(item, config[index].key, index, value)
this.onEventHandler(params.get(), dcEventType.send, item)
break
@ -592,6 +596,10 @@ class deviceControl {
params.valveNo = index
params.angleKey = config[keyIndex].key
params.anglePercent = value
params.params = {
index: index,
value: value,
}
this.setBtnPreloading(item, config[keyIndex].key, index, value)
this.onEventHandler(params.get(), dcEventType.send, item)
} else {
@ -626,6 +634,10 @@ class deviceControl {
params.valveNo = index
params.angleKey = config[keyIndex].key
params.anglePercent = value
params.params = {
index: index,
value: value,
}
this.setBtnPreloading(item, config[keyIndex].key, index, value)
this.onEventHandler(params.get(), dcEventType.send, item)
} else {