速度调节

This commit is contained in:
ywb
2026-05-29 08:51:01 +08:00
parent 3ccc49d6cf
commit a556a0858b
13 changed files with 701 additions and 212 deletions
+55
View File
@@ -385,6 +385,61 @@ a:hover { text-decoration: underline; }
color: #4fc3f7;
}
/* 运行页速度控制面板 */
.speed-panel {
display: flex;
flex-direction: column;
gap: 16px;
}
.speed-row {
display: flex;
flex-direction: column;
gap: 6px;
}
.speed-label {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 14px;
color: #b0c4de;
}
.speed-val {
font-weight: bold;
font-size: 15px;
color: #4fc3f7;
min-width: 80px;
text-align: right;
}
.speed-slider {
-webkit-appearance: none;
appearance: none;
width: 100%;
height: 8px;
background: #1a2d3d;
border-radius: 4px;
outline: none;
cursor: pointer;
}
.speed-slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 22px;
height: 22px;
border-radius: 50%;
background: #4fc3f7;
cursor: pointer;
border: 2px solid #0f1923;
box-shadow: 0 0 6px rgba(79, 195, 247, 0.4);
}
.speed-slider::-moz-range-thumb {
width: 22px;
height: 22px;
border-radius: 50%;
background: #4fc3f7;
cursor: pointer;
border: 2px solid #0f1923;
}
/* 双摄像头预览布局 */
.camera-row {
display: grid;
+5
View File
@@ -26,6 +26,9 @@ createApp({
qrScanEnabled: true,
frontPhotoEnabled: true,
backPhotoEnabled: true,
// 速度控制
agvSpeed: 0.5,
armSpeed: 500,
}
},
computed: {
@@ -124,6 +127,8 @@ createApp({
qr_scan: this.qrScanEnabled,
front_photo: this.frontPhotoEnabled,
back_photo: this.backPhotoEnabled,
agv_speed: this.agvSpeed,
arm_speed: this.armSpeed,
})
})
this.missionState = 'running'