import React from 'react'; import PropTypes from 'prop-types'; import { Divider, Input, Button } from 'antd'; import wantedCover from '@/assets/payment/cover_wanted@2x.png'; import styles from './WantedPaymentView.less'; interface WantedpaymentViewProps { type?: 'pop'|'modal'; current_wanted: number|string|null; InputWantedValueChange: Function; InputWantedPressEnter: Function; InputWantedOnBlur: Function; InputWantedClear: Function; CloseFunction: Function; } interface WantedpaymentViewState { payment?: number } class WantedpaymentView extends React.Component { constructor(props: WantedpaymentViewProps) { super(props); this.state = {}; } render() { const { current_wanted } = this.props; return (
设置悬赏金额
wanted_image
悬赏提问
设置悬赏金额范围¥5.00~¥10000
{ if (!/^[.0-9]*$/g.test(v.target.value)) return; this.props.InputWantedValueChange(v.target.value); }} onPressEnter={() => { this.props.InputWantedPressEnter(current_wanted); }} onBlur={() => { this.props.InputWantedOnBlur(current_wanted); }} autoFocus />
若5天内没人回答该问题, 所支付的金额将退还至您的钱包
) } } export default WantedpaymentView;