|
@@ -15,12 +15,12 @@ class Content extends Component {
|
|
|
if (window.location.hash) {
|
|
|
this.getKey(window.location.hash.substr(1));
|
|
|
} else {
|
|
|
- this.getKey("myClient");
|
|
|
+ this.getKey("myOrganization");
|
|
|
};
|
|
|
}
|
|
|
getKey(key) {
|
|
|
switch (key) {
|
|
|
- case 'myClient':
|
|
|
+ case 'myOrganization':
|
|
|
require.ensure([], () => {
|
|
|
const MyClient = require('./customerData/myClient').default;
|
|
|
this.setState({
|
|
@@ -30,7 +30,7 @@ class Content extends Component {
|
|
|
});
|
|
|
break;
|
|
|
|
|
|
- case 'companyCustomer':
|
|
|
+ case 'organizationQuery':
|
|
|
require.ensure([], () => {
|
|
|
const CompanyCustomer = require('./customerData/companyCustomer').default;
|
|
|
this.setState({
|
|
@@ -38,7 +38,7 @@ class Content extends Component {
|
|
|
});
|
|
|
});
|
|
|
break;
|
|
|
- case 'individualCustomer':
|
|
|
+ case 'myPersonal':
|
|
|
require.ensure([], () => {
|
|
|
const IndividualCustomer = require('./individualCustomer/individualCustomer').default;
|
|
|
this.setState({
|
|
@@ -47,7 +47,7 @@ class Content extends Component {
|
|
|
});
|
|
|
});
|
|
|
break;
|
|
|
- case 'queryCustomer':
|
|
|
+ case 'personalQuery':
|
|
|
require.ensure([], () => {
|
|
|
const QueryCustomer = require('./individualCustomer/queryCustomer').default;
|
|
|
this.setState({
|
|
@@ -64,7 +64,7 @@ class Content extends Component {
|
|
|
});
|
|
|
});
|
|
|
break;
|
|
|
- case 'serviceQuery':
|
|
|
+ case 'businessQuery':
|
|
|
require.ensure([], () => {
|
|
|
const ServiceQuery = require('./customerService/serviceQuery').default;
|
|
|
this.setState({
|
|
@@ -96,7 +96,161 @@ class Content extends Component {
|
|
|
});
|
|
|
});
|
|
|
break;
|
|
|
+
|
|
|
+ //新增空白
|
|
|
+ //我的客户
|
|
|
+ case 'myInvestment': //我的投资机构
|
|
|
+ require.ensure([], () => {
|
|
|
+ const Module = require('../module').default;
|
|
|
+ this.setState({
|
|
|
+ component: <Module />,
|
|
|
+ });
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ case 'myExpert': //我的专家
|
|
|
+ require.ensure([], () => {
|
|
|
+ const Module = require('../module').default;
|
|
|
+ this.setState({
|
|
|
+ component: <Module />,
|
|
|
+ });
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ case 'myConsultant': //我的咨询师
|
|
|
+ require.ensure([], () => {
|
|
|
+ const Module = require('../module').default;
|
|
|
+ this.setState({
|
|
|
+ component: <Module />,
|
|
|
+ });
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ //客户查询
|
|
|
+ case 'investmentQuery': //投资机构查询
|
|
|
+ require.ensure([], () => {
|
|
|
+ const Module = require('../module').default;
|
|
|
+ this.setState({
|
|
|
+ component: <Module />,
|
|
|
+ });
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ case 'expertQuery': //专家查询
|
|
|
+ require.ensure([], () => {
|
|
|
+ const Module = require('../module').default;
|
|
|
+ this.setState({
|
|
|
+ component: <Module />,
|
|
|
+ });
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ case 'consultantQuery': //咨询师查询
|
|
|
+ require.ensure([], () => {
|
|
|
+ const Module = require('../module').default;
|
|
|
+ this.setState({
|
|
|
+ component: <Module />,
|
|
|
+ });
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ //客户管理
|
|
|
+ case 'organizationManage': //单位客户管理
|
|
|
+ require.ensure([], () => {
|
|
|
+ const Module = require('../module').default;
|
|
|
+ this.setState({
|
|
|
+ component: <Module />,
|
|
|
+ });
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ case 'personalManage': //个人客户管理
|
|
|
+ require.ensure([], () => {
|
|
|
+ const Module = require('../module').default;
|
|
|
+ this.setState({
|
|
|
+ component: <Module />,
|
|
|
+ });
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ case 'investmentManage': //投资机构管理
|
|
|
+ require.ensure([], () => {
|
|
|
+ const Module = require('../module').default;
|
|
|
+ this.setState({
|
|
|
+ component: <Module />,
|
|
|
+ });
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ case 'expertManage': //专家管理
|
|
|
+ require.ensure([], () => {
|
|
|
+ const Module = require('../module').default;
|
|
|
+ this.setState({
|
|
|
+ component: <Module />,
|
|
|
+ });
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ case 'consultantManage': //咨询师管理
|
|
|
+ require.ensure([], () => {
|
|
|
+ const Module = require('../module').default;
|
|
|
+ this.setState({
|
|
|
+ component: <Module />,
|
|
|
+ });
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ //客户审核
|
|
|
+ case 'identityAudit': //实名认证审核
|
|
|
+ require.ensure([], () => {
|
|
|
+ const Module = require('../module').default;
|
|
|
+ this.setState({
|
|
|
+ component: <Module />,
|
|
|
+ });
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ case 'expertAudit': //专家申请审核
|
|
|
+ require.ensure([], () => {
|
|
|
+ const Module = require('../module').default;
|
|
|
+ this.setState({
|
|
|
+ component: <Module />,
|
|
|
+ });
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ case 'memberAudit': //会员申请审核
|
|
|
+ require.ensure([], () => {
|
|
|
+ const Module = require('../module').default;
|
|
|
+ this.setState({
|
|
|
+ component: <Module />,
|
|
|
+ });
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ //客户发布
|
|
|
+ case 'investmentPublish': //投资机构发布
|
|
|
+ require.ensure([], () => {
|
|
|
+ const Module = require('../module').default;
|
|
|
+ this.setState({
|
|
|
+ component: <Module />,
|
|
|
+ });
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ case 'expertPublish': //专家发布
|
|
|
+ require.ensure([], () => {
|
|
|
+ const Module = require('../module').default;
|
|
|
+ this.setState({
|
|
|
+ component: <Module />,
|
|
|
+ });
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ case 'consultantPublish': //咨询师发布
|
|
|
+ require.ensure([], () => {
|
|
|
+ const Module = require('../module').default;
|
|
|
+ this.setState({
|
|
|
+ component: <Module />,
|
|
|
+ });
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ //客户业务
|
|
|
+ case 'businessManage': //业务管理
|
|
|
+ require.ensure([], () => {
|
|
|
+ const Module = require('../module').default;
|
|
|
+ this.setState({
|
|
|
+ component: <Module />,
|
|
|
+ });
|
|
|
+ });
|
|
|
+ break;
|
|
|
+
|
|
|
};
|
|
|
+
|
|
|
window.location.hash = key;
|
|
|
}
|
|
|
render() {
|