import React, { Component } from 'react';
import './index.less';
import { Icon } from 'antd-mobile';
import Assets from '@src/components/Assets';
import { getMap } from '@src/services/Tools';
import { CrowdList } from '../../../Constant';
import Tag from '../Tag';
import Money from '../Money';
import Button from '../Button';
const CrowdMap = getMap(CrowdList, 'value', 'label');
export class Block extends Component {
render() {
const { className = '', children } = this.props;
return
{children}
;
}
}
export class TopBlock extends Component {
render() {
const { className = '', theme = 'default', children } = this.props;
return {children}
;
}
}
export class TagBlock extends Component {
render() {
const { className = '', theme = 'default', tag, children } = this.props;
return (
);
}
}
export class LinkBlock extends Component {
render() {
const { className = '', theme = 'default', title, sub, onClick } = this.props;
return (
onClick && onClick()}>
{title}
{sub}
);
}
}
export class CourseBlock extends Component {
render() {
const { data } = this.props;
return (
{
linkTo(`/product/course/detail/${data.id}`);
}}>
{data.title}
授课老师{data.teacher}
{data.comment}
{CrowdMap[data.crowd] &&
适合{CrowdMap[data.crowd]}}
优质回答{data.askNumber}
);
}
}
export class CourseCoBlock extends Component {
render() {
const { theme, data } = this.props;
return (
{
linkTo(`/product/course/detail/${data.id}`);
}}>
{data.title}
授课老师{data.teacher}
{CrowdMap[data.crowd] &&
适合{CrowdMap[data.crowd]}}
{data.comment}
);
}
}
export class DataBlock extends Component {
render() {
const { data } = this.props;
return (
{
linkTo(`/product/data/detail/${data.id}`);
}}>
{data.title}
{data.comment}
);
}
}
export class BuyBlock extends Component {
render() {
const { theme } = this.props;
return (
已到期
VIP会员
有效期:2019-11-20
请访问千行 GMAT 官网开通使用
);
}
}