|
|
@@ -8,6 +8,7 @@ import './developVersion/index.css';
|
|
|
import {request} from 'graphql-request'
|
|
|
import {graphqlUrl} from "../config";
|
|
|
import {SHOW_ALL_CASE} from "../gql";
|
|
|
+import './index.css';
|
|
|
const {Header, Footer, Content} = Layout;
|
|
|
const TabPane = Tabs.TabPane;
|
|
|
|
|
|
@@ -57,61 +58,73 @@ class App extends Component {
|
|
|
<div className='logo'/>
|
|
|
</div>
|
|
|
</Header>
|
|
|
- <Content >
|
|
|
- <div className="index" >
|
|
|
- <div className="intro" style={{ padding: '30px' }}>
|
|
|
- <Row gutter={16}>
|
|
|
- <Col span={24}>
|
|
|
- <h2>无年费 数据完全私有</h2>
|
|
|
- <h3>即刻拥有自己的微信公众号、小程序</h3>
|
|
|
- </Col>
|
|
|
- </Row>
|
|
|
- </div>
|
|
|
- <div className="brief">赶紧来试一试吧!</div>
|
|
|
- <div className="home-btn">
|
|
|
- <Button type="primary" size='large'
|
|
|
- style={{marginRight:'10px'}}
|
|
|
- onClick={()=>{
|
|
|
- this.props.history.push({
|
|
|
- pathname: `/common`
|
|
|
- })}}>立即使用
|
|
|
- </Button>
|
|
|
- <Button size='large'
|
|
|
- style={{marginLeft:'10px'}}
|
|
|
- onClick={()=>{
|
|
|
- this.props.history.push({
|
|
|
- pathname: `/developer`
|
|
|
- })}}>开发设计
|
|
|
- </Button>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div style={{marginLeft: 200}}>
|
|
|
- <Tabs tabPosition='left' size='large' tabBarStyle={tabStyle} tabBarGutter={100}>
|
|
|
- <TabPane tab="预约" key="1">
|
|
|
- <div style={{marginLeft: 100}}>
|
|
|
- {
|
|
|
- examplesFirst.length === 0 ?
|
|
|
- <Spin/> :
|
|
|
- <BaiduShow
|
|
|
- examples={examplesFirst}
|
|
|
- />
|
|
|
- }
|
|
|
+ <Content>
|
|
|
+ <Row>
|
|
|
+ <div className='intro-wrapper'>
|
|
|
+ <div className="index" >
|
|
|
+ <div className="intro" style={{ padding: '30px' }}>
|
|
|
+ <Row gutter={16}>
|
|
|
+ <Col span={24}>
|
|
|
+ <h2>无年费 数据完全私有</h2>
|
|
|
+ <h3>即刻拥有自己的微信公众号、小程序</h3>
|
|
|
+ </Col>
|
|
|
+ </Row>
|
|
|
</div>
|
|
|
- </TabPane>
|
|
|
- <TabPane tab="电商" key="2">
|
|
|
- <div style={{marginLeft: 100}}>
|
|
|
- {
|
|
|
- examplesSecond.length === 0 ?
|
|
|
- <Spin/> :
|
|
|
- <BaiduShow
|
|
|
- examples={examplesSecond}
|
|
|
- />
|
|
|
- }
|
|
|
+ <div className="brief">赶紧来试一试吧!</div>
|
|
|
+ <div className="home-btn">
|
|
|
+ <Button type="primary" size='large'
|
|
|
+ style={{marginRight:'10px'}}
|
|
|
+ onClick={()=>{
|
|
|
+ this.props.history.push({
|
|
|
+ pathname: `/common`
|
|
|
+ })}}>立即使用
|
|
|
+ </Button>
|
|
|
+ <Button size='large'
|
|
|
+ style={{marginLeft:'10px'}}
|
|
|
+ onClick={()=>{
|
|
|
+ this.props.history.push({
|
|
|
+ pathname: `/developer`
|
|
|
+ })}}>开发设计
|
|
|
+ </Button>
|
|
|
</div>
|
|
|
- </TabPane>
|
|
|
- </Tabs>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </Row>
|
|
|
+
|
|
|
+
|
|
|
+ <Row>
|
|
|
+ <Col span={14} offset={5}>
|
|
|
+ <div className={'cases-show-wrapper'}>
|
|
|
+ <div className={'cases-show-title'}>行业模板案例</div>
|
|
|
+ <div className={'case-show-tabs'}>
|
|
|
+ <Tabs tabPosition='left' size='large' tabBarStyle={tabStyle} tabBarGutter={100}>
|
|
|
+ <TabPane tab="预约" key="1">
|
|
|
+ <div style={{marginLeft: 100}}>
|
|
|
+ {
|
|
|
+ examplesFirst.length === 0 ?
|
|
|
+ <Spin/> :
|
|
|
+ <CasesShow
|
|
|
+ examples={examplesFirst}
|
|
|
+ />
|
|
|
+ }
|
|
|
+ </div>
|
|
|
+ </TabPane>
|
|
|
+ <TabPane tab="电商" key="2">
|
|
|
+ <div style={{marginLeft: 100}}>
|
|
|
+ {
|
|
|
+ examplesSecond.length === 0 ?
|
|
|
+ <Spin/> :
|
|
|
+ <CasesShow
|
|
|
+ examples={examplesSecond}
|
|
|
+ />
|
|
|
+ }
|
|
|
+ </div>
|
|
|
+ </TabPane>
|
|
|
+ </Tabs>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </Col>
|
|
|
+ </Row>
|
|
|
|
|
|
</Content>
|
|
|
<Footer style={{ textAlign: 'center' }}>
|
|
|
@@ -128,7 +141,7 @@ export default withRouter(App);
|
|
|
|
|
|
|
|
|
|
|
|
-class BaiduShow extends Component {
|
|
|
+class CasesShow extends Component {
|
|
|
constructor(props) {
|
|
|
super(props);
|
|
|
console.log(props);
|