Commit 50d64689 by zhanghaozhe

Merge branch 'my' into coupons

parents a432fc73 9849bca0
import React, { Component } from 'react'; import React, { PureComponent } from 'react';
import { Flex, WhiteSpace, NavBar, List } from 'antd-mobile'; import { Flex, WhiteSpace, NavBar, List } from 'antd-mobile';
import './index.scss'; import './index.scss';
import Avatar from './image/avatar.png'; import Avatar from './image/avatar.png';
import Vip from './image/vip.png'; import Vip from './image/vip.png';
import { WithTab } from '@/HOCs'
import { Link } from "react-router-dom";
// import UnVip from './image/unVIP.png'; // import UnVip from './image/unVIP.png';
const Item = List.Item; const Item = List.Item;
const Brief = Item.Brief; const Brief = Item.Brief;
class My extends Component { class My extends PureComponent {
render() { render() {
return ( return (
...@@ -37,8 +40,9 @@ class My extends Component { ...@@ -37,8 +40,9 @@ class My extends Component {
arrow="horizontal" arrow="horizontal"
multipleLine multipleLine
thumb={Avatar} thumb={Avatar}
onClick={() => { }}> onClick={() => {
<Brief style={{ fontSize: "18px" }}> }}>
<Brief style={{fontSize: "18px"}}>
xuan先生 xuan先生
<img src={Vip} alt=""/> <img src={Vip} alt=""/>
</Brief> </Brief>
...@@ -50,39 +54,49 @@ class My extends Component { ...@@ -50,39 +54,49 @@ class My extends Component {
<List> <List>
<Item <Item
arrow="horizontal" arrow="horizontal"
onClick={() => { }} onClick={() => {
}}
> >
<i className="iconfont iconiconfront-27"></i> <i className="iconfont iconiconfront-27"></i>
已购课程 已购课程
</Item> </Item>
<Item <Item
arrow="horizontal" arrow="horizontal"
onClick={() => { }} onClick={() => {
}}
> >
<i className="iconfont icongouwuche"></i> <i className="iconfont icongouwuche"></i>
购物车 购物车
</Item> </Item>
<Item <Item
arrow="horizontal" arrow="horizontal"
onClick={() => { }} onClick={() => {
}}
> >
<i className="iconfont iconiconfront-24"></i> <i className="iconfont iconiconfront-24"></i>
课程订单 课程订单
</Item> </Item>
<Item <Item
arrow="horizontal" arrow="horizontal"
onClick={() => { }}
> >
<Link to={{
pathname: '/use-coupons',
state: {
from: this.props.location.pathname
}
}}>
<i className="iconfont iconiconfront-52"></i> <i className="iconfont iconiconfront-52"></i>
优惠券 优惠券
</Link>
</Item> </Item>
</List> </List>
<List renderHeader={() => ''} > <List renderHeader={() => ''}>
<Item <Item
arrow="horizontal" arrow="horizontal"
onClick={() => { }} onClick={() => {
}}
> >
<i className="iconfont iconiconfront-51"></i> <i className="iconfont iconiconfront-51"></i>
赚奖学金 赚奖学金
...@@ -90,11 +104,11 @@ class My extends Component { ...@@ -90,11 +104,11 @@ class My extends Component {
</List> </List>
</Flex.Item> </Flex.Item>
</Flex> </Flex>
<WhiteSpace size="lg" /> <WhiteSpace size="lg"/>
</div> </div>
) )
} }
} }
export default My; export default WithTab(My);
\ No newline at end of file \ No newline at end of file
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