Browse Source

修改数据库项目id字段

nn 8 years ago
parent
commit
3b296a1654
1 changed files with 3 additions and 3 deletions
  1. 3 3
      js/couple.js

+ 3 - 3
js/couple.js

@@ -25,7 +25,7 @@ Couple.Bind=function () {
         if(r.value){
             for(var i=0;i<r.value.length;i++){
                 var li=$$("li", {
-                    "className": "asideItem","productId":r.value[i].FeedbackId
+                    "className": "asideItem","productId":r.value[i].ProductId
                     }, ul);
                 var a=$$("a", {}, li); 
                 var icon=$$("span", {
@@ -168,7 +168,7 @@ Couple.Permissions=function(){
                 Couple.OnclickcreateItem=function(){
                     U.A.Request("http://cd.1473.cn/net",["db.1473.cn","UseStudio_FeedBack","InsertProductList",$(".createItemName")[0].value],function (r){//查询用户
                         if(r.value){
-                            U.A.Request("http://cd.1473.cn/net",["db.1473.cn","UseStudio_FeedBack","InsertUserProduct",U.UF.Cookie.get("usestudiosso","userid")[0],r.value[0].FeedbackId],function (r){//查询用户
+                            U.A.Request("http://cd.1473.cn/net",["db.1473.cn","UseStudio_FeedBack","InsertUserProduct",U.UF.Cookie.get("usestudiosso","userid")[0],r.value[0].ProductId],function (r){//查询用户
                                 location.reload() 
                             })
                         }
@@ -280,7 +280,7 @@ Couple.getDataRow = function(h,i){//创建表格下的反馈数据库循环数
         if(confirm("确定删除这一行嘛?")){
             this.parentNode.parentNode.parentNode.removeChild(this.parentNode.parentNode); 
         }
-        U.A.Request("http://cd.1473.cn/net",["db.1473.cn", "UseStudio_FeedBack", "DeleteFeedback",h.FeedbackId],function (r){}) 
+        U.A.Request("http://cd.1473.cn/net",["db.1473.cn", "UseStudio_FeedBack", "DeleteFeedback",h.ProductId],function (r){}) 
     } 
     delCell.appendChild(btnDel);
     return row;