1、先给出问题解决后的代码
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
添加优惠券步骤2
";
else
return "";
}
},{field : 'categoryId',title : '分类',row){
var cates = row.categorys;
for(var i=0;i是";
} else{
return "否";
}
}
},{field : 'lastUpdate',title : '上架时间',row){
var thisDate = new Date(row.lastUpdate);
return formatterDate(thisDate);
}
}
] ],toolbar:'#tb'
});
//搜索框
/* $("#searchbox").searchbox({
menu:"#mm",prompt :'模糊查询',searcher:function(value,name){
var str="{\"searchName\":\""+name+"\",\"searchValue\":\""+value+"\"}";
var obj = eval('('+str+')');
$dg.datagrid('reload',obj);
}
}); */
});
function addCheckedGoodIdToArray(rowIndex,rowData){
console.log("_________________________");
var idsArrayLength = idsArray.length;
if(idsArray.length == 0){
console.log("push:"+rowData.goodsId);
idsArray.push(rowData.goodsId);
}else{
for(var index=0;index0){
$.each(rows,row){
if(idsArray.length == 0){
idsArray.push(row.goodsId);
}else{
for(var index=0;index0){
$.each(rows,row){
if(idsArray.length > 0){
for(var index=0;index0){
ids = '';
for(var index=0;index= 10 ? (date.getMonth() + 1) : "0"
+ (date.getMonth() + 1))
+ "-"// "月"
+ (date.getDate() < 10 ? "0" + date.getDate() : date
.getDate())
+ " "
+ (date.getHours() < 10 ? "0" + date.getHours() : date
.getHours())
+ ":"
+ (date.getMinutes() < 10 ? "0" + date.getMinutes() : date
.getMinutes())
+ ":"
+ (date.getSeconds() < 10 ? "0" + date.getSeconds() : date
.getSeconds());
return datetime;
}
function removeArrayValue(arr,val) {
for(var i=0; i
1:填写优惠券基本信息 —————————— 2:选择优惠券中的商品 —————————— 3:保存并生成优惠券