fix
parent
72a098fdee
commit
95bf3b5af8
20
filter.html
20
filter.html
|
@ -183,7 +183,7 @@
|
||||||
console.log($value)
|
console.log($value)
|
||||||
let url = "http://192.168.0.116/cgi-bin/test.cgi"
|
let url = "http://192.168.0.116/cgi-bin/test.cgi"
|
||||||
let postData = {
|
let postData = {
|
||||||
action:'filter_set',
|
action: 'filter_set',
|
||||||
subaction: 'mic1',
|
subaction: 'mic1',
|
||||||
state: $value,
|
state: $value,
|
||||||
module: 'mic1'
|
module: 'mic1'
|
||||||
|
@ -195,6 +195,7 @@
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
contentType: "application/json; charset=utf-8",
|
contentType: "application/json; charset=utf-8",
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
|
let res = $.parseJSON(res)
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
data.mic1 = res.content.mic1
|
data.mic1 = res.content.mic1
|
||||||
bindData()
|
bindData()
|
||||||
|
@ -214,7 +215,7 @@
|
||||||
// alert($value)
|
// alert($value)
|
||||||
let url = "http://192.168.0.116/cgi-bin/test.cgi"
|
let url = "http://192.168.0.116/cgi-bin/test.cgi"
|
||||||
let postData = {
|
let postData = {
|
||||||
action:'filter_set',
|
action: 'filter_set',
|
||||||
subaction: 'mic2',
|
subaction: 'mic2',
|
||||||
state: $value,
|
state: $value,
|
||||||
module: 'mic2'
|
module: 'mic2'
|
||||||
|
@ -226,6 +227,7 @@
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
contentType: "application/json; charset=utf-8",
|
contentType: "application/json; charset=utf-8",
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
|
let res = $.parseJSON(res)
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
data.mic2 = res.content.mic2
|
data.mic2 = res.content.mic2
|
||||||
bindData()
|
bindData()
|
||||||
|
@ -243,7 +245,7 @@
|
||||||
// alert($("#mic1-type").val())
|
// alert($("#mic1-type").val())
|
||||||
let url = "http://192.168.0.116/cgi-bin/test.cgi"
|
let url = "http://192.168.0.116/cgi-bin/test.cgi"
|
||||||
let postData = {
|
let postData = {
|
||||||
action:'filter_set',
|
action: 'filter_set',
|
||||||
subaction: 'mic1',
|
subaction: 'mic1',
|
||||||
type: $("#mic1-type").val(),
|
type: $("#mic1-type").val(),
|
||||||
module: 'mic1'
|
module: 'mic1'
|
||||||
|
@ -255,6 +257,7 @@
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
contentType: "application/json; charset=utf-8",
|
contentType: "application/json; charset=utf-8",
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
|
let res = $.parseJSON(res)
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
data.mic1 = res.content.mic1
|
data.mic1 = res.content.mic1
|
||||||
bindData()
|
bindData()
|
||||||
|
@ -272,7 +275,7 @@
|
||||||
// alert($("#mic2-type").val())
|
// alert($("#mic2-type").val())
|
||||||
let url = "http://192.168.0.116/cgi-bin/test.cgi"
|
let url = "http://192.168.0.116/cgi-bin/test.cgi"
|
||||||
let postData = {
|
let postData = {
|
||||||
action:'filter_set',
|
action: 'filter_set',
|
||||||
subaction: 'mic2',
|
subaction: 'mic2',
|
||||||
type: $("#mic2-type").val(),
|
type: $("#mic2-type").val(),
|
||||||
module: 'mic2'
|
module: 'mic2'
|
||||||
|
@ -284,6 +287,7 @@
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
contentType: "application/json; charset=utf-8",
|
contentType: "application/json; charset=utf-8",
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
|
let res = $.parseJSON(res)
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
data.mic2 = res.content.mic2
|
data.mic2 = res.content.mic2
|
||||||
bindData()
|
bindData()
|
||||||
|
@ -302,7 +306,7 @@
|
||||||
function changeInputValue(module, number) {
|
function changeInputValue(module, number) {
|
||||||
let url = "http://192.168.0.116/cgi-bin/test.cgi"
|
let url = "http://192.168.0.116/cgi-bin/test.cgi"
|
||||||
let postData = {
|
let postData = {
|
||||||
action:'filter_set',
|
action: 'filter_set',
|
||||||
subaction: module,
|
subaction: module,
|
||||||
audio: number,
|
audio: number,
|
||||||
module: module
|
module: module
|
||||||
|
@ -314,6 +318,7 @@
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
contentType: "application/json; charset=utf-8",
|
contentType: "application/json; charset=utf-8",
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
|
let res = $.parseJSON(res)
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
if (module == 'mic1') {
|
if (module == 'mic1') {
|
||||||
data.mic1 = res.content.mic1
|
data.mic1 = res.content.mic1
|
||||||
|
@ -338,8 +343,7 @@
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: url,
|
url: url,
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
console.log(typeof(res))
|
let res = $.parseJSON(res)
|
||||||
console.log(res.success)
|
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
data = res.content
|
data = res.content
|
||||||
bindData()
|
bindData()
|
||||||
|
@ -379,7 +383,7 @@
|
||||||
|
|
||||||
|
|
||||||
let $value = $("input[name='mic1']:checked").val()
|
let $value = $("input[name='mic1']:checked").val()
|
||||||
console.log($value)
|
console.log($value)
|
||||||
}
|
}
|
||||||
|
|
||||||
$("#handle1").roundSlider({
|
$("#handle1").roundSlider({
|
||||||
|
|
Loading…
Reference in New Issue