Authored by chenchao

add html files

@@ -22,7 +22,19 @@ @@ -22,7 +22,19 @@
22 <%include './__fragement/base_info'%> 22 <%include './__fragement/base_info'%>
23 </script> 23 </script>
24 <script type="text/template" id="fm_reject"> 24 <script type="text/template" id="fm_reject">
25 - <div class="dataTables_length" id="basicTable_promotion">  
26 - </div> 25 + <div class="dataTables_length" id="basicTable_promotion"></div>
27 </script> 26 </script>
  27 +<script type="text/template" id="fm_condition">
  28 + <%include './__fragement/condition'%>
  29 +</script>
  30 +<script type="text/template" id="fm_operation">
  31 + <%include './__fragement/operation'%>
  32 +</script>
  33 +<script type="text/template" id="fm_limit">
  34 + <%include './__fragement/limit'%>
  35 +</script>
  36 +<script type="text/template" id="fm_display">
  37 + <%include './__fragement/display'%>
  38 +</script>
  39 +
28 <%include '../../../common/views/__ui/footer'%> 40 <%include '../../../common/views/__ui/footer'%>
  1 +<div class="row">
  2 +it is condition
  3 +</div>
  1 +<div class="row">
  2 +it is limit
  3 +</div>
  1 +<div class="row">
  2 +it is operation
  3 +</div>
  1 +<div class="row">
  2 +it is reject
  3 +</div>
@@ -240,23 +240,27 @@ var t = new common.tab2({ @@ -240,23 +240,27 @@ var t = new common.tab2({
240 active: 6, 240 active: 6,
241 click: function () { 241 click: function () {
242 var columnname = t.options.columns[t.options.active].name; 242 var columnname = t.options.columns[t.options.active].name;
243 -  
244 - if (columnname === ENUM.tabName[0].en) { 243 + var default_html="<a href='#'>维护中。。。</a>";
  244 + if (columnname === ENUM.tabName[0].en) {//baseinfo
245 var html_baseinfo=$("#fm_baseInfo").html(); 245 var html_baseinfo=$("#fm_baseInfo").html();
246 $("#tab_body").html(html_baseinfo); 246 $("#tab_body").html(html_baseinfo);
247 - }else if(columnname === ENUM.tabName[1].en) {  
248 -  
249 - } else if(columnname === ENUM.tabName[2].en) {  
250 -  
251 - }else if(columnname === ENUM.tabName[3].en) {  
252 -  
253 - }else if(columnname === ENUM.tabName[4].en) { 247 + }else if(columnname === ENUM.tabName[1].en) {//condition
  248 + var html_condition = $("#fm_condition").html()||default_html;
  249 + $("#tab_body").html(html_condition);
  250 + } else if(columnname === ENUM.tabName[2].en) {//operation
  251 + var html_operation = $("#fm_operation").html()||default_html;
  252 + $("#tab_body").html(html_operation);
  253 + }else if(columnname === ENUM.tabName[3].en) {//limit
  254 + var html_limit = $("#fm_limit").html()||default_html;
  255 + $("#tab_body").html(html_limit);
  256 + }else if(columnname === ENUM.tabName[4].en) {//reject
254 // 加载促销列表 257 // 加载促销列表
255 var html_promotions=$("#fm_reject").html(); 258 var html_promotions=$("#fm_reject").html();
256 $("#tab_body").html(html_promotions); 259 $("#tab_body").html(html_promotions);
257 rejectPromotions.init(); 260 rejectPromotions.init();
258 - }else if(columnname === ENUM.tabName[5].en) {  
259 - 261 + }else if(columnname === ENUM.tabName[5].en) {//display
  262 + var html_display = $("#fm_display").html()||default_html;
  263 + $("#tab_body").html(html_display);
260 } 264 }
261 265
262 }, 266 },