fix
parent
e69b2573c1
commit
584ab46a22
|
@ -162,7 +162,7 @@
|
||||||
var delection = $("input[name='analog']:checked").val();
|
var delection = $("input[name='analog']:checked").val();
|
||||||
var lock = $("input[name='lock']:checked").val();
|
var lock = $("input[name='lock']:checked").val();
|
||||||
|
|
||||||
let url = 'http://192.168.0.116/cgi-bin/test.cgi?action=control_set';
|
let url = 'http://192.168.0.116/cgi-bin/test.cgi';
|
||||||
let postData = {
|
let postData = {
|
||||||
action:"control_set",
|
action:"control_set",
|
||||||
power: power,
|
power: power,
|
||||||
|
@ -180,6 +180,7 @@
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
contentType: "application/json; charset=utf-8",
|
contentType: "application/json; charset=utf-8",
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
|
console.log('返回数据', typeof (res), res)
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
data = res.content
|
data = res.content
|
||||||
}
|
}
|
||||||
|
@ -211,6 +212,7 @@
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: url,
|
url: url,
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
|
console.log('返回数据', typeof (res), res)
|
||||||
if(res.success){
|
if(res.success){
|
||||||
data = res.content
|
data = res.content
|
||||||
bindData()
|
bindData()
|
||||||
|
|
18
ducking.html
18
ducking.html
|
@ -374,13 +374,11 @@
|
||||||
|
|
||||||
$("input[name='switch']").on('change', function () {
|
$("input[name='switch']").on('change', function () {
|
||||||
let $value = $("input[name='switch']:checked").val()
|
let $value = $("input[name='switch']:checked").val()
|
||||||
// console.log($("input[name='switch']:checked").val())
|
|
||||||
// alert($value)
|
|
||||||
|
|
||||||
let url = 'http://192.168.0.116/cgi-bin/test.cgi?action=ducker_set';
|
let url = 'http://192.168.0.116/cgi-bin/test.cgi';
|
||||||
let postData = {
|
let postData = {
|
||||||
state: $value,
|
state: $value,
|
||||||
action:"ducker_set",
|
action: "ducker_set",
|
||||||
}
|
}
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
|
@ -390,6 +388,7 @@
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
contentType: "application/json; charset=utf-8",
|
contentType: "application/json; charset=utf-8",
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
|
console.log('返回数据', typeof (res), res)
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
data = res.content
|
data = res.content
|
||||||
}
|
}
|
||||||
|
@ -420,10 +419,11 @@
|
||||||
|
|
||||||
|
|
||||||
function micChange(mic1, mic2) {
|
function micChange(mic1, mic2) {
|
||||||
let url = 'http://192.168.0.116/cgi-bin/test.cgi?action=ducker_set';
|
let url = 'http://192.168.0.116/cgi-bin/test.cgi';
|
||||||
let postData = {
|
let postData = {
|
||||||
mic1: mic1 ? "open" : "close",
|
mic1: mic1 ? "open" : "close",
|
||||||
mic2: mic2 ? "open" : "close",
|
mic2: mic2 ? "open" : "close",
|
||||||
|
action: "ducker_set",
|
||||||
}
|
}
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
|
@ -433,6 +433,7 @@
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
contentType: "application/json; charset=utf-8",
|
contentType: "application/json; charset=utf-8",
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
|
console.log('返回数据', typeof (res), res)
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
data = res.content
|
data = res.content
|
||||||
}
|
}
|
||||||
|
@ -602,7 +603,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function releaseSlider(number) {
|
function releaseSlider(number) {
|
||||||
console.log(number,releaseValue)
|
console.log(number, releaseValue)
|
||||||
let element = $('#release')
|
let element = $('#release')
|
||||||
let input = $("#release .volume-slider input")
|
let input = $("#release .volume-slider input")
|
||||||
input.attr('value', (parseInt(number) - 10) / (1990 / 100))
|
input.attr('value', (parseInt(number) - 10) / (1990 / 100))
|
||||||
|
@ -633,7 +634,7 @@
|
||||||
let number = ((input.val() * (1990 / 100)) + 10).toFixed(1)
|
let number = ((input.val() * (1990 / 100)) + 10).toFixed(1)
|
||||||
$value.val(`${number}`);
|
$value.val(`${number}`);
|
||||||
//调用接口提交数据
|
//调用接口提交数据
|
||||||
console.log(number,releaseValue)
|
console.log(number, releaseValue)
|
||||||
if (number != releaseValue && isInput == false) {
|
if (number != releaseValue && isInput == false) {
|
||||||
changeInputValue('release', number)
|
changeInputValue('release', number)
|
||||||
}
|
}
|
||||||
|
@ -641,8 +642,9 @@
|
||||||
|
|
||||||
|
|
||||||
function changeInputValue(module, number) {
|
function changeInputValue(module, number) {
|
||||||
let url = "/cgi-bin/test.cgi&action=ducker_set"
|
let url = "http://192.168.0.116/cgi-bin/test.cgi"
|
||||||
let postData = {
|
let postData = {
|
||||||
|
action: 'ducker_set',
|
||||||
subaction: module,
|
subaction: module,
|
||||||
audio: number,
|
audio: number,
|
||||||
type: module
|
type: module
|
||||||
|
|
6
eq.html
6
eq.html
|
@ -759,7 +759,7 @@
|
||||||
})
|
})
|
||||||
|
|
||||||
function loadData() {
|
function loadData() {
|
||||||
let url = ""
|
let url = "http://192.168.0.116/cgi-bin/test.cgi?action=eq_get"
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: url,
|
url: url,
|
||||||
|
@ -1198,8 +1198,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function changeInputValue(module, number) {
|
function changeInputValue(module, number) {
|
||||||
let url = "http://192.168.0.116/cgi-bin/test.cgi?action=eq_set"
|
let url = "http://192.168.0.116/cgi-bin/test.cgi"
|
||||||
let postData = {
|
let postData = {
|
||||||
|
action: "eq_set",
|
||||||
subaction: module,
|
subaction: module,
|
||||||
value: number,
|
value: number,
|
||||||
module: module
|
module: module
|
||||||
|
@ -1211,6 +1212,7 @@
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
contentType: "application/json; charset=utf-8",
|
contentType: "application/json; charset=utf-8",
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
|
console.log('返回数据', typeof (res), res)
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
if (module == 'mic2state' || module == 'mic210k' || module == 'mic22k' || module == 'mic2500' || module == 'mic2150' || module == 'mic240') {
|
if (module == 'mic2state' || module == 'mic210k' || module == 'mic22k' || module == 'mic2500' || module == 'mic2150' || module == 'mic240') {
|
||||||
data.mic2 = res.content.mic2
|
data.mic2 = res.content.mic2
|
||||||
|
|
|
@ -344,8 +344,10 @@
|
||||||
url: url,
|
url: url,
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
let resData = res
|
let resData = res
|
||||||
|
console.log('获取成功', typeof (resData), resData,)
|
||||||
if (resData.success) {
|
if (resData.success) {
|
||||||
data = resData.content
|
data = resData.content
|
||||||
|
|
||||||
bindData()
|
bindData()
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
13
fs.html
13
fs.html
|
@ -162,8 +162,9 @@
|
||||||
$("input[name='mic1switch']").on('change', function () {
|
$("input[name='mic1switch']").on('change', function () {
|
||||||
let $value = $("input[name='mic1switch']:checked").val()
|
let $value = $("input[name='mic1switch']:checked").val()
|
||||||
//alert($value)
|
//alert($value)
|
||||||
let url = "http://192.168.0.116/cgi-bin/test.cgi?action=fs_set"
|
let url = "http://192.168.0.116/cgi-bin/test.cgi"
|
||||||
let postData = {
|
let postData = {
|
||||||
|
action:'fs_set',
|
||||||
subaction: 'mic1',
|
subaction: 'mic1',
|
||||||
state: $value,
|
state: $value,
|
||||||
module: 'mic1'
|
module: 'mic1'
|
||||||
|
@ -175,6 +176,7 @@
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
contentType: "application/json; charset=utf-8",
|
contentType: "application/json; charset=utf-8",
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
|
console.log('返回数据', typeof (res), res)
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
data.mic1 = res.content.mic1
|
data.mic1 = res.content.mic1
|
||||||
bindData()
|
bindData()
|
||||||
|
@ -192,8 +194,9 @@
|
||||||
$("input[name='mic2switch']").on('change', function () {
|
$("input[name='mic2switch']").on('change', function () {
|
||||||
let $value = $("input[name='mic2switch']:checked").val()
|
let $value = $("input[name='mic2switch']:checked").val()
|
||||||
// alert($value)
|
// alert($value)
|
||||||
let url = "http://192.168.0.116/cgi-bin/test.cgi?action=fs_set"
|
let url = "http://192.168.0.116/cgi-bin/test.cgi"
|
||||||
let postData = {
|
let postData = {
|
||||||
|
action:'fs_set',
|
||||||
subaction: 'mic2',
|
subaction: 'mic2',
|
||||||
state: $value,
|
state: $value,
|
||||||
module: 'mic2'
|
module: 'mic2'
|
||||||
|
@ -205,6 +208,7 @@
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
contentType: "application/json; charset=utf-8",
|
contentType: "application/json; charset=utf-8",
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
|
console.log('返回数据', typeof (res), res)
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
data.mic2 = res.content.mic2
|
data.mic2 = res.content.mic2
|
||||||
bindData()
|
bindData()
|
||||||
|
@ -220,8 +224,9 @@
|
||||||
})
|
})
|
||||||
|
|
||||||
function changeInputValue(module, number) {
|
function changeInputValue(module, number) {
|
||||||
let url = "http://192.168.0.116/cgi-bin/test.cgi?action=fs_set"
|
let url = "http://192.168.0.116/cgi-bin/test.cgi"
|
||||||
let postData = {
|
let postData = {
|
||||||
|
action:'fs_set',
|
||||||
subaction: module,
|
subaction: module,
|
||||||
audio: number,
|
audio: number,
|
||||||
module: module
|
module: module
|
||||||
|
@ -233,6 +238,7 @@
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
contentType: "application/json; charset=utf-8",
|
contentType: "application/json; charset=utf-8",
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
|
console.log('返回数据', typeof (res), res)
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
if (module == 'mic1') {
|
if (module == 'mic1') {
|
||||||
data.mic1 = res.content.mic1
|
data.mic1 = res.content.mic1
|
||||||
|
@ -257,6 +263,7 @@
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: url,
|
url: url,
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
|
console.log('返回数据', typeof (res), res)
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
data = res.content
|
data = res.content
|
||||||
bindData()
|
bindData()
|
||||||
|
|
24
home.html
24
home.html
|
@ -970,8 +970,9 @@
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
|
||||||
$("#lineinput input[name='lineinput']").on('click', function () {
|
$("#lineinput input[name='lineinput']").on('click', function () {
|
||||||
let url = "http://192.168.0.116/cgi-bin/test.cgi&action=home_set"
|
let url = "http://192.168.0.116/cgi-bin/test.cgi"
|
||||||
let postData = {
|
let postData = {
|
||||||
|
action:'home_set',
|
||||||
subaction: 'lineinput',
|
subaction: 'lineinput',
|
||||||
signal: $("input[name='lineinput']:checked").val(),
|
signal: $("input[name='lineinput']:checked").val(),
|
||||||
module: 'lineinput'
|
module: 'lineinput'
|
||||||
|
@ -983,6 +984,7 @@
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
contentType: "application/json; charset=utf-8",
|
contentType: "application/json; charset=utf-8",
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
|
console.log('返回数据', typeof (res), res)
|
||||||
let resData = JSON.parse(res)
|
let resData = JSON.parse(res)
|
||||||
if (resData.success) {
|
if (resData.success) {
|
||||||
data.lineinput = resData.content.lineinput
|
data.lineinput = resData.content.lineinput
|
||||||
|
@ -1010,9 +1012,10 @@
|
||||||
})
|
})
|
||||||
|
|
||||||
$("input[name='lineinput-voice-close']").on('change', function () {
|
$("input[name='lineinput-voice-close']").on('change', function () {
|
||||||
let url = "http://192.168.0.116/cgi-bin/test.cgi&action=home_set"
|
let url = "http://192.168.0.116/cgi-bin/test.cgi"
|
||||||
let state = $("input[name='lineinput-voice-close']:checked").val() == 'on'
|
let state = $("input[name='lineinput-voice-close']:checked").val() == 'on'
|
||||||
let postData = {
|
let postData = {
|
||||||
|
action:'home_set',
|
||||||
subaction: 'lineinput',
|
subaction: 'lineinput',
|
||||||
state: state ? "close" : "open",
|
state: state ? "close" : "open",
|
||||||
module: 'lineinput'
|
module: 'lineinput'
|
||||||
|
@ -1024,6 +1027,7 @@
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
contentType: "application/json; charset=utf-8",
|
contentType: "application/json; charset=utf-8",
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
|
console.log('返回数据', typeof (res), res)
|
||||||
let resData = JSON.parse(res)
|
let resData = JSON.parse(res)
|
||||||
if (resData.success) {
|
if (resData.success) {
|
||||||
data.lineinput = resData.content.lineinput
|
data.lineinput = resData.content.lineinput
|
||||||
|
@ -1053,9 +1057,10 @@
|
||||||
})
|
})
|
||||||
|
|
||||||
$("input[name='microphone1-voice-close']").on('change', function () {
|
$("input[name='microphone1-voice-close']").on('change', function () {
|
||||||
let url = "http://192.168.0.116/cgi-bin/test.cgi&action=home_set"
|
let url = "http://192.168.0.116/cgi-bin/test.cgi"
|
||||||
let state = $("input[name='microphone1-voice-close']:checked").val() == 'on'
|
let state = $("input[name='microphone1-voice-close']:checked").val() == 'on'
|
||||||
let postData = {
|
let postData = {
|
||||||
|
action:'home_set',
|
||||||
subaction: 'mic1',
|
subaction: 'mic1',
|
||||||
state: state ? "close" : "open",
|
state: state ? "close" : "open",
|
||||||
module: 'mic1'
|
module: 'mic1'
|
||||||
|
@ -1067,6 +1072,7 @@
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
contentType: "application/json; charset=utf-8",
|
contentType: "application/json; charset=utf-8",
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
|
console.log('返回数据', typeof (res), res)
|
||||||
let resData = JSON.parse(res)
|
let resData = JSON.parse(res)
|
||||||
if (resData.success) {
|
if (resData.success) {
|
||||||
data.mic1 = resData.content.mic1
|
data.mic1 = resData.content.mic1
|
||||||
|
@ -1097,9 +1103,10 @@
|
||||||
})
|
})
|
||||||
|
|
||||||
$("input[name='microphone2-voice-close']").on('change', function () {
|
$("input[name='microphone2-voice-close']").on('change', function () {
|
||||||
let url = "http://192.168.0.116/cgi-bin/test.cgi&action=home_set"
|
let url = "http://192.168.0.116/cgi-bin/test.cgi"
|
||||||
let state = $("input[name='microphone2-voice-close']:checked").val() == 'on'
|
let state = $("input[name='microphone2-voice-close']:checked").val() == 'on'
|
||||||
let postData = {
|
let postData = {
|
||||||
|
action:'home_set',
|
||||||
subaction: 'mic2',
|
subaction: 'mic2',
|
||||||
state: state ? "close" : "open",
|
state: state ? "close" : "open",
|
||||||
module: 'mic2'
|
module: 'mic2'
|
||||||
|
@ -1111,6 +1118,7 @@
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
contentType: "application/json; charset=utf-8",
|
contentType: "application/json; charset=utf-8",
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
|
console.log('返回数据', typeof (res), res)
|
||||||
let resData = JSON.parse(res)
|
let resData = JSON.parse(res)
|
||||||
if (resData.success) {
|
if (resData.success) {
|
||||||
data.mic2 = resData.content.mic2
|
data.mic2 = resData.content.mic2
|
||||||
|
@ -1139,9 +1147,10 @@
|
||||||
})
|
})
|
||||||
|
|
||||||
$("input[name='outputvolume-voice-close']").on('change', function () {
|
$("input[name='outputvolume-voice-close']").on('change', function () {
|
||||||
let url = "http://192.168.0.116/cgi-bin/test.cgi&action=home_set"
|
let url = "http://192.168.0.116/cgi-bin/test.cgi"
|
||||||
let state = $("input[name='outputvolume-voice-close']:checked").val() == 'on'
|
let state = $("input[name='outputvolume-voice-close']:checked").val() == 'on'
|
||||||
let postData = {
|
let postData = {
|
||||||
|
action:'home_set',
|
||||||
subaction: 'output',
|
subaction: 'output',
|
||||||
state: state ? "close" : "open",
|
state: state ? "close" : "open",
|
||||||
module: 'output'
|
module: 'output'
|
||||||
|
@ -1153,6 +1162,7 @@
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
contentType: "application/json; charset=utf-8",
|
contentType: "application/json; charset=utf-8",
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
|
console.log('返回数据', typeof (res), res)
|
||||||
let resData = JSON.parse(res)
|
let resData = JSON.parse(res)
|
||||||
if (resData.success) {
|
if (resData.success) {
|
||||||
data.output = resData.content.output
|
data.output = resData.content.output
|
||||||
|
@ -1172,8 +1182,9 @@
|
||||||
|
|
||||||
|
|
||||||
function changeInputValue(module, number) {
|
function changeInputValue(module, number) {
|
||||||
let url = "http://192.168.0.116/cgi-bin/test.cgi&action=home_set"
|
let url = "http://192.168.0.116/cgi-bin/test.cgi"
|
||||||
let postData = {
|
let postData = {
|
||||||
|
action:'home_set',
|
||||||
subaction: module,
|
subaction: module,
|
||||||
audio: number,
|
audio: number,
|
||||||
module: module
|
module: module
|
||||||
|
@ -1185,6 +1196,7 @@
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
contentType: "application/json; charset=utf-8",
|
contentType: "application/json; charset=utf-8",
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
|
console.log('返回数据', typeof (res), res)
|
||||||
let resData = JSON.parse(res)
|
let resData = JSON.parse(res)
|
||||||
if (resData.success) {
|
if (resData.success) {
|
||||||
if (module == 'lineinput') {
|
if (module == 'lineinput') {
|
||||||
|
|
|
@ -143,7 +143,7 @@
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
let url = 'http://192.168.0.116/cgi-bin/test.cgi?action=network_set';
|
let url = 'http://192.168.0.116/cgi-bin/test.cgi';
|
||||||
let postData = {
|
let postData = {
|
||||||
config: $("input[name=type]:checked").val(),
|
config: $("input[name=type]:checked").val(),
|
||||||
mac: '',
|
mac: '',
|
||||||
|
@ -197,6 +197,7 @@
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: url,
|
url: url,
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
|
console.log('返回数据', typeof (res), res)
|
||||||
data = res.content
|
data = res.content
|
||||||
bindData()
|
bindData()
|
||||||
},
|
},
|
||||||
|
|
|
@ -129,7 +129,7 @@
|
||||||
alert('Confirm that the password is inconsistent with the new password')
|
alert('Confirm that the password is inconsistent with the new password')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
let url = 'http://192.168.0.116/cgi-bin/test.cgi?action=security_set';
|
let url = 'http://192.168.0.116/cgi-bin/test.cgi';
|
||||||
let postData = {
|
let postData = {
|
||||||
oldname: oldname,
|
oldname: oldname,
|
||||||
newname: newname,
|
newname: newname,
|
||||||
|
@ -146,6 +146,7 @@
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
contentType: "application/json; charset=utf-8",
|
contentType: "application/json; charset=utf-8",
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
|
console.log('返回数据', typeof (res), res)
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
alert('success')
|
alert('success')
|
||||||
}
|
}
|
||||||
|
|
|
@ -125,8 +125,9 @@
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$('#reset').on('click', function (event) {
|
$('#reset').on('click', function (event) {
|
||||||
let url = 'http://192.168.0.116/cgi-bin/test.cgi?action=reset';
|
let url = 'http://192.168.0.116/cgi-bin/test.cgi';
|
||||||
let postData = {
|
let postData = {
|
||||||
|
action:'system_reset'
|
||||||
}
|
}
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
|
@ -136,6 +137,7 @@
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
contentType: "application/json; charset=utf-8",
|
contentType: "application/json; charset=utf-8",
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
|
console.log('返回数据', typeof (res), res)
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
data = res.content
|
data = res.content
|
||||||
alert('reseting')
|
alert('reseting')
|
||||||
|
|
Loading…
Reference in New Issue