Commit 08a13c34 authored by wangxuelai's avatar wangxuelai

''

parent 44e882fe
......@@ -20,7 +20,7 @@ export default {
],
"theme": {
"primary-color": "#3366ff",
// "imagesroot": process.env.NODE_ENV === 'production' ? 'http://biz.shangjiadao.com/imagesaaa' : 'http://localhost:80/imagesaaa',
"imagepath": process.env.NODE_ENV !== 'production' ? "'https://cdn.img.shangjiadao.cn/qingxiao/biz/image/'" : "'http://localhost:80/image/'",
},
"proxy": {
// "/api": {
......
<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>轻校</title><link rel="shortcut icon" href="https://cdn.img.shangjiadao.cn/qingxiao/biz/image/qxlogo4.png"><meta name="viewport" content="width=device-width,initial-scale=1"><meta http-equiv="X-UA-Compatible" content="IE=edge"><!-- Polyfills --><!--[if lt IE 10]>
<script src="js/console-polyfill.js"></script>
<![endif]--><script charset="utf-8" src="https://map.qq.com/api/js?v=2.exp&key=XSZBZ-5LHCV-5I2P7-UQHPW-6456F-JBB3B"></script><link href="https://cdn.img.shangjiadao.cn/qingxiao/biz/dist/index.css?1562809012658" rel="stylesheet"><script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/lib/vendor.dll.js?3" charset="utf-8"></script><script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/console-polyfill.js?3" charset="utf-8"></script><script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es6-shim.min.js?3" charset="utf-8"></script><script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es5-shim.js?3" charset="utf-8"></script><script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es5-sham.min.js?3" charset="utf-8"></script><script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/json3.min.js?3" charset="utf-8"></script><script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/html5shiv.min.js?3" charset="utf-8"></script><script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/polyfill.js?3" charset="utf-8"></script></head><body><div id="root"></div><script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/dist/index.js?1562809012658" charset="utf-8"></script></body></html>
\ No newline at end of file
<![endif]--><script charset="utf-8" src="https://map.qq.com/api/js?v=2.exp&key=XSZBZ-5LHCV-5I2P7-UQHPW-6456F-JBB3B"></script><link href="https://cdn.img.shangjiadao.cn/qingxiao/biz/dist/index.css?1563435187810" rel="stylesheet"><script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/lib/vendor.dll.js?3" charset="utf-8"></script><script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/console-polyfill.js?3" charset="utf-8"></script><script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es6-shim.min.js?3" charset="utf-8"></script><script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es5-shim.js?3" charset="utf-8"></script><script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es5-sham.min.js?3" charset="utf-8"></script><script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/json3.min.js?3" charset="utf-8"></script><script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/html5shiv.min.js?3" charset="utf-8"></script><script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/js/polyfill.js?3" charset="utf-8"></script></head><body><div id="root"></div><script src="https://cdn.img.shangjiadao.cn/qingxiao/biz/dist/index.js?1563435187810" charset="utf-8"></script></body></html>
\ No newline at end of file
......@@ -73,5 +73,5 @@
/*Image*/
/*@imagesroot: "//cdn.s.shangjiadao.cn/source/images";*/
// @imagesroot: "http://localhost:81/images";
@imagesroot: "https://cdn.img.shangjiadao.cn/qingxiao/biz/image/";
/*@imagesroot: @{IMAGEPATH};*/
\ No newline at end of file
@imagesroot: @imagepath;
// @imagesroot: "https://cdn.img.shangjiadao.cn/qingxiao/biz/image/";
\ No newline at end of file
import React from 'react';
import { connect } from 'dva';
import { Row, Col, Form, Input, Button, Checkbox, message, Modal, Cascader } from 'antd';
import LoginStyles from './index.less';
class SchoolAddForm extends React.Component {
constructor(props) {
super(props);
this.state = {
};
}
componentDidMount() {
const { dispatch, longitude, latitude } = this.props;
const that = this;
}
componentWillUnmount() {
const { dispatch } = this.props;
dispatch({
type: 'register/unloadstate',
});
dispatch({
type: 'resetpsd/unloadstate',
});
}
render() {
const gutter = {
xs: 8, sm: 16, md: 24, lg: 32,
};
return (
<div>
<Row gutter={gutter}>
<Col className={LoginStyles.col} xs={{ span: 6 }} sm={{ span: 12 }}>
<div className="gutter-box">col-12 push</div>
</Col>
<Col className={LoginStyles.col} xs={{ span: 6 }} sm={{ span: 12 }}>
<div className="gutter-box">col-12</div>
</Col>
</Row>
<Row gutter="16">
<Col className={LoginStyles.col} span={8}>
<div className="gutter-box">col-8</div>
</Col>
<Col className={LoginStyles.col} span={8}>
<div className="gutter-box">col-8</div>
</Col>
<Col className={LoginStyles.col} span={8}>
<div className="gutter-box">col-8</div>
</Col>
</Row>
<Row>
<Col className={LoginStyles.col} span={6}>
<div className="gutter-box">col-6</div>
</Col>
<Col className={LoginStyles.col} span={6}>
<div className="gutter-box">col-6</div>
</Col>
<Col className={LoginStyles.col} span={6}>
<div className="gutter-box">col-6</div>
</Col>
<Col className={LoginStyles.col} span={6}>
<div className="gutter-box">col-6</div>
</Col>
</Row>
</div>
);
}
}
const SchoolAdd = Form.create()(SchoolAddForm);
SchoolAdd.propTypes = {
};
function mapStateToProps(state) {
const {
categorys, selectcategorys, locationAddress, longitude, latitude,
} = state.schooladd;
return {
categorys,
selectcategorys,
locationAddress,
longitude,
latitude,
};
}
export default connect(mapStateToProps)(SchoolAdd);
@import '../../less/variables.less';
.col {
}
:global {
.gutter-box {
// background-color: @primary-path;
background-image: url('@{imagesroot}loginbg.png');
}
}
\ No newline at end of file
......@@ -54,7 +54,11 @@ const SchoolAdd = props => (
{ SchoolAdd => (<SchoolAdd {...props} />) }
</Bundle>
);
const Test = props => (
<Bundle load={() => import(/* webpackChunkName:"test" */'./pages/test/index')}>
{ Test => (<Test {...props} />) }
</Bundle>
);
function RouterConfig({ history }) {
return (
......@@ -78,6 +82,7 @@ function RouterConfig({ history }) {
<Route path="/login" exact component={Login} />
<Route path="/register" exact component={Register} />
<Route path="/resetpsd" exact component={ResetPsd} />
<Route path="/test" exact component={Test} />
<Route render={() => (<Errorpage />)} />
</Switch>
</Router>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment