$.post("../ajax/userAutoUnitBuyListAction.jspx",{},function(data){
var rel=data.userAutoUnitBuyList;
if(rel!=null){
//document.getElementById(“autoBuyUserList”).innerHTML=""; //这样写是报错的,调试了一下进入jquery文件里面,恼火
$("#autoBuyUserList").empty();//修改成这样就顺利了,⊙﹏⊙b汗
var rows='<tr bgcolor="#F4FAFF" class="blue">'
+'<td height="31" align="center" class="blue14">序号</td>'
+'<td align="center" class="blue14">游戏玩法</td>'
+'<td align="center" class="blue14">赢家</td>'
+'<td align="center" class="blue14">订单个数/期</td>'
+'<td align="center" class="blue14">订购金额/订单</td>'
+'<td align="center" bgcolor="#F4FAFF" class="blue14">跟买订单个数</td>'
+'<td align="center" class="blue14">操作</td>'
+'</tr>';
for(var i=0;i<rel.length;i++){
var autoUnitBuyId="'"+rel[i].autoUnitBuyId+"'";
var gameName="'"+rel[i].gameextName+"'";
var userName="'"+rel[i].userName+"'";
var userUuid="'"+rel[i].userUuid+"'";
var gameId="'"+rel[i].gameExtId+"'";
var xu=i+1;
rows+='<tr>'
+'<td align="center" bgcolor="#FFFFFF"><a href="#" target="_blank">'+xu+'</a></td>'
+'<td align="center" bgcolor="#FFFFFF"><a href="#" target="_blank">'+rel[i].gameextName+'</a></td>'
+'<td align="center" bgcolor="#FFFFFF" class="blue"><a href="javascript:void(0)" onClick="userZponeOpen('+userUuid+')">'+rel[i].userName+'</a></td>'
+'<td align="center" bgcolor="#FFFFFF" class="blue"><a href="#" target="_blank">'+rel[i].orderCount+'</a></td>'
+'<td align="center" bgcolor="#FFFFFF" class="blue">'+rel[i].buyMoney+'</td>'
+'<td align="center" bgcolor="#FFFFFF" class="key_red"><a href="#" target="_blank">'+rel[i].buyCount+'</a></td>'
+'<td align="center" bgcolor="#FFFFFF" class="blue"><span id="tab_4" ><a href="javascript:void(0)" οnclick="xiangxi('+gameName+','+userName+','+autoUnitBuyId+')" >查看详情</a></span> <a href="javascript:void(0)" onClick="userZponeOpen('+userUuid+',\'genmai\','+gameId+')">修改</a> <span id="tab_5" ><a href="javascript:void(0)" οnclick="tabs(\'5\','+userName+','+gameName+','+autoUnitBuyId+')" >撤销</a></span></td>'
+'</tr>';
}
$("#autoBuyUserList").append(rows);
}
});
var rel=data.userAutoUnitBuyList;
if(rel!=null){
//document.getElementById(“autoBuyUserList”).innerHTML=""; //这样写是报错的,调试了一下进入jquery文件里面,恼火
$("#autoBuyUserList").empty();//修改成这样就顺利了,⊙﹏⊙b汗
var rows='<tr bgcolor="#F4FAFF" class="blue">'
+'<td height="31" align="center" class="blue14">序号</td>'
+'<td align="center" class="blue14">游戏玩法</td>'
+'<td align="center" class="blue14">赢家</td>'
+'<td align="center" class="blue14">订单个数/期</td>'
+'<td align="center" class="blue14">订购金额/订单</td>'
+'<td align="center" bgcolor="#F4FAFF" class="blue14">跟买订单个数</td>'
+'<td align="center" class="blue14">操作</td>'
+'</tr>';
for(var i=0;i<rel.length;i++){
var autoUnitBuyId="'"+rel[i].autoUnitBuyId+"'";
var gameName="'"+rel[i].gameextName+"'";
var userName="'"+rel[i].userName+"'";
var userUuid="'"+rel[i].userUuid+"'";
var gameId="'"+rel[i].gameExtId+"'";
var xu=i+1;
rows+='<tr>'
+'<td align="center" bgcolor="#FFFFFF"><a href="#" target="_blank">'+xu+'</a></td>'
+'<td align="center" bgcolor="#FFFFFF"><a href="#" target="_blank">'+rel[i].gameextName+'</a></td>'
+'<td align="center" bgcolor="#FFFFFF" class="blue"><a href="javascript:void(0)" onClick="userZponeOpen('+userUuid+')">'+rel[i].userName+'</a></td>'
+'<td align="center" bgcolor="#FFFFFF" class="blue"><a href="#" target="_blank">'+rel[i].orderCount+'</a></td>'
+'<td align="center" bgcolor="#FFFFFF" class="blue">'+rel[i].buyMoney+'</td>'
+'<td align="center" bgcolor="#FFFFFF" class="key_red"><a href="#" target="_blank">'+rel[i].buyCount+'</a></td>'
+'<td align="center" bgcolor="#FFFFFF" class="blue"><span id="tab_4" ><a href="javascript:void(0)" οnclick="xiangxi('+gameName+','+userName+','+autoUnitBuyId+')" >查看详情</a></span> <a href="javascript:void(0)" onClick="userZponeOpen('+userUuid+',\'genmai\','+gameId+')">修改</a> <span id="tab_5" ><a href="javascript:void(0)" οnclick="tabs(\'5\','+userName+','+gameName+','+autoUnitBuyId+')" >撤销</a></span></td>'
+'</tr>';
}
$("#autoBuyUserList").append(rows);
}
});