Переглянути джерело

增加没有反馈数据提示

nn 8 роки тому
батько
коміт
c01a17364a
2 змінених файлів з 10 додано та 1 видалено
  1. 3 0
      css/couple.css
  2. 7 1
      js/couple.js

+ 3 - 0
css/couple.css

@@ -77,6 +77,9 @@ body{
     -moz-box-shadow: 2px 2px 13px #acacac;
     -webkit-box-shadow: 2px 2px 13px #acacac;
 }
+.informationtcreateItem{
+    padding: 20px;
+}
 .informationtcreateItem form{
     padding: 30px;
 }

+ 7 - 1
js/couple.js

@@ -53,6 +53,7 @@ Couple.Bind=function () {
                     }
                     if(informationtcreateItem.firstChild !== null){
                         informationtcreateItem.removeChild(informationtcreateItem.firstChild)
+                        informationtcreateItem.style.display = "none";
                     }
                     var informationtTitle=$$("h4", {
                         "className": "informationtTitle",
@@ -109,8 +110,14 @@ Couple.Bind=function () {
                                 var td = $$("td", {
                                     "className":"infoTitle trCoupleTime","innerText":"反馈时间"
                                     }, tr);
+                                if(r.value.length === 0){
+                                    var coupleData = $$("div", {
+                                        "className":"coupleData","innerText":"暂无数据"
+                                        }, tbody);
+                                }
                                 var td = $$("td", {}, tr);
                                 for(var i=0;i<r.value.length;i++){
+                                   
                                     var trow = Couple.getDataRow(r.value[i],i+1); 
                                     tbody.appendChild(trow); 
                                 }
@@ -341,7 +348,6 @@ Couple.logout=function(){//退出
         });
     });
 }
-
 Couple.Init=function () {
     Couple.Bind();
 }();