|
@@ -5,10 +5,7 @@ import { companySearch ,getActives} from '../tools.js';
|
|
|
import './topTab.less';
|
|
|
import ajax from 'jquery/src/ajax/xhr.js'
|
|
|
import $ from 'jquery/src/ajax';
|
|
|
-
|
|
|
-
|
|
|
import logo from '../../../image/acc-logo.png';
|
|
|
-
|
|
|
const MessageModal = React.createClass({
|
|
|
getInitialState() {
|
|
|
return {
|
|
@@ -450,14 +447,15 @@ const TopTab = React.createClass({
|
|
|
};
|
|
|
let menu=data.data;
|
|
|
var htmlMenu=[];
|
|
|
+ console.log(globalConfig.context)
|
|
|
for(var i=0;i<menu.length;i++){
|
|
|
if(menu.length>7){
|
|
|
htmlMenu.push(
|
|
|
- <Col key={i} className={this.props.active === getActives(menu[i].name) ? 'active' : ''} span={2}><a href={globalConfig.context + menu[i].url+'?rid='+menu[i].id}>{menu[i].name}</a></Col>,
|
|
|
+ <Col key={i} className={this.props.active === getActives(menu[i].name) ? 'active' : ''} span={2}><a href={globalConfig.context + menu[i].url+'?rid='+menu[i].id}>{menu[i].name}</a></Col>
|
|
|
)
|
|
|
}else{
|
|
|
htmlMenu.push(
|
|
|
- <Col key={i} className={this.props.active === getActives(menu[i].name) ? 'active' : ''} span={3}><a href={globalConfig.context + menu[i].url+'?rid='+menu[i].id}>{menu[i].name}</a></Col>,
|
|
|
+ <Col key={i} className={this.props.active === getActives(menu[i].name) ? 'active' : ''} span={3}><a href={globalConfig.context + menu[i].url+'?rid='+menu[i].id}>{menu[i].name}</a></Col>
|
|
|
)
|
|
|
}
|
|
|
}
|