diff --git a/pages/6170/deviceControl/index.vue b/pages/6170/deviceControl/index.vue index c22e2b3..e570ec8 100644 --- a/pages/6170/deviceControl/index.vue +++ b/pages/6170/deviceControl/index.vue @@ -71,7 +71,7 @@ + @change="onSliderChangeEnd" block-color="#fff" block-size="20" /> @@ -372,15 +372,11 @@ const touchX = e.touches[0].clientX; const cardLeft = this.cardRect.left; const cardWidth = this.cardRect.width; - let relativeX = touchX - cardLeft; - // 边界处理 if (relativeX < 0) relativeX = 0; if (relativeX > cardWidth) relativeX = cardWidth; - const newValue = Math.round((relativeX / cardWidth) * 100); - // 调用已有的节流函数来更新值和发送命令 this.onSliderChanging({ detail: {