Selaa lähdekoodia

增加删除反馈信息

nn 8 vuotta sitten
vanhempi
commit
4c5410d988
2 muutettua tiedostoa jossa 6 lisäystä ja 3 poistoa
  1. 3 0
      css/couple.css
  2. 3 3
      js/couple.js

+ 3 - 0
css/couple.css

@@ -226,4 +226,7 @@ nav ul,nav li {
 }
 .informationtInfo .tbMain .trCoupleTime{
     width: 150px;
+}
+.informationtInfo .tbMain .{
+    width: 200px;
 }

+ 3 - 3
js/couple.js

@@ -53,6 +53,7 @@ Couple.getDataRow = function(h,i){//创建表格下的行放数据库循环数
     row.appendChild(trCoupleTime); 
     //每行末尾添加删除按钮 
     var delCell = document.createElement('td');
+    delCell.setAttribute('class','trDel');  
     row.appendChild(delCell); 
     var btnDel = document.createElement('input');
     btnDel.setAttribute('type','button');
@@ -61,7 +62,8 @@ Couple.getDataRow = function(h,i){//创建表格下的行放数据库循环数
     btnDel.onclick=function(){ //删除操作 
         if(confirm("确定删除这一行嘛?")){
             this.parentNode.parentNode.parentNode.removeChild(this.parentNode.parentNode); 
-        } 
+        }
+        U.A.Request("http://cd.1473.cn/net",["db.1473.cn", "UseStudio_Couple", "DeleteCouple",h.CoupleId],function (r){}) 
     } 
     delCell.appendChild(btnDel);
     return row;  
@@ -88,7 +90,6 @@ Couple.Init=function () {
                 ev = ev || event;
                 var target = ev.target || ev.srcElement;
                 var productId = target.parentNode.parentElement.productId;
-                console.log(productId)
                 if(informationtTime.firstChild==null){
                     Couple.Bind(productId)
                 }else{
@@ -133,7 +134,6 @@ Couple.Init=function () {
     Couple.logout=function(){//退出
         U.UF.CD.loadAjaxCrossDomain(function(){
             U.A.Request(US.AUTH, ["UserOffline", U.UF.Cookie.get("usestudiosso","userid")[0]],function(r){
-                console.log(r)
                 window.location.href="http://couple.1473.cn/login.html";   
             });
         });