yxw 2023-11-23 13:14:57 +08:00
parent 1a3ec6e088
commit 08f9558aa4
1 changed files with 2 additions and 1 deletions

View File

@ -1364,6 +1364,7 @@
let element = $('#lineinput')
let input = $("#lineinput .volume-slider input")
let value = (parseInt(number) + 72) / (84 / 100)
console.log('value', number, value, input.val())
input.attr('value', value)
console.log(number, value, input.val())
updateLineInputSlider(element, false);
@ -1390,7 +1391,7 @@
let barHeight = `calc(${pct}% + ${$thumb[0].clientHeight / 2}px)`;
$bar.attr('style', `height:${barHeight}`)
console.log('slider',input.val())
console.log('slider', input.val())
let number = ((input.val() * (84 / 100)) - 72).toFixed(1)
$value.val(`${number}`);
//调用接口提交数据