...
|
...
|
@@ -3,6 +3,7 @@ var $ = require('jquery'), |
|
|
common = require('../../../common/common'),
|
|
|
rejectPromotions=require('./partials/edit_reject');
|
|
|
var baseInfoEdit=require('./partials/edit_baseinfo');
|
|
|
var date_util=require('./partials/_date_util');
|
|
|
/*
|
|
|
* 获取业务数据
|
|
|
*/
|
...
|
...
|
@@ -39,10 +40,20 @@ var ENUM = { |
|
|
{en:"reject",cn:"互斥促销"},
|
|
|
{en:"display",cn:"促销显示"},]
|
|
|
};
|
|
|
var fixDateTime=function(){
|
|
|
if(PromotionInfo.startTime&&PromotionInfo.startTime>0){
|
|
|
PromotionInfo.startTime=date_util.getDateStr(PromotionInfo.startTime);
|
|
|
}
|
|
|
if(PromotionInfo.endTime&&PromotionInfo.endTime>0){
|
|
|
PromotionInfo.endTime=date_util.getDateStr(PromotionInfo.endTime);
|
|
|
}
|
|
|
}
|
|
|
//修复日期格式,只修改一次即可
|
|
|
fixDateTime();
|
|
|
//加载显示tab页内容
|
|
|
var loadTabHtml=function(columnname){
|
|
|
var default_html="<a href='#'>bad error</a>";
|
|
|
if (columnname === ENUM.tabName[0].en) {//baseinfo
|
|
|
if (columnname === ENUM.tabName[0].en) {//baseinfo
|
|
|
var html_baseinfo=common.util.__template2($("#fm_baseInfo").html(), PromotionInfo);
|
|
|
$("#tab_body").html(html_baseinfo);
|
|
|
baseInfoEdit.load({promotionId:PromotionInfo.id});
|
...
|
...
|
|