index.js 1.44 KB
Newer Older
zhanghaozhe committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
import React, { Component } from 'react';
import './binding-tel.scss'

import ClearableInput from '@common/ClearableInput'
import Button from '../common/Button'
import VeriCodeInput from '../common/veriCodeInput'

class BindingTel extends Component {

    constructor(props) {
        super(props);
        this.state = {
            veriCode: ''
        };
    }

    handleChange = (val) => {
        this.setState({veriCode: val});
    }

    render() {
        return (
            <div className={'binding-tel'}>
                <p className={'title'}>为提高您的账号安全,请绑定手机号</p>
                <ClearableInput
                    type={'number'}
                    placeholder={'请输入需要绑定的手机号'}
                    wrapperClass={'tel'}
29 30 31
                    icon={<i className={'iconfont iconshouji'}
                             style={{fontSize: '22px', left: '11px'}}
                    />}
zhanghaozhe committed
32 33 34 35 36
                />
                <VeriCodeInput
                    type={'number'}
                    className={'verification'}
                    onChange={this.handleChange}
37 38 39
                    icon={<i className={'iconfont iconduanxin'}
                             style={{fontSize: '20px', left: '12px'}}
                    />}
zhanghaozhe committed
40 41 42 43 44 45 46 47 48
                />
                <div className="place"/>
                <Button className={'complete-btn'}>完成</Button>
            </div>
        );
    }
}

export default BindingTel;