yxw 2023-11-23 13:28:02 +08:00
parent 6bc41a13fa
commit cb63a671d2
1 changed files with 16 additions and 13 deletions

View File

@ -1365,10 +1365,10 @@
let element = $('#lineinput') let element = $('#lineinput')
let input = $("#lineinput .volume-slider input") let input = $("#lineinput .volume-slider input")
let value = (parseInt(number) + 72) / (84 / 100) let value = (parseInt(number) + 72) / (84 / 100)
console.log('value', number, value, input.val()) // console.log('value', number, value, input.val())
input.val(value) input.val(value)
// input.attr('value', value) // input.attr('value', value)
console.log(number, value, input.val()) // console.log(number, value, input.val())
updateLineInputSlider(element, false); updateLineInputSlider(element, false);
@ -1393,14 +1393,14 @@
let barHeight = `calc(${pct}% + ${$thumb[0].clientHeight / 2}px)`; let barHeight = `calc(${pct}% + ${$thumb[0].clientHeight / 2}px)`;
$bar.attr('style', `height:${barHeight}`) $bar.attr('style', `height:${barHeight}`)
console.log('slider', input.val()) // console.log('slider', input.val())
let number = ((input.val() * (84 / 100)) - 72).toFixed(1) let number = ((input.val() * (84 / 100)) - 72).toFixed(1)
$value.val(`${number}`); $value.val(`${number}`);
//调用接口提交数据 //调用接口提交数据
if (number == -0) { if (number == -0) {
number = 0 number = 0
} }
console.log(number, lineinputValue, typeof (number), typeof (lineinputValue)) // console.log(number, lineinputValue, typeof (number), typeof (lineinputValue))
if (number != lineinputValue && isInput == false) { if (number != lineinputValue && isInput == false) {
if (lineinputPost == false) { if (lineinputPost == false) {
lineinputPost = true lineinputPost = true
@ -1414,8 +1414,9 @@
let element = $("#microphone1") let element = $("#microphone1")
let input = $("#microphone1 .volume-slider input") let input = $("#microphone1 .volume-slider input")
let value = (parseInt(number) + 10) / (20 / 100) let value = (parseInt(number) + 10) / (20 / 100)
input.attr('value', value) input.val(value)
console.log(number, value, input.val()) // input.attr('value', value)
// console.log(number, value, input.val())
updateMicrophone1Slider(element, false); updateMicrophone1Slider(element, false);
@ -1446,7 +1447,7 @@
if (number == -0) { if (number == -0) {
number = 0 number = 0
} }
console.log(number, mic1Value, typeof (number), typeof (mic1Value)) // console.log(number, mic1Value, typeof (number), typeof (mic1Value))
if (mic1Value != number && isInput == false) { if (mic1Value != number && isInput == false) {
if (mic1Post == false) { if (mic1Post == false) {
mic1Post = true mic1Post = true
@ -1461,8 +1462,9 @@
let input = $("#microphone2 .volume-slider input") let input = $("#microphone2 .volume-slider input")
let value = (parseInt(number) + 10) / (20 / 100) let value = (parseInt(number) + 10) / (20 / 100)
input.attr('value', value) input.val(value)
console.log(number, value, input.val()) // input.attr('value', value)
// console.log(number, value, input.val())
updateMicrophone2Slider(element, false); updateMicrophone2Slider(element, false);
@ -1494,7 +1496,7 @@
if (number == -0) { if (number == -0) {
number = 0 number = 0
} }
console.log(number, mic2Value, typeof (number), typeof (mic2Value)) // console.log(number, mic2Value, typeof (number), typeof (mic2Value))
if (mic2Value != number && isInput == false) { if (mic2Value != number && isInput == false) {
if (mic2Post == false) { if (mic2Post == false) {
mic2Post = true mic2Post = true
@ -1510,8 +1512,9 @@
let input = $("#outputvolume .volume-slider input") let input = $("#outputvolume .volume-slider input")
let value = (parseInt(number) + 10) / (20 / 100) let value = (parseInt(number) + 10) / (20 / 100)
input.attr('value', value) input.val(value)
console.log(number, value, input.val()) // input.attr('value', value)
// console.log(number, value, input.val())
updateOutputVolumeSlider(element, false); updateOutputVolumeSlider(element, false);
@ -1543,7 +1546,7 @@
if (number == -0) { if (number == -0) {
number = 0 number = 0
} }
console.log(number, outputValue, typeof (number), typeof (outputValue)) // console.log(number, outputValue, typeof (number), typeof (outputValue))
if (outputValue != number && isInput == false) { if (outputValue != number && isInput == false) {
if (outputPost == false) { if (outputPost == false) {
outputPost = true outputPost = true