index.js 742 Bytes
Newer Older
1 2 3 4 5
import React from 'react';
import './index.scss'

const VList = (props) => {
    return (
zhanghaozhe committed
6 7
        <li
            className='v-list-item'
FE committed
8 9 10 11
            onClick={() => {
                typeof props.toDetail === 'function' && props.toDetail(props.id)
            }}
        >
12
            <div className="content">
xuzhenghua committed
13
                <div className="cover">
xuzhenghua committed
14
                    {props.status}
zhanghaozhe committed
15
                    {props.courseExpire}
2  
xuzhenghua committed
16 17 18
                    {props.toDetail
                        ? (<img src={props.img} alt=""/>)
                        : (<img src={props.img} alt=""/>)
FE committed
19
                    }
20 21 22
                </div>
                {props.info}
            </div>
.  
baiguangyao committed
23
            {props.tab}
24 25 26 27 28
        </li>
    );
};

export default VList;