Commit 1158e481 by xuzhenghua

Merge branch 'master' of gitlab.julyedu.com:baiguangyao/mr-julyedu

parents 85f0e2c0 d68ca51e
import React from 'react'
import './index.scss'
import React, {Component} from 'react'
import './index.scss';
const HeaderBar = (props) => {
return (
<div className="detail-header">
<i className={'iconfont iconiconfront-68 return'}></i>
<span className='herder'>{props.title}</span>
<i className={'iconfont icongouwuche shopping-cart'}></i>
</div>
);
class HeaderBar extends Component {
constructor(props) {
super(props);
}
goBack = () => {
window.history.go(-1);
}
goShop = () => {
location.replace('/shopcart');
}
render() {
return (
<div className="detail-header" style={{...this.props.style}}>
<i className={`iconfont ${this.props.arrow ? 'iconiconfront-68' : ''} return`} onClick={this.goBack}></i>
<span className='herder'>{this.props.title}</span>
<i className={`iconfont ${this.props.cart ? 'icongouwuche-xianxing' : ''} shopping-cart`} onClick={this.goShop}></i>
</div>
);
}
};
export default HeaderBar;
......@@ -79,7 +79,7 @@ const MyForm = withFormik({
return;
}
Toast.info('保存成功!', undefined, undefined, false);
FormBag.props.history.push({
FormBag.props.history.replace({
pathname: '/order',
state: values
});
......
......@@ -10,7 +10,7 @@ export default class CategoryItem extends Component {
const {course_title, price1, price0, first_level_tip, image_name, upgrade, upgradeImg} = this.props;
return (
<WingBlank>
<div className={'category'}>
<div className={'scholarship-category'}>
<div className={'imageContainer'}>
<img className={'image'} src={image_name}></img>
{
......
.category {
.scholarship-category {
display: flex;
align-items: flex-start;
height: 90px;
......
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