Authored by chenchao

add html files

... ... @@ -22,7 +22,19 @@
<%include './__fragement/base_info'%>
</script>
<script type="text/template" id="fm_reject">
<div class="dataTables_length" id="basicTable_promotion">
</div>
<div class="dataTables_length" id="basicTable_promotion"></div>
</script>
<script type="text/template" id="fm_condition">
<%include './__fragement/condition'%>
</script>
<script type="text/template" id="fm_operation">
<%include './__fragement/operation'%>
</script>
<script type="text/template" id="fm_limit">
<%include './__fragement/limit'%>
</script>
<script type="text/template" id="fm_display">
<%include './__fragement/display'%>
</script>
<%include '../../../common/views/__ui/footer'%>
\ No newline at end of file
... ...
<div class="row">
it is condition
</div>
\ No newline at end of file
... ...
<div class="row">
it is limit
</div>
\ No newline at end of file
... ...
<div class="row">
it is operation
</div>
\ No newline at end of file
... ...
<div class="row">
it is reject
</div>
\ No newline at end of file
... ...
... ... @@ -240,23 +240,27 @@ var t = new common.tab2({
active: 6,
click: function () {
var columnname = t.options.columns[t.options.active].name;
if (columnname === ENUM.tabName[0].en) {
var default_html="<a href='#'>维护中。。。</a>";
if (columnname === ENUM.tabName[0].en) {//baseinfo
var html_baseinfo=$("#fm_baseInfo").html();
$("#tab_body").html(html_baseinfo);
}else if(columnname === ENUM.tabName[1].en) {
} else if(columnname === ENUM.tabName[2].en) {
}else if(columnname === ENUM.tabName[3].en) {
}else if(columnname === ENUM.tabName[4].en) {
}else if(columnname === ENUM.tabName[1].en) {//condition
var html_condition = $("#fm_condition").html()||default_html;
$("#tab_body").html(html_condition);
} else if(columnname === ENUM.tabName[2].en) {//operation
var html_operation = $("#fm_operation").html()||default_html;
$("#tab_body").html(html_operation);
}else if(columnname === ENUM.tabName[3].en) {//limit
var html_limit = $("#fm_limit").html()||default_html;
$("#tab_body").html(html_limit);
}else if(columnname === ENUM.tabName[4].en) {//reject
// 加载促销列表
var html_promotions=$("#fm_reject").html();
$("#tab_body").html(html_promotions);
rejectPromotions.init();
}else if(columnname === ENUM.tabName[5].en) {
}else if(columnname === ENUM.tabName[5].en) {//display
var html_display = $("#fm_display").html()||default_html;
$("#tab_body").html(html_display);
}
},
... ...