Commit fac43759 by 万亚飞

fix

parent 9a407488
...@@ -33,8 +33,11 @@ class App extends React.Component { ...@@ -33,8 +33,11 @@ class App extends React.Component {
search = search.substr(1).split('&'); search = search.substr(1).split('&');
let obj = {}; let obj = {};
search.forEach(item => { search.forEach(item => {
if (item) {
console.log(item);
let it = item.match(/(.+)=(.+)/); let it = item.match(/(.+)=(.+)/);
obj[it[1]] = it[2]; obj[it[1]] = it[2];
}
}); });
return obj; return obj;
} }
......
import React, { Component } from 'react'; import React, { Component } from 'react';
import Layout from '../../Components/static/Layout/Layout';
import { List, Icon, Button, Toast } from 'antd-mobile'; import { List, Icon, Button, Toast } from 'antd-mobile';
import app from '../../static/js/native'; import app from '../../static/js/native';
import fetch from '../../api/fetch'; import fetch from '../../api/fetch';
...@@ -185,7 +184,6 @@ export default class DepositPay extends Component { ...@@ -185,7 +184,6 @@ export default class DepositPay extends Component {
</div> </div>
); );
return ( return (
<Layout title={title} border="true">
<div className="bg-grey-bj deposit-wrap"> <div className="bg-grey-bj deposit-wrap">
{isQualityType ? ( {isQualityType ? (
<div> <div>
...@@ -209,7 +207,6 @@ export default class DepositPay extends Component { ...@@ -209,7 +207,6 @@ export default class DepositPay extends Component {
</div> </div>
{/* <div className={"h100"}/> */} {/* <div className={"h100"}/> */}
</div> </div>
</Layout>
); );
} }
} }
import React, { Component } from 'react'; import React, { Component } from 'react';
import Layout from '../../Components/static/Layout/Layout';
import { List, Icon, Toast } from 'antd-mobile'; import { List, Icon, Toast } from 'antd-mobile';
import app from '../../static/js/native'; import app from '../../static/js/native';
import Tips from '../../Components/common/Tips/Tips'; import Tips from '../../Components/common/Tips/Tips';
...@@ -68,7 +67,6 @@ export default class DepositPay extends Component { ...@@ -68,7 +67,6 @@ export default class DepositPay extends Component {
render() { render() {
let { depositMoney, qualityDepositMoney, depositList, depositAmountNeedPay } = this.state; let { depositMoney, qualityDepositMoney, depositList, depositAmountNeedPay } = this.state;
return ( return (
<Layout title="我的保证金" border="true">
<div className={'deposit-user'}> <div className={'deposit-user'}>
<Tips money={depositAmountNeedPay} /> <Tips money={depositAmountNeedPay} />
<div className="pt10 box-c tal"> <div className="pt10 box-c tal">
...@@ -151,7 +149,6 @@ export default class DepositPay extends Component { ...@@ -151,7 +149,6 @@ export default class DepositPay extends Component {
})} })}
</List> </List>
</div> </div>
</Layout>
); );
} }
} }
...@@ -4,7 +4,6 @@ import { List, DatePicker, Toast, Modal } from 'antd-mobile'; ...@@ -4,7 +4,6 @@ import { List, DatePicker, Toast, Modal } from 'antd-mobile';
import moment from 'moment'; import moment from 'moment';
import classNames from 'classnames'; import classNames from 'classnames';
import app from '../../static/js/native'; import app from '../../static/js/native';
import Layout from '../../Components/static/Layout/Layout';
import UpLoad from '../../Components/common/Upload/Upload'; import UpLoad from '../../Components/common/Upload/Upload';
import { getParam, getImgNaturalDimensions } from '@/utils/tools'; import { getParam, getImgNaturalDimensions } from '@/utils/tools';
import { getParameterByName } from '../../utils/common'; import { getParameterByName } from '../../utils/common';
...@@ -187,7 +186,6 @@ class Train extends Component { ...@@ -187,7 +186,6 @@ class Train extends Component {
render() { render() {
const { startTime, endTime, backgroundArea, certificateFiles, viewImages } = this.state; const { startTime, endTime, backgroundArea, certificateFiles, viewImages } = this.state;
return ( return (
<Layout title="受训背景">
<div className="train-warp"> <div className="train-warp">
<List className={classNames({ startActive: startTime, endActive: endTime })}> <List className={classNames({ startActive: startTime, endActive: endTime })}>
<DatePicker mode="month" minDate={min} maxDate={now} value={startTime} extra="开始时间" title="开始时间" format={this.formatShowDate} onChange={date => this.changeTime('startTime', date)}> <DatePicker mode="month" minDate={min} maxDate={now} value={startTime} extra="开始时间" title="开始时间" format={this.formatShowDate} onChange={date => this.changeTime('startTime', date)}>
...@@ -218,7 +216,6 @@ class Train extends Component { ...@@ -218,7 +216,6 @@ class Train extends Component {
</button> </button>
</div> </div>
</div> </div>
</Layout>
); );
} }
} }
......
...@@ -3,7 +3,6 @@ import { Link } from 'react-router-dom'; ...@@ -3,7 +3,6 @@ import { Link } from 'react-router-dom';
import { Modal, Toast } from 'antd-mobile'; import { Modal, Toast } from 'antd-mobile';
import { linkTo } from '@/utils/tools'; import { linkTo } from '@/utils/tools';
import Layout from '../../Components/static/Layout/Layout';
import TrainItem from '../../Components/page/user/TrainItem'; import TrainItem from '../../Components/page/user/TrainItem';
import app from '../../static/js/native'; import app from '../../static/js/native';
...@@ -65,7 +64,6 @@ class TrainList extends Component { ...@@ -65,7 +64,6 @@ class TrainList extends Component {
render() { render() {
const { trainList, delDialogObj } = this.state; const { trainList, delDialogObj } = this.state;
return ( return (
<Layout title="受训背景">
<div className="train-warp"> <div className="train-warp">
{trainList.length ? ( {trainList.length ? (
<div className="train-list"> <div className="train-list">
...@@ -120,7 +118,6 @@ class TrainList extends Component { ...@@ -120,7 +118,6 @@ class TrainList extends Component {
</a> </a>
)} )}
</div> </div>
</Layout>
); );
} }
} }
......
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