From 5e99fdc4eb79e757fb54a0428249180ab1efc0ce Mon Sep 17 00:00:00 2001 From: luosongbai <15272473386@163.com> Date: Thu, 18 Nov 2021 14:11:35 +0800 Subject: [PATCH] 1 --- web/src/x.min.js | 13 +++++++++---- web/srczip/common.js | 2 +- web/srczip/logic/category.js | 11 ++++++++--- 3 files changed, 18 insertions(+), 8 deletions(-) diff --git a/web/src/x.min.js b/web/src/x.min.js index 7d792b9..ad0729f 100644 --- a/web/src/x.min.js +++ b/web/src/x.min.js @@ -130,7 +130,7 @@ var X = window.X || { (function(){ //本地 - // var ipurl = "http://10.0.0.77:7899/api/v1/"; + // var ipurl = "http://10.0.0.77:7889/api/v1/"; // 线上 var ipurl = "http://139.159.159.3:9865/api/v1/"; //线上测试 @@ -5325,14 +5325,19 @@ var X = window.X || { //单击属性 $(document).off('click','.zhuang_conetnt .ta-pso-line').on('click','.zhuang_conetnt .ta-pso-line',function(){ - // var index = $(this).attr("data-index"); var indexs = $(this).attr("data-indexs"); + var number = 0; + if(index == 0){ + number = $(this).attr("data-index"); + }else { + number = index + } var valdata = { 'title':$(this).attr('data-title'), 'id':$(this).attr('data-id'), 'type':$(this).attr('data-type'), - 'category': data[index]['category'][indexs]['category'], - 'table_type':data[index]['id'] + 'category': data[number]['category'][indexs]['category'], + 'table_type':data[number]['id'] } me.callback && me.callback(valdata); diff --git a/web/srczip/common.js b/web/srczip/common.js index 54858af..154114b 100644 --- a/web/srczip/common.js +++ b/web/srczip/common.js @@ -129,7 +129,7 @@ var X = window.X || { (function(){ //本地 - // var ipurl = "http://10.0.0.77:7899/api/v1/"; + // var ipurl = "http://10.0.0.77:7889/api/v1/"; // 线上 var ipurl = "http://139.159.159.3:9865/api/v1/"; //线上测试 diff --git a/web/srczip/logic/category.js b/web/srczip/logic/category.js index 3bcc707..fa23825 100644 --- a/web/srczip/logic/category.js +++ b/web/srczip/logic/category.js @@ -63,14 +63,19 @@ //单击属性 $(document).off('click','.zhuang_conetnt .ta-pso-line').on('click','.zhuang_conetnt .ta-pso-line',function(){ - // var index = $(this).attr("data-index"); var indexs = $(this).attr("data-indexs"); + var number = 0; + if(index == 0){ + number = $(this).attr("data-index"); + }else { + number = index + } var valdata = { 'title':$(this).attr('data-title'), 'id':$(this).attr('data-id'), 'type':$(this).attr('data-type'), - 'category': data[index]['category'][indexs]['category'], - 'table_type':data[index]['id'] + 'category': data[number]['category'][indexs]['category'], + 'table_type':data[number]['id'] } me.callback && me.callback(valdata);