|
|
@@ -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";
|
|
|
});
|
|
|
});
|