...
|
...
|
@@ -26,7 +26,9 @@ webpackJsonp([82],[ |
|
|
{display:"单券号",name:"couponCode"},
|
|
|
{display:"订单号",name:"orderCode"},
|
|
|
{display:"优惠券名称",name:"couponName"},
|
|
|
{display:"有效期",name:"endTimeStr"},
|
|
|
{display:"有效期", render: function(item) {
|
|
|
return '<p>' + date_fuction(item.startTime) + '--' + item.endTimeStr + '</p>';
|
|
|
}},
|
|
|
{display:"状态",render: function(item) {
|
|
|
var status = "";
|
|
|
if(item.status == 0) {
|
...
|
...
|
@@ -124,5 +126,21 @@ webpackJsonp([82],[ |
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
function date_fuction(shijianchuo)
|
|
|
{
|
|
|
//shijianchuo是整数,否则要parseInt转换
|
|
|
var time = new Date(shijianchuo * 1000);
|
|
|
var y = time.getFullYear();
|
|
|
var m = time.getMonth()+1;
|
|
|
var d = time.getDate();
|
|
|
var h = time.getHours();
|
|
|
var mm = time.getMinutes();
|
|
|
var s = time.getSeconds();
|
|
|
return y+'-'+add0(m)+'-'+add0(d)+' '+add0(h)+':'+add0(mm)+':'+add0(s);
|
|
|
}
|
|
|
|
|
|
function add0(m){return m<10?'0'+m:m }
|
|
|
|
|
|
/***/ }
|
|
|
]); |
|
|
\ No newline at end of file |
...
|
...
|
|