Authored by tanling

t+n

... ... @@ -271,8 +271,19 @@ if (type == 'add') {
$.extend(window.ViewModel, res.data);
couponBean.limitStartTime = Bll.getTime(couponBean.limitStartTime);
couponBean.startTime = Bll.getTime(couponBean.startTime);
couponBean.endTime = Bll.getTime(couponBean.endTime);
if (couponBean.startTime == 0 ){
couponBean.startTime = null;
}else{
couponBean.startTime = Bll.getTime(couponBean.startTime);
}
if (couponBean.endTime == 0){
couponBean.endTime = null;
}else{
couponBean.endTime = Bll.getTime(couponBean.endTime);
}
Bll.selectSorts = couponBean.sortList || [];
//店铺数据
Bll.selectShops = couponBean.shopList || [];
... ...
... ... @@ -124,9 +124,7 @@ var g = new common.grid({
},
{
display: "使用期限", render: function (item) {
var startTime = Bll.getTime(item.startTime);
var endTime = Bll.getTime(item.endTime);
return startTime + "</br> 至 " + endTime;
return item.usePeriodStr;
}
},
{
... ...