Showing
1 changed file
with
11 additions
and
0 deletions
1 | 1 | ||
2 | var $ = require('jquery'), | 2 | var $ = require('jquery'), |
3 | common = require('../../../../common/common'); | 3 | common = require('../../../../common/common'); |
4 | +var date_util=require('./_date_util'); | ||
5 | +var fixDateTime=function(){ | ||
6 | + if(PromotionInfo.startTime&&PromotionInfo.startTime>0){ | ||
7 | + PromotionInfo.startTimeStr=date_util.getDateStr(PromotionInfo.startTime); | ||
8 | + } | ||
9 | + if(PromotionInfo.endTime&&PromotionInfo.endTime>0){ | ||
10 | + PromotionInfo.endTimeStr=date_util.getDateStr(PromotionInfo.endTime); | ||
11 | + } | ||
12 | +} | ||
4 | 13 | ||
5 | 14 | ||
6 | var PromotionInfoRefresh={ | 15 | var PromotionInfoRefresh={ |
@@ -15,6 +24,8 @@ var PromotionInfoRefresh={ | @@ -15,6 +24,8 @@ var PromotionInfoRefresh={ | ||
15 | common.util.__ajax2({url : _g.actionUrl, data:reqData},function(rs){ | 24 | common.util.__ajax2({url : _g.actionUrl, data:reqData},function(rs){ |
16 | if(rs.code == 200){ | 25 | if(rs.code == 200){ |
17 | PromotionInfo=rs.data; | 26 | PromotionInfo=rs.data; |
27 | + //修复日期格式,只修改一次即可 | ||
28 | + fixDateTime(); | ||
18 | _g.tabLoader.loadTabHtml(_g.columnName); | 29 | _g.tabLoader.loadTabHtml(_g.columnName); |
19 | }else{ | 30 | }else{ |
20 | common.util.__tip(rs.message || rs.data.message); | 31 | common.util.__tip(rs.message || rs.data.message); |
-
Please register or login to post a comment