...
|
...
|
@@ -39,13 +39,8 @@ var ENUM = { |
|
|
{en:"reject",cn:"互斥促销"},
|
|
|
{en:"display",cn:"促销显示"},]
|
|
|
};
|
|
|
|
|
|
//tab 页组件
|
|
|
var t = new common.tab2({
|
|
|
el: "#basicTab",
|
|
|
active: 0,
|
|
|
click: function () {
|
|
|
var columnname = t.options.columns[t.options.active].name;
|
|
|
//加载显示tab页内容
|
|
|
var loadTabHtml=function(columnname){
|
|
|
var default_html="<a href='#'>bad error</a>";
|
|
|
if (columnname === ENUM.tabName[0].en) {//baseinfo
|
|
|
var html_baseinfo=$("#fm_baseInfo").html();
|
...
|
...
|
@@ -68,7 +63,14 @@ var t = new common.tab2({ |
|
|
var html_display = $("#fm_display").html()||default_html;
|
|
|
$("#tab_body").html(html_display);
|
|
|
}
|
|
|
|
|
|
}
|
|
|
//tab 页组件
|
|
|
var t = new common.tab2({
|
|
|
el: "#basicTab",
|
|
|
active: 0,
|
|
|
click: function () {
|
|
|
var columnname = t.options.columns[t.options.active].name;
|
|
|
loadTabHtml(columnname);
|
|
|
},
|
|
|
columns: [{
|
|
|
name: ENUM.tabName[0].en,
|
...
|
...
|
@@ -96,5 +98,5 @@ var t = new common.tab2({ |
|
|
display: ENUM.tabName[5].cn
|
|
|
}]
|
|
|
}).init(ENUM.tab);
|
|
|
|
|
|
|
|
|
//默认加载
|
|
|
loadTabHtml(t.options.columns[t.options.active].name); |
...
|
...
|
|