index.js 3.91 KB
Newer Older
baiguangyao committed
1
import React, { Component } from 'react';
.  
baiguangyao committed
2
import { Flex, WhiteSpace, NavBar, List } from 'antd-mobile';
.  
baiguangyao committed
3
import './index.scss';
.  
baiguangyao committed
4 5
import Avatar from './image/avatar.png';
import Vip from './image/vip.png';
.  
baiguangyao committed
6
// import UnVip from './image/unVIP.png';
.  
baiguangyao committed
7 8 9

const Item = List.Item;
const Brief = Item.Brief;
baiguangyao committed
10 11 12 13 14

class My extends Component {

    render() {
        return (
baiguangyao committed
15 16 17 18
            <div className="flex-container">
                <Flex>
                    <Flex.Item>
                        <NavBar
.  
baiguangyao committed
19
                            className="my-tab"
baiguangyao committed
20
                            mode="light"
.  
baiguangyao committed
21 22 23
                        >
                            我的
                        </NavBar>
.  
baiguangyao committed
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
                        {/* <List className="my-list">
                            <Item 
                                className="avatar-wrap" 
                                arrow="horizontal" 
                                multipleLine 
                                thumb={Avatar}
                                onClick={() => { }}>
                                <Brief>点击登录</Brief>
                            </Item>
                        </List> */}
                        <List className="my-list">
                            <Item
                                className="avatar-wrap"
                                arrow="horizontal"
                                multipleLine
                                thumb={Avatar}
                                onClick={() => { }}>
                                <Brief style={{ fontSize: "18px" }}>
                                    xuan先生
                                    <img src={Vip} alt=""/>
                                </Brief>
                                <Brief style={{fontSize: "12px"}}>学号: 410026</Brief>
                            </Item>
                            <div className="my-isvip"></div>
                            {/* <div className="my-shadow"></div> */}
                        </List>
                        <List>
                            <Item 
                                arrow="horizontal" 
                                onClick={() => { }}
                                >
                                <i className="iconfont iconiconfront-27"></i>
                                已购课程
                            </Item>
                            <Item 
                                arrow="horizontal" 
                                onClick={() => { }}
                                >
                                <i className="iconfont icongouwuche"></i>
                                购物车
                            </Item>
                            <Item 
                                arrow="horizontal" 
                                onClick={() => { }}
                                >
                                <i className="iconfont iconiconfront-24"></i>
                                课程订单
                            </Item>
                            <Item 
                                arrow="horizontal" 
                                onClick={() => { }}
                                >
                                <i className="iconfont iconiconfront-52"></i>
                                优惠券
                            </Item>
                           
                            
                        </List>
                        <List renderHeader={() => ''} > 
                            <Item
                                arrow="horizontal"
                                onClick={() => { }}
                            >
                                <i className="iconfont iconiconfront-51"></i>
                                赚奖学金
                            </Item>
                        </List>
baiguangyao committed
91 92 93
                    </Flex.Item>
                </Flex>
                <WhiteSpace size="lg" />
baiguangyao committed
94 95 96 97 98 99 100
            </div>
        )
    }

}

export default My;