Ver código fonte

修改后不可输入

xuzhiheng 5 anos atrás
pai
commit
064dcec366

+ 3 - 2
src/jfw/modules/app/src/web/templates/dataExport/dataExport.html

@@ -516,8 +516,8 @@
             $(".resetOne").show();
         }
         //信息类型
-        if(localStorage.subType!==undefined && localStorage.subType!==""){
-            var subType = localStorage.subType;
+        if(localStorage.subTypes!==undefined && localStorage.subTypes!==""){
+            var subType = localStorage.subTypes;
             $("#subType").text(subType);
             $(".confirm").hide();
             $(".resetOne").show();
@@ -702,6 +702,7 @@
             localStorage.removeItem("keyWord");
             localStorage.removeItem("price");
             localStorage.removeItem("subType");
+            localStorage.removeItem("subTypes");
             localStorage.removeItem("buyer");
             localStorage.removeItem("winner");
             localStorage.removeItem("export_starttime");

+ 14 - 3
src/jfw/modules/app/src/web/templates/dataExport/dataExport_subType.html

@@ -265,13 +265,17 @@
 
             $('.save-btn').click(function(){
                 var data = [];
+                var datas = [];
                 $(".list ul li").find("dd.active").each(function(){
-                    data.push($(this).html())
+                    data.push($(this).html());
+                    datas.push($(this).html());
                 });
                 $(".list ul li").find("dt.question.active").each(function(){
-                    data.push($(this).attr("data-value"))
+                    data.push($(this).attr("data-value"));
+                    datas.push($(this).html());
                 });
                 var html='';
+                var htmls = '';
                 for(var i = 0;i<data.length;i++){
                     if(i != data.length -1){
                         html+=data[i]+ " "
@@ -279,13 +283,20 @@
                         html+=data[i]
                     }
                 }
+                for(var m = 0;m<datas.length;m++){
+                    if(m != datas.length -1){
+                        htmls+=datas[m]+ " "
+                    }else{
+                        htmls+=datas[m]
+                    }
+                }
                 //
                 var all = $(".all span").attr("class");
                 if (all === "active"){
                     html = "全部";
                 }
-                console.log(html);
                 localStorage.subType = html;
+                localStorage.subTypes = htmls;
                 history.back();
             });
             //

+ 3 - 2
src/web/templates/weixin/dataExport/dataExport.html

@@ -469,8 +469,8 @@
             $(".resetOne").show();
         }
         //信息类型
-        if(localStorage.subType!==undefined && localStorage.subType!==""){
-            var subType = localStorage.subType;
+        if(localStorage.subTypes!==undefined && localStorage.subTypes!==""){
+            var subType = localStorage.subTypes;
             $("#subType").text(subType);
             $(".confirm").hide();
             $(".resetOne").show();
@@ -654,6 +654,7 @@
             localStorage.removeItem("keyWord");
             localStorage.removeItem("price");
             localStorage.removeItem("subType");
+            localStorage.removeItem("subTypes");
             localStorage.removeItem("buyer");
             localStorage.removeItem("winner");
             localStorage.removeItem("export_starttime");

+ 14 - 2
src/web/templates/weixin/dataExport/dataExport_subType.html

@@ -237,13 +237,17 @@
 
         $('.save-btn').click(function(){
             var data = [];
+            var datas = [];
             $(".list ul li").find("dd.active").each(function(){
-                data.push($(this).html())
+                data.push($(this).html());
+                datas.push($(this).html());
             });
             $(".list ul li").find("dt.question.active").each(function(){
-                data.push($(this).attr("data-value"))
+                data.push($(this).attr("data-value"));
+                datas.push($(this).html());
             });
             var html='';
+            var htmls = '';
             for(var i = 0;i<data.length;i++){
                 if(i != data.length -1){
                     html+=data[i]+ " "
@@ -251,12 +255,20 @@
                     html+=data[i]
                 }
             }
+            for(var m = 0;m<datas.length;m++){
+                if(m != datas.length -1){
+                    htmls+=datas[m]+ " "
+                }else{
+                    htmls+=datas[m]
+                }
+            }
             //
             var all = $(".all span").attr("class");
             if (all === "active"){
                 html = "全部";
             }
             localStorage.subType = html;
+            localStorage.subTypes = htmls;
             history.back();
         });
         //

+ 1 - 1
src/web/templates/weixin/dataExport/dataExport_winnerEdit.html

@@ -124,7 +124,7 @@
 				this.style.height = 'auto';
 				this.style.height = this.scrollHeight + "px";
 			});
-			
+
 			// 添加keyWords检查输入框内是否有文字,如果有才能点击添加按钮
 			$('.addkeyWord input.enterOne').on('input', function() {