import React, { Component } from 'react'; import './index.less'; import Assets from '@src/components/Assets'; import Modal from '../Modal'; import Tabs from '../Tabs'; import { SpecialRadioGroup } from '../Radio'; import Invite from '../Invite'; import Button from '../Button'; export default class extends Component { constructor(props) { super(props); this.state = { tab: '2', pay: 'alipay', select: '1', auth: true }; } render() { const { show, onClose } = this.props; const { tab } = this.state; return (
this.setState({ tab: key })} /> {this[`renderTab${tab}`]()}
); } renderTab1() { const { pay, select } = this.state; return (
this.setState({ select: key })} />
} onChange={key => this.setState({ pay: key })} />
请使用手机微信或支付宝扫码付款
支付金额: ¥ 8888.88
); } renderTab2() { const { auth } = this.state; return (
{auth && 已完成}
6个月
7天/每位好友
1个月
{auth && }
); } }