|
|
@@ -1,6 +1,6 @@
|
|
|
import React, {Component} from 'react';
|
|
|
import {FormattedMessage} from 'react-intl';
|
|
|
-import {Layout,Button, Spin, Col, Row, Tabs} from 'antd';
|
|
|
+import {Layout, Button, Spin, Col, Row, Tabs} from 'antd';
|
|
|
|
|
|
import {withRouter} from "react-router-dom";
|
|
|
|
|
|
@@ -9,6 +9,7 @@ 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;
|
|
|
|
|
|
@@ -20,6 +21,7 @@ class App extends Component {
|
|
|
examplesSecond: [],
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
componentWillMount() {
|
|
|
this._isMounted = true;
|
|
|
|
|
|
@@ -59,75 +61,80 @@ class App extends Component {
|
|
|
</div>
|
|
|
</Header>
|
|
|
<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 className='intro-wrapper'>
|
|
|
+ <Row>
|
|
|
+ <Col span={8} offset={12}>
|
|
|
+ <div className="intro" style={{padding: '80px 60px 40px 60px'}}>
|
|
|
+ <h2>无年费 数据完全私有</h2>
|
|
|
+ <h3>即刻拥有自己的微信公众号、小程序</h3>
|
|
|
</div>
|
|
|
- <div className="brief">赶紧来试一试吧!</div>
|
|
|
<div className="home-btn">
|
|
|
<Button type="primary" size='large'
|
|
|
- style={{marginRight:'10px'}}
|
|
|
- onClick={()=>{
|
|
|
+ style={{marginRight: '10px'}}
|
|
|
+ onClick={() => {
|
|
|
this.props.history.push({
|
|
|
pathname: `/common`
|
|
|
- })}}>立即使用
|
|
|
+ })
|
|
|
+ }}>立即使用
|
|
|
+ </Button>
|
|
|
+ <Button type="primary" size='large'
|
|
|
+ style={{margin: '0 10px'}}
|
|
|
+ onClick={() => {
|
|
|
+ this.props.history.push({
|
|
|
+ pathname: `/common/communication`
|
|
|
+ })
|
|
|
+ }}>立即定制
|
|
|
</Button>
|
|
|
<Button size='large'
|
|
|
- style={{marginLeft:'10px'}}
|
|
|
- onClick={()=>{
|
|
|
+ style={{marginLeft: '10px'}}
|
|
|
+ onClick={() => {
|
|
|
this.props.history.push({
|
|
|
pathname: `/developer`
|
|
|
- })}}>开发设计
|
|
|
+ })
|
|
|
+ }}>开发设计
|
|
|
</Button>
|
|
|
</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 className="intro-below" style={{padding: '0 60px'}}>
|
|
|
+ <h4>或致电:177 1810 6480</h4>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- </Col>
|
|
|
- </Row>
|
|
|
+ </Col>
|
|
|
+ </Row>
|
|
|
+ </div>
|
|
|
+
|
|
|
+
|
|
|
+ <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>
|
|
|
+
|
|
|
|
|
|
</Content>
|
|
|
- <Footer style={{ textAlign: 'center' }}>
|
|
|
+ <Footer style={{textAlign: 'center'}}>
|
|
|
版权所有 © 2019 栋天科技
|
|
|
{/*All right ©2019 Created by Ioobot*/}
|
|
|
</Footer>
|
|
|
@@ -140,7 +147,6 @@ class App extends Component {
|
|
|
export default withRouter(App);
|
|
|
|
|
|
|
|
|
-
|
|
|
class CasesShow extends Component {
|
|
|
constructor(props) {
|
|
|
super(props);
|
|
|
@@ -157,7 +163,7 @@ class CasesShow extends Component {
|
|
|
let thisCase = examples[index];
|
|
|
return (
|
|
|
<Row>
|
|
|
- <Col span={12}>
|
|
|
+ <Col span={16}>
|
|
|
<Row>
|
|
|
<div>
|
|
|
<div className={'case-detail-title'}>{thisCase.title}</div>
|
|
|
@@ -171,7 +177,6 @@ class CasesShow extends Component {
|
|
|
/>
|
|
|
<div style={{marginTop: 5}}>—— 打开微信扫码体验 ——</div>
|
|
|
</div>
|
|
|
-
|
|
|
</div>
|
|
|
</Row>
|
|
|
<Row>
|
|
|
@@ -198,7 +203,7 @@ class CasesShow extends Component {
|
|
|
}
|
|
|
</Row>
|
|
|
</Col>
|
|
|
- <Col span={6}>
|
|
|
+ <Col span={8}>
|
|
|
<div className={'detail-images'}>
|
|
|
<img
|
|
|
key={thisCase.detailImages[0]}
|