content.jsx 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. //新开发账户管理
  2. import React from 'react';
  3. import Account from '@/account/setAccount/account';
  4. import Unit from '@/account/setAccount/unit';
  5. import Personal from '@/account/setAccount/personal';
  6. import Contacts from '@/account/setAccount/contacts';
  7. import Expert from '@/account/setAccount/expert';
  8. //会员中心
  9. import Normal from '@/account/index/normal';
  10. import Collection from '@/account/index/collection';
  11. import TechList from '@/account/index/techList';
  12. import ServiceList from '@/account/index/serviceList';
  13. import ConsultList from '@/account/index/consultList';
  14. import DemandList from '@/account/demand/techDemand';
  15. import Achievement from '@/account/achievement/techAchievement';
  16. import BusinessProject from '@/account/business/businessProject';
  17. import Follow from "@/account/index/follow";
  18. import MemberOrderX from "@/account/order/memberOrderX";
  19. import MemberOrderS from "@/account/order/memberOrderS";
  20. import AchievementOrderX from "@/account/order/achievementOrderX";
  21. import AchievementOrderS from "@/account/order/achievementOrderS";
  22. import DemandOrderX from "@/account/order/demandOrderX";
  23. import DemandOrderS from "@/account/order/demandOrderS";
  24. import ProjectOrderX from "@/account/order/projectOrderX";
  25. import ProjectOrderS from "@/account/order/projectOrderS";
  26. import ExpertX from "@/account/order/expertX";
  27. import ExpertS from "@/account/order/expertS";
  28. import AdviserX from "@/account/order/adviserX";
  29. import AdviserS from "@/account/order/adviserS";
  30. import Evaluate from "@/account/evaluate/index";
  31. import Vouchers from '@/account/ticket/vouchers';
  32. import Coupon from '@/account/ticket/coupon';
  33. import {hashHistory,Route,Router} from 'react-router';
  34. import {Layout} from 'antd';
  35. import '@/account/content.less';
  36. const { Content } = Layout;
  37. export default class ContentRouter extends React.Component {
  38. render() {
  39. return (
  40. <Content className="acc-content" id="content">
  41. <Router history={hashHistory}>
  42. <Route path="/normal" component={Normal} />
  43. <Route path="/collection" component={Collection} />
  44. <Route path="/follow" component={Follow} />
  45. <Route path="/techList" component={TechList} />
  46. <Route path="/serviceList" component={ServiceList} />
  47. <Route path="/consultList" component={ConsultList} />
  48. <Route path="/account" component={Account} />
  49. <Route path="/unit" component={Unit} />
  50. <Route path="/personal" component={Expert} />
  51. <Route path="/contacts" component={Contacts} />
  52. <Route path="/demand" component={DemandList} />
  53. <Route path="/achievement" component={Achievement} />
  54. {/* <Route path="/expert" component={Expert} /> */}
  55. <Route path="/businessProject" component={BusinessProject} />
  56. <Route path="/memberOrderX" component={MemberOrderX} />
  57. <Route path="/memberOrderS" component={MemberOrderS} />
  58. <Route path="/achievementOrderX" component={AchievementOrderX} />
  59. <Route path="/achievementOrderS" component={AchievementOrderS} />
  60. <Route path="/demandOrderX" component={DemandOrderX} />
  61. <Route path="/demandOrderS" component={DemandOrderS} />
  62. <Route path="/projectOrderX" component={ProjectOrderX} />
  63. <Route path="/projectOrderS" component={ProjectOrderS} />
  64. <Route path="/expertX" component={ExpertX} />
  65. <Route path="/expertS" component={ExpertS} />
  66. <Route path="/adviserX" component={AdviserX} />
  67. <Route path="/adviserS" component={AdviserS} />
  68. <Route path="/evaluate" component={Evaluate} />
  69. <Route path="/vouchers" component={Vouchers} />
  70. <Route path="/coupon" component={Coupon} />
  71. </Router>
  72. </Content>
  73. )
  74. }
  75. }